forked from carbon-app/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Header.js
48 lines (43 loc) · 1.01 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
import React from 'react'
import Logo from './svg/Logo'
const Header = ({ enableHeroText }) => (
<header role="banner" className="mb4">
<div className="header-content">
<a id="link-home" href="/" aria-label="Home">
<Logo />
</a>
{enableHeroText ? (
<h2 className="mt3">
Create and share beautiful images of your source code.
<br />
Start typing or drop a file into the text area to get started.
</h2>
) : null}
</div>
<style jsx>
{`
.header-content {
display: flex;
flex-direction: column;
align-items: center;
}
.header-content a {
height: 64px;
max-width: 96vw;
}
h2 {
text-align: center;
}
@media (max-width: 768px) {
header {
margin-bottom: var(--x3);
}
h2 {
font-size: 13px;
}
}
`}
</style>
</header>
)
export default Header