MenuIcons.js
2.27 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import React from "react";
import styled from "styled-components";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faHome,
faComment,
faCog,
faSignOutAlt,
faQuestionCircle,
faTags,
} from "@fortawesome/free-solid-svg-icons";
const UserIconBox = styled.div`
width: 100%;
height: 10%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 30px;
opacity: 0.8;
color: white;
cursor: pointer;
transition: 0.3s;
&:hover {
color: #667aff;
background-color: white;
}
`;
const FuncIconBox = styled.div`
width: 100%;
height: 60%;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
opacity: 0.8;
color: white;
`;
// 개별 아이콘을 상자로 묶기 위한 변수
const IconBox = styled.div`
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
transition: 0.3s;
&:hover {
color: #667aff;
background-color: white;
}
svg {
font-size: 20px;
margin-right: 5px;
}
cursor: pointer;
`;
const ExitIconBox = styled.div`
width: 100%;
height: 15%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
opacity: 0.8;
color: white;
cursor: pointer;
transition: 0.3s;
&:hover {
color: #667aff;
background-color: white;
}
svg {
font-size: 20px;
margin-right: 5px;
}
`;
const IconName = styled.span`
font-size: 10px;
`;
export default () => {
return (
<>
<UserIconBox>
<FontAwesomeIcon icon={faHome} />
</UserIconBox>
<FuncIconBox>
<IconBox>
<FontAwesomeIcon icon={faComment} />
<IconName /> One To One Chat
</IconBox>
<IconBox>
<FontAwesomeIcon icon={faQuestionCircle} />
<IconName /> Random Chat
</IconBox>
<IconBox>
<FontAwesomeIcon icon={faTags} />
<IconName /> Category Chat
</IconBox>
<IconBox>
<FontAwesomeIcon icon={faCog} />
<IconName /> Profile Setting
</IconBox>
</FuncIconBox>
<ExitIconBox>
<FontAwesomeIcon icon={faSignOutAlt} />
<IconName /> Log Out
</ExitIconBox>
</>
);
};