-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy path_layout.js
56 lines (55 loc) · 1.36 KB
/
_layout.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
import React from 'react'
import {
Flex,
Box,
Container,
Text,
Caps,
BlockLink,
} from 'rebass'
import { Link } from 'react-router-dom'
import { Logo } from '@compositor/logo'
export default ({ children }) =>
<React.Fragment>
<Flex alignItems='center'>
<BlockLink
href='https://compositor.io'>
<Flex px={1} py={2} alignItems='center'>
<Logo size={32} />
<Caps fontWeight='bold'>
Compositor
</Caps>
</Flex>
</BlockLink>
<Box mx='auto' />
<BlockLink px={3} is={Link} to='/'>
<Caps fontWeight='bold'>
x0
</Caps>
</BlockLink>
<BlockLink px={3} href='https://github.com/c8r/x0'>
<Caps fontWeight='bold'>
GitHub
</Caps>
</BlockLink>
</Flex>
{children}
<Container>
<Flex py={4} mt={5} flexWrap='wrap'>
<BlockLink my={2} mr={3} href='https://github.com/c8r/x0'>
<Caps fontWeight='bold'>
GitHub
</Caps>
</BlockLink>
<BlockLink my={2} mr={3} href='https://compositor.io'>
<Caps fontWeight='bold'>
Compositor
</Caps>
</BlockLink>
<Box mx='auto' />
<Text my={2} fontSize={0}>
© 2018 Compositor, Inc. All rights reserved
</Text>
</Flex>
</Container>
</React.Fragment>