summaryrefslogtreecommitdiffstats
path: root/frontend/components/Page.js
blob: f45d42162e1f47397dbe7768b8e859e5012d7e1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import styled from 'styled-components';
import Header from './Header';
import Meta from './Meta';
import Nav from './Nav';
import CartList from './CartList';

const StyledPage = styled.div`
  font-family: sans-serif;
  color: #303030;
  background: #efc600;
  padding: 100px;
`;

const Page = ({ children }) => (
  <StyledPage className="main">
    <Meta />
    <Nav />
    <Header />
    <CartList />
    {children}
  </StyledPage>
);

export default Page;