Showing
1 changed file
with
58 additions
and
11 deletions
... | @@ -3,11 +3,11 @@ import styled from "styled-components"; | ... | @@ -3,11 +3,11 @@ import styled from "styled-components"; |
3 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | 3 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
4 | import { | 4 | import { |
5 | faUser, | 5 | faUser, |
6 | - faHome, | ||
7 | - faCalendarCheck, | ||
8 | faComment, | 6 | faComment, |
9 | faCog, | 7 | faCog, |
10 | faSignOutAlt, | 8 | faSignOutAlt, |
9 | + faQuestionCircle, | ||
10 | + faTags, | ||
11 | } from "@fortawesome/free-solid-svg-icons"; | 11 | } from "@fortawesome/free-solid-svg-icons"; |
12 | 12 | ||
13 | const UserIconBox = styled.div` | 13 | const UserIconBox = styled.div` |
... | @@ -18,35 +18,69 @@ const UserIconBox = styled.div` | ... | @@ -18,35 +18,69 @@ const UserIconBox = styled.div` |
18 | justify-content: center; | 18 | justify-content: center; |
19 | align-items: center; | 19 | align-items: center; |
20 | font-size: 30px; | 20 | font-size: 30px; |
21 | - margin: 15px 0px; | ||
22 | opacity: 0.8; | 21 | opacity: 0.8; |
23 | color: white; | 22 | color: white; |
23 | + cursor: pointer; | ||
24 | + transition: 0.3s; | ||
25 | + &:hover { | ||
26 | + color: #667aff; | ||
27 | + background-color: white; | ||
28 | + } | ||
24 | `; | 29 | `; |
25 | 30 | ||
26 | const FuncIconBox = styled.div` | 31 | const FuncIconBox = styled.div` |
27 | width: 100%; | 32 | width: 100%; |
28 | height: 60%; | 33 | height: 60%; |
29 | - font-size: 30px; | ||
30 | display: flex; | 34 | display: flex; |
31 | flex-direction: column; | 35 | flex-direction: column; |
32 | justify-content: space-around; | 36 | justify-content: space-around; |
33 | align-items: center; | 37 | align-items: center; |
34 | - margin: 10px 0px; | ||
35 | opacity: 0.8; | 38 | opacity: 0.8; |
36 | color: white; | 39 | color: white; |
37 | `; | 40 | `; |
38 | 41 | ||
42 | +// 개별 아이콘을 상자로 묶기 위한 변수 | ||
43 | +const IconBox = styled.div` | ||
44 | + display: flex; | ||
45 | + flex-direction: row; | ||
46 | + justify-content: center; | ||
47 | + align-items: center; | ||
48 | + width: 100%; | ||
49 | + height: 100%; | ||
50 | + transition: 0.3s; | ||
51 | + &:hover { | ||
52 | + color: #667aff; | ||
53 | + background-color: white; | ||
54 | + } | ||
55 | + svg { | ||
56 | + font-size: 20px; | ||
57 | + margin-right: 5px; | ||
58 | + } | ||
59 | +`; | ||
60 | + | ||
39 | const ExitIconBox = styled.div` | 61 | const ExitIconBox = styled.div` |
40 | width: 100%; | 62 | width: 100%; |
41 | height: 15%; | 63 | height: 15%; |
42 | - font-size: 30px; | ||
43 | display: flex; | 64 | display: flex; |
44 | - flex-direction: column; | 65 | + flex-direction: row; |
45 | align-items: center; | 66 | align-items: center; |
46 | - justify-content: flex-end; | 67 | + justify-content: center; |
47 | - margin-top: 20px; | ||
48 | opacity: 0.8; | 68 | opacity: 0.8; |
49 | color: white; | 69 | color: white; |
70 | + cursor: pointer; | ||
71 | + transition: 0.3s; | ||
72 | + &:hover { | ||
73 | + color: #667aff; | ||
74 | + background-color: white; | ||
75 | + } | ||
76 | + svg { | ||
77 | + font-size: 20px; | ||
78 | + margin-right: 5px; | ||
79 | + } | ||
80 | +`; | ||
81 | + | ||
82 | +const IconName = styled.span` | ||
83 | + font-size: 10px; | ||
50 | `; | 84 | `; |
51 | 85 | ||
52 | export default () => { | 86 | export default () => { |
... | @@ -56,13 +90,26 @@ export default () => { | ... | @@ -56,13 +90,26 @@ export default () => { |
56 | <FontAwesomeIcon icon={faUser} /> | 90 | <FontAwesomeIcon icon={faUser} /> |
57 | </UserIconBox> | 91 | </UserIconBox> |
58 | <FuncIconBox> | 92 | <FuncIconBox> |
59 | - <FontAwesomeIcon icon={faHome} /> | 93 | + <IconBox> |
60 | - <FontAwesomeIcon icon={faCalendarCheck} /> | ||
61 | <FontAwesomeIcon icon={faComment} /> | 94 | <FontAwesomeIcon icon={faComment} /> |
95 | + <IconName /> One To One Chat | ||
96 | + </IconBox> | ||
97 | + <IconBox> | ||
98 | + <FontAwesomeIcon icon={faQuestionCircle} /> | ||
99 | + <IconName /> Random Chat | ||
100 | + </IconBox> | ||
101 | + <IconBox> | ||
102 | + <FontAwesomeIcon icon={faTags} /> | ||
103 | + <IconName /> Category Chat | ||
104 | + </IconBox> | ||
105 | + <IconBox> | ||
62 | <FontAwesomeIcon icon={faCog} /> | 106 | <FontAwesomeIcon icon={faCog} /> |
107 | + <IconName /> Profile Setting | ||
108 | + </IconBox> | ||
63 | </FuncIconBox> | 109 | </FuncIconBox> |
64 | <ExitIconBox> | 110 | <ExitIconBox> |
65 | <FontAwesomeIcon icon={faSignOutAlt} /> | 111 | <FontAwesomeIcon icon={faSignOutAlt} /> |
112 | + <IconName /> Log Out | ||
66 | </ExitIconBox> | 113 | </ExitIconBox> |
67 | </> | 114 | </> |
68 | ); | 115 | ); | ... | ... |
-
Please register or login to post a comment