Improved homepage 🙏
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user