This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/frontend/components/CenteredContent/CenteredContent.js
Tom Moor 24686aac44 Fixes: Scroll to top behavior when changing pages
Fixes: Different max-width on docs and other content
2017-09-04 08:56:07 -07:00

30 lines
475 B
JavaScript

// @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;