/** @jsx jsx */ import { jsx, SxStyleProp } from 'theme-ui'; import { HeaderProps } from './types'; import { qt } from '../../query'; const styledHeader: SxStyleProp = { display: 'grid', gridTemplateColumns: '1fr 5fr 1fr', gridColumnGap: `${qt('spaces')(3)}px`, alignItems: 'center', boxSizing: 'border-box', position: 'fixed', top: 0, left: 0, width: '100%', height: qt('header')('all'), padding: `0 ${qt('spaces')(4)}px`, zIndex: 1, ':before': { content: '""', position: 'absolute', top: 0, left: 0, width: '100vw', height: '100%', borderBottom: `solid 1px ${qt('grays')(0)}`, backgroundColor: `${qt('whites')(0)}`, opacity: .94, zIndex: -1 } }; const styledHeaderItem: SxStyleProp = { ':nth-of-type(2)': { justifySelf: 'center', }, ':nth-of-type(3)': { justifySelf: 'end', } }; export const Header: React.FunctionComponent = ( props ): JSX.Element => { return (
{props.areas.map((Component, i) => (
{Component}
))}
); };