|
@ -15,14 +15,20 @@ import type {Node} from 'react'; |
|
|
* This component wraps page content sections (eg header, footer, main). |
|
|
* This component wraps page content sections (eg header, footer, main). |
|
|
* It provides consistent margin and max width behavior. |
|
|
* It provides consistent margin and max width behavior. |
|
|
*/ |
|
|
*/ |
|
|
const Container = ({children}: {children: Node}) => ( |
|
|
const Container = ({ |
|
|
|
|
|
children, |
|
|
|
|
|
grayscale, |
|
|
|
|
|
}: { |
|
|
|
|
|
children: Node, |
|
|
|
|
|
grayscale: boolean, |
|
|
|
|
|
}) => ( |
|
|
<div |
|
|
<div |
|
|
css={{ |
|
|
css={{ |
|
|
paddingLeft: 20, |
|
|
paddingLeft: 20, |
|
|
paddingRight: 20, |
|
|
paddingRight: 20, |
|
|
marginLeft: 'auto', |
|
|
marginLeft: 'auto', |
|
|
marginRight: 'auto', |
|
|
marginRight: 'auto', |
|
|
|
|
|
filter: grayscale ? 'grayscale(100%)' : '', |
|
|
[media.greaterThan('medium')]: { |
|
|
[media.greaterThan('medium')]: { |
|
|
width: '90%', |
|
|
width: '90%', |
|
|
}, |
|
|
}, |
|
|