sdy

create MenuIcons.js

1 +import React from "react";
2 +import styled from "styled-components";
3 +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4 +import {
5 + faUser,
6 + faHome,
7 + faCalendarCheck,
8 + faComment,
9 + faCog,
10 + faSignOutAlt,
11 +} from "@fortawesome/free-solid-svg-icons";
12 +
13 +const UserIconBox = styled.div`
14 + width: 100%;
15 + height: 10%;
16 + display: flex;
17 + flex-direction: column;
18 + justify-content: center;
19 + align-items: center;
20 + font-size: 30px;
21 + margin: 15px 0px;
22 + opacity: 0.8;
23 + color: white;
24 +`;
25 +
26 +const FuncIconBox = styled.div`
27 + width: 100%;
28 + height: 60%;
29 + font-size: 30px;
30 + display: flex;
31 + flex-direction: column;
32 + justify-content: space-around;
33 + align-items: center;
34 + margin: 10px 0px;
35 + opacity: 0.8;
36 + color: white;
37 +`;
38 +
39 +const ExitIconBox = styled.div`
40 + width: 100%;
41 + height: 15%;
42 + font-size: 30px;
43 + display: flex;
44 + flex-direction: column;
45 + align-items: center;
46 + justify-content: flex-end;
47 + margin-top: 20px;
48 + opacity: 0.8;
49 + color: white;
50 +`;
51 +
52 +export default () => {
53 + return (
54 + <>
55 + <UserIconBox>
56 + <FontAwesomeIcon icon={faUser} />
57 + </UserIconBox>
58 + <FuncIconBox>
59 + <FontAwesomeIcon icon={faHome} />
60 + <FontAwesomeIcon icon={faCalendarCheck} />
61 + <FontAwesomeIcon icon={faComment} />
62 + <FontAwesomeIcon icon={faCog} />
63 + </FuncIconBox>
64 + <ExitIconBox>
65 + <FontAwesomeIcon icon={faSignOutAlt} />
66 + </ExitIconBox>
67 + </>
68 + );
69 +};