Improved homepage 🙏

This commit is contained in:
Tom Moor
2018-07-11 20:23:36 -07:00
parent 95c4574549
commit 19a328ebeb
10 changed files with 209 additions and 104 deletions

View File

@ -1,6 +1,7 @@
// @flow
import * as React from 'react';
import { Helmet } from 'react-helmet';
import styled from 'styled-components';
import { TopNavigation, BottomNavigation } from './Navigation';
import Analytics from '../../../shared/components/Analytics';
import globalStyles from '../../../shared/styles/globals';
@ -15,7 +16,7 @@ type Props = {
children?: React.Node,
};
export default function Layout({ children }: Props) {
function Layout({ children }: Props) {
globalStyles();
return (
@ -63,11 +64,17 @@ export default function Layout({ children }: Props) {
{'{{HEAD}}'}
{'{{CSS}}'}
</head>
<body>
<Body>
<TopNavigation />
{children}
<BottomNavigation />
</body>
</Body>
</html>
);
}
const Body = styled.body`
padding: 0 30px;
`;
export default Layout;