frontend > app

This commit is contained in:
Tom Moor
2017-10-25 22:49:04 -07:00
parent aa34db8318
commit 4863680d86
239 changed files with 11 additions and 11 deletions

View File

@@ -0,0 +1,29 @@
// @flow
import React from 'react';
import styled from 'styled-components';
type Props = {
children?: React.Element<any>,
};
const Container = styled.div`
width: 100%;
margin: 60px 20px;
`;
const Content = styled.div`
max-width: 50em;
margin: 0 auto;
`;
const CenteredContent = ({ children, ...rest }: Props) => {
return (
<Container {...rest}>
<Content>
{children}
</Content>
</Container>
);
};
export default CenteredContent;

View File

@@ -0,0 +1,3 @@
// @flow
import CenteredContent from './CenteredContent';
export default CenteredContent;