forked from aahmadyar123/CookMyFridge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNavbarElements.js
77 lines (67 loc) · 1.52 KB
/
NavbarElements.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
import { NavLink as Link } from 'react-router-dom';
import styled from 'styled-components';
export const Nav = styled.nav`
background: #FFFFFF;
height: 108px;
display: flex;
justify-content: space-between;
padding: 0.5rem calc((100vw - 1000px) / 2);
z-index: 10;
border-bottom: solid 1px;
border-color: #000;
`;
export const Title = styled.h1`
font-size: 1.2em;
text-align: center;
color: black;
font-weight: bold;
`;
export const NavLink = styled(Link)`
color: #000;
display: flex;
align-items: center;
text-decoration: none;
padding: 0 1rem;
height: 100%;
cursor: pointer;
&.active {
font-weight: bold;
text-decoration: underline;
// text-decoration-color: #EA7C69;
text-decoration-color: #FF0000;
}
&:hover {
font-weight: bold;
text-decoration: underline;
color: #000;
}
`;
export const NavMenu = styled.div`
display: flex;
position: relative;
align-items: center;
margin-right: 10px;
right: 30px;
`;
export const NavBtn = styled.nav`
display: flex;
align-items: center;
margin-right: -44px;
`;
export const NavBtnLink = styled(Link)`
border-radius: 4px;
background: #353839;
padding: 10px 22px;
color: #fff;
border-radius: 100px;
outline: none;
border: none;
cursor: pointer;
transition: all 0.2s ease-in-out;
text-decoration: none;
&:hover {
transition: all 0.2s ease-in-out;
background: #929292;
color: #fff;
}
`;