-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeader.js
executable file
·127 lines (107 loc) · 2.23 KB
/
Header.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
126
127
import React from 'react'
import styled from 'styled-components'
import Section from './Section'
import LogoMobile from './LogoMobile'
import LogoDesktop from './LogoDesktop'
import { fonts, sizes } from 'styles/theme'
import { screen } from 'styles/screen'
const Wrapper = styled(Section)`
position: relative;
width: 100%;
${screen.lg} {
max-width: ${sizes.max};
width: ${sizes.default};
}
`
const WrapperLogoDesktop = styled.div`
display: none;
${screen.lg} {
display: inline-block;
}
`
const WrapperLogoMobile = styled.div`
display: inline-block;
${screen.lg} {
display: none;
}
`
const Nav = styled.nav`
color: var(--text-secondary);
padding: 15px 15px 25px 15px;
margin: 0 auto;
text-transform: uppercase;
width: 100%;
${screen.lg} {
padding: 25px 15px;
}
`
const Logo = styled.a`
display: inline-block;
text-align: left;
width: 40%;
span {
color: var(--text-seconday) !important;
display: inline-block;
font-family: ${fonts.text};
font-size: 18px;
font-weight: bold;
letter-spacing: 0;
line-height: 22px;
text-decoration: none;
vertical-align: bottom;
${screen.lg} {
margin-left: 6px;
}
&:before {
content: '/';
display: none;
margin-right: 3px;
${screen.lg} {
display: inline-block;
}
}
}
svg {
vertical-align: middle;
}
`
const Links = styled.div`
display: inline-block;
position: absolute;
right: 0;
vertical-align: top;
a {
padding: 0;
color: var(--text-primary);
display: inline-block;
font-family: ${fonts.title};
font-size: 12px;
font-weight: 600;
letter-spacing: 0;
line-height: 16px;
margin-left: 15px;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
`
const Header = () => (
<Nav>
<Wrapper>
<Logo href="/">
<WrapperLogoMobile>
<LogoMobile />
</WrapperLogoMobile>
<WrapperLogoDesktop>
<LogoDesktop />
</WrapperLogoDesktop>
</Logo>
<Links>
<a href="https://loadsmart.com/careers/">Careers</a>
<a href="https://github.com/loadsmart/">Github</a>
</Links>
</Wrapper>
</Nav>
)
export default Header