sdy

add link and update style

1 import React from "react"; 1 import React from "react";
2 import styled from "styled-components"; 2 import styled from "styled-components";
3 +import { Link } from "react-router-dom";
3 import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; 4 import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4 import { faComments } from "@fortawesome/free-solid-svg-icons"; 5 import { faComments } from "@fortawesome/free-solid-svg-icons";
5 6
...@@ -12,15 +13,16 @@ const Nav = styled.nav` ...@@ -12,15 +13,16 @@ const Nav = styled.nav`
12 width: 100%; 13 width: 100%;
13 position: fixed; 14 position: fixed;
14 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); 15 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
16 + background-color: rgba(255, 255, 255);
17 + z-index: 100;
15 `; 18 `;
16 19
17 const HeaderBox = styled.div` 20 const HeaderBox = styled.div`
18 height: 100%; 21 height: 100%;
19 - width: 100%;
20 display: flex; 22 display: flex;
21 - justify-content: space-around; 23 + justify-content: space-between;
22 align-items: center; 24 align-items: center;
23 - margin: 0 auto; 25 + margin: 0px 200px;
24 `; 26 `;
25 27
26 const HeaderTitleBox = styled.div` 28 const HeaderTitleBox = styled.div`
...@@ -29,32 +31,49 @@ const HeaderTitleBox = styled.div` ...@@ -29,32 +31,49 @@ const HeaderTitleBox = styled.div`
29 align-items: center; 31 align-items: center;
30 svg { 32 svg {
31 font-size: 1.5rem; 33 font-size: 1.5rem;
34 + margin-right: 10px;
32 } 35 }
33 `; 36 `;
34 37
35 const HeaderTitle = styled.span` 38 const HeaderTitle = styled.span`
36 font-size: 1.5rem; 39 font-size: 1.5rem;
40 + font-weight: 600;
37 `; 41 `;
38 42
39 const HeaderMenuNav = styled.nav` 43 const HeaderMenuNav = styled.nav`
40 display: flex; 44 display: flex;
41 justify-content: flex-start; 45 justify-content: flex-start;
46 + width: 100%;
47 + height: 80%;
42 `; 48 `;
43 49
44 const HeaderMenuList = styled.ul` 50 const HeaderMenuList = styled.ul`
45 display: flex; 51 display: flex;
52 + flex-direction: row;
53 + align-items: center;
54 + flex: 1;
46 `; 55 `;
47 56
48 const HeaderMenuItem = styled.li` 57 const HeaderMenuItem = styled.li`
49 - &::before { 58 + font-size: 1.2rem;
50 - content: ${(props) => props.text}; 59 + width: auto;
51 - } 60 + padding: 1rem;
52 `; 61 `;
53 62
54 const StartBox = styled.div` 63 const StartBox = styled.div`
55 - background-color: #1b1464; 64 + display: flex;
65 + align-items: center;
66 +`;
67 +
68 +const StartButton = styled.button`
69 + background-color: #3dc1d3;
56 color: #f1f2f6; 70 color: #f1f2f6;
57 - font-size: 20px; 71 + font-size: 18px;
72 + font-weight: 500;
73 + width: 150px;
74 + border: none;
75 + border-radius: 10px;
76 + cursor: pointer;
58 `; 77 `;
59 78
60 export default () => { 79 export default () => {
...@@ -68,9 +87,22 @@ export default () => { ...@@ -68,9 +87,22 @@ export default () => {
68 </HeaderTitleBox> 87 </HeaderTitleBox>
69 <HeaderMenuNav> 88 <HeaderMenuNav>
70 <HeaderMenuList> 89 <HeaderMenuList>
71 - <HeaderMenuItem>About This</HeaderMenuItem> 90 + <HeaderMenuItem>
91 + <Link to="/">About This</Link>
92 + </HeaderMenuItem>
93 + <HeaderMenuItem>
94 + <Link to="/">Difference</Link>
95 + </HeaderMenuItem>
96 + <HeaderMenuItem>
97 + <Link to="/">Documentation</Link>
98 + </HeaderMenuItem>
99 + <HeaderMenuItem>
100 + <Link to="/">Support US</Link>
101 + </HeaderMenuItem>
72 </HeaderMenuList> 102 </HeaderMenuList>
73 - <StartBox>Start</StartBox> 103 + <StartBox>
104 + <StartButton>Start</StartButton>
105 + </StartBox>
74 </HeaderMenuNav> 106 </HeaderMenuNav>
75 </HeaderBox> 107 </HeaderBox>
76 </Nav> 108 </Nav>
......