This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/components/design/Container.tsx

25 lines
528 B
TypeScript
Raw Normal View History

2021-10-24 05:19:39 +02:00
interface ContainerProps extends React.ComponentPropsWithRef<'div'> {}
export const Container: React.FC<ContainerProps> = (props) => {
const { children, className } = props
return (
<>
<div className={`container ${className ?? ''}`}>
{children}
</div>
<style jsx>
{`
.container {
height: calc(100vh - 110px);
display: flex;
flex-direction: column;
justify-content: center;
}
`}
</style>
</>
)
}