forked from CHAI53/wediz-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RewardListDisplayed.js
68 lines (62 loc) · 1.69 KB
/
RewardListDisplayed.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import React, { Component } from "react";
import styled from "styled-components";
import { color } from "Styles/Common.js";
class RewardListDisplayed extends Component {
constructor(props) {
super(props);
}
render() {
const { name, price, stock, scheduled_date, option } = this.props.data;
return (
<RewardWrap>
<SectionContainer>
<FundingPrice>{price}원 펀딩</FundingPrice>
</SectionContainer>
<SectionContainer>
<RewardTitle>{name}</RewardTitle>
<RewardOption>{option}</RewardOption>
</SectionContainer>
<SectionContainer>
<RewardOption>배송비</RewardOption>
<RewardTitleEdit>0원</RewardTitleEdit>
</SectionContainer>
<SectionContainer>
<RewardOption>리워드 발송 시작일</RewardOption>
<RewardTitleEdit>{scheduled_date}</RewardTitleEdit>
</SectionContainer>
<SectionContainer>
<RewardOption color="purple"> 제한수량 {stock}개</RewardOption>
</SectionContainer>
</RewardWrap>
);
}
}
export default RewardListDisplayed;
const RewardWrap = styled.div`
width: 100%;
margin: 10px;
border: 1px solid ${color.blue};
padding: 20px 20px;
`;
const RewardTitleEdit = styled.div`
font-size: 13px;
padding: 0 0 15px 0;
`;
const FundingPrice = styled.div`
font-size: 17px;
font-weight: bold;
padding: 0 0 15px 0;
`;
const RewardTitle = styled.div`
font-size: 15px;
padding: 0 0 15px 0;
`;
const RewardOption = styled.div`
font-size: 12px;
padding: 0 0 15px 0;
font-weight: lighter;
color: ${props => props.color || "black"};
`;
const SectionContainer = styled.div`
padding: 12px 0 7px 0;
`;