-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
51 lines (44 loc) · 1008 Bytes
/
index.js
File metadata and controls
51 lines (44 loc) · 1008 Bytes
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
import { rem } from 'polished'
import styled from 'styled-components'
const SiteHeader = () => (
<StyledHeader>
<img className="logo" src="/commit-logo.svg" alt="Commit Logo" />
<nav>
<a
className="nav-link"
href="https://blog.commit.dev/"
target="_blank"
rel="noreferrer"
>
Blog
</a>
</nav>
</StyledHeader>
)
const StyledHeader = styled.header`
position: sticky;
top: 0;
font-size: ${rem('18px')};
font-weight: 500;
line-height: ${rem('36px')};
letter-spacing: 0em;
text-align: left;
display: flex;
align-items: center;
justify-content: space-between;
margin: ${rem('32px')} ${rem('48px')} 0;
@media only screen and (max-width: 575px) {
margin: ${rem('32px')} ${rem('42px')} 0;
}
.logo {
width: ${rem('212px')};
@media only screen and (max-width: 575px) {
width: ${rem('148px')};
}
}
.nav-link {
color: #fff;
text-decoration: none;
}
`
export default SiteHeader