-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathHeader.js
More file actions
56 lines (50 loc) · 1.27 KB
/
Header.js
File metadata and controls
56 lines (50 loc) · 1.27 KB
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
/** @jsx jsx */
import { version } from 'feather-icons/package.json'
import { Link as GatsbyLink } from 'gatsby'
import { jsx } from 'theme-ui'
import logOutboundLink from '../utils/logOutboundLink'
import Button from './Button'
import ColorModeToggle from './ColorModeToggle'
import Link from './Link'
import OutboundLink from './OutboundLink'
function Header() {
return (
<header
sx={{
paddingY: 4,
paddingX: 5,
display: 'flex',
alignItems: 'center',
}}
>
<Link as={GatsbyLink} to="/" sx={{ fontSize: 4 }}>
Feather
</Link>
<Button
as={OutboundLink}
href="https://github.com/feathericons/feather/releases"
onClick={() => logOutboundLink('release notes')}
sx={{
variant: 'buttons.outline',
paddingY: 1,
paddingX: 2,
marginLeft: 2,
fontSize: 1,
}}
>
v{version}
</Button>
{/* Spacer */}
<div sx={{ marginX: 'auto' }} />
<Link
as={OutboundLink}
href="https://github.com/feathericons/feather"
onClick={() => logOutboundLink('github')}
>
GitHub
</Link>
<ColorModeToggle sx={{ marginLeft: 4 }} />
</header>
)
}
export default Header