-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavbar.js
125 lines (121 loc) · 2.54 KB
/
Navbar.js
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
118
119
120
121
122
123
124
125
import * as ROUTES from "../constants/routes";
import { Link } from "react-router-dom";
import styled from "styled-components/macro";
// horizontal navbar for widescreens; larger displays
export default function Navbar() {
return (
<Container>
<Nav className="main-nav">
<ul className="main-menu">
<li>
<Link
className="nav-btn"
to={ROUTES.RESPONSIBILITY}
style={{ textDecoration: "none" }}
>
REPONSIBILITY
</Link>
</li>
<li>
<Link
className="nav-btn"
to={ROUTES.ALL_PRODUCTS}
style={{ textDecoration: "none" }}
>
BASICS
</Link>
</li>
<li>
<Link
className="nav-btn"
to={ROUTES.BLACK_MOON}
style={{ textDecoration: "none" }}
>
BLACK MOON
</Link>
</li>
<li>
<Link
className="nav-btn"
to={ROUTES.SPACE}
style={{ textDecoration: "none" }}
>
SPACE 2029
</Link>
</li>
<li>
<Link
to={ROUTES.ANIMAL_CROSSING}
style={{ textDecoration: "none" }}
className="nav-btn"
>
Animal Crossing Closet
</Link>
</li>
</ul>
</Nav>
</Container>
);
}
const Nav = styled.div`
width: 100vw;
.right-menu {
z-index: 10;
display: flex;
flex-direction: column;
text-align: left;
padding: 0;
li {
background-color: #f4e0ea;
padding: 0.8rem 1rem;
}
}
.main-menu {
display: flex;
align-items: center;
justify-content: space-evenly;
list-style: none;
margin: 0;
li {
text-transform: uppercase;
font-size: 0.8rem;
}
}
.nav-btn {
color: #222;
&:hover {
color: #f4e0ea;
}
}
`;
const Container = styled.div`
padding: 0.5rem 0;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
.menu-btn {
display: none;
}
@media (max-width: 768px) {
.menu-btn {
display: block;
cursor: pointer;
float: right;
position: absolute;
right: 4rem;
top: 5.3rem;
&:hover {
color: #f4e0ea;
}
}
.main-menu {
display: none;
}
border: none;
}
@media (max-width: 600px) {
.menu-btn {
z-index: 1;
top: 3.8rem;
}
}
`;