@@ -5,6 +5,42 @@ import theme from 'styles/theme';
55
66const { fontNormal, fontBlack, backgroundLight, fontDark } = theme . color ;
77
8+ const LevelModal = ( { onClose } ) => {
9+ return (
10+ < ModalContainer >
11+ < CloseButton name = "CLOSE" size = { 30 } onClick = { onClose } />
12+ < Text fontSize = { 22 } block strong style = { { marginTop : 30 } } >
13+ 활동 점수
14+ </ Text >
15+ < Text block fontSize = { 16 } style = { { marginTop : 12 } } >
16+ 활동 점수에 따라 등급이 부여됩니다.
17+ </ Text >
18+ < ScoreDescription >
19+ 게시물 등록 시 < Strong > +3점</ Strong > , 댓글 등록 시 < Strong > +2점</ Strong > ,< br />
20+ 다른 사람이 나를 팔로우 할 시 < Strong > +2점</ Strong >
21+ </ ScoreDescription >
22+ < LevelList >
23+ { levels . map ( ( level , index ) => (
24+ < LevelItem key = { index } >
25+ < Avatar
26+ src = { level . image }
27+ size = { 50 }
28+ alt = { level . name }
29+ style = { { backgroundColor : level . color , border : 0 } }
30+ />
31+ < LevelInfo >
32+ < LevelName > { level . name } </ LevelName >
33+ < LevelDescription > { level . description } </ LevelDescription >
34+ </ LevelInfo >
35+ </ LevelItem >
36+ ) ) }
37+ </ LevelList >
38+ </ ModalContainer >
39+ ) ;
40+ } ;
41+
42+ export default LevelModal ;
43+
844const ModalContainer = styled . div `
945 width: 100%;
1046 background-color: white;
@@ -65,39 +101,3 @@ const Strong = styled.span`
65101 font-weight: bold;
66102 color: ${ fontBlack } ;
67103` ;
68-
69- const LevelModal = ( { onClose } ) => {
70- return (
71- < ModalContainer >
72- < CloseButton name = "CLOSE" size = { 30 } onClick = { onClose } />
73- < Text fontSize = { 22 } block strong style = { { marginTop : 30 } } >
74- 활동 점수
75- </ Text >
76- < Text block fontSize = { 16 } style = { { marginTop : 12 } } >
77- 활동 점수에 따라 등급이 부여됩니다.
78- </ Text >
79- < ScoreDescription >
80- 게시물 등록 시 < Strong > +2점</ Strong > , 댓글 등록 시 < Strong > +1점</ Strong > ,< br />
81- 다른 사람이 나를 팔로우 할 시 < Strong > +1점</ Strong >
82- </ ScoreDescription >
83- < LevelList >
84- { levels . map ( ( level , index ) => (
85- < LevelItem key = { index } >
86- < Avatar
87- src = { level . image }
88- size = { 50 }
89- alt = { level . name }
90- style = { { backgroundColor : level . color , border : 0 } }
91- />
92- < LevelInfo >
93- < LevelName > { level . name } </ LevelName >
94- < LevelDescription > { level . description } </ LevelDescription >
95- </ LevelInfo >
96- </ LevelItem >
97- ) ) }
98- </ LevelList >
99- </ ModalContainer >
100- ) ;
101- } ;
102-
103- export default LevelModal ;
0 commit comments