summaryrefslogtreecommitdiffstats
path: root/frontend/components/Page.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-06-14 16:44:21 -0400
committerWes Bos <wesbos@gmail.com>2018-06-14 16:44:21 -0400
commitb1600adec47a04f60e1da07d94a3ed3906ff5aee (patch)
tree828f786da6806d7237ee5cbc5df61e552353b85b /frontend/components/Page.js
parenta95e08cd2dd5d7ec0a0412adae02515a5f9cec4f (diff)
starter files
Diffstat (limited to 'frontend/components/Page.js')
-rw-r--r--frontend/components/Page.js67
1 files changed, 0 insertions, 67 deletions
diff --git a/frontend/components/Page.js b/frontend/components/Page.js
deleted file mode 100644
index cc0bc18..0000000
--- a/frontend/components/Page.js
+++ /dev/null
@@ -1,67 +0,0 @@
-import React from 'react';
-import styled, { ThemeProvider, injectGlobal } from 'styled-components';
-import PropTypes from 'prop-types';
-import Header from './Header';
-import Meta from './Meta';
-
-const theme = {
- red: '#FF0000',
- black: '#393939',
- grey: '#3A3A3A',
- lightgrey: '#E1E1E1',
- offWhite: '#EDEDED',
- maxWidth: '1300px',
- bs: '0 12px 24px 0 rgba(0, 0, 0, 0.09)',
-};
-
-injectGlobal`
- html {
- box-sizing: border-box;
- font-size: 10px;
- }
- body {
- font-family: 'radnika next', sans-serif;
- padding: 0;
- background-color: #ffffff;
- margin: 0;
- font-size: 1.5rem;
- line-height: 2;
- }
- *, *:before, *:after {
- box-sizing: inherit;
- }
- a {
- color: ${theme.black};
- text-decoration: none;
- }
-`;
-
-const Inner = styled.div`
- max-width: 1000px;
- margin: 0 auto;
- padding: 2rem;
-`;
-
-const StyledPage = styled.div`
- color: ${props => props.theme.black};
- background: white;
-`;
-
-class Page extends React.Component {
- static propTypes = {
- children: PropTypes.node.isRequired,
- };
- render() {
- return (
- <ThemeProvider theme={theme}>
- <StyledPage className="main">
- <Meta />
- <Header />
- <Inner>{this.props.children}</Inner>
- </StyledPage>
- </ThemeProvider>
- );
- }
-}
-
-export default Page;