use styled-jsx in PageContainer
This commit is contained in:
parent
2711f4061f
commit
0b308e570e
@ -5,13 +5,17 @@ import { Theme } from "../theme/Theme";
|
|||||||
const PageContainer: FunctionComponent<{ theme: Theme }> = (props) => {
|
const PageContainer: FunctionComponent<{ theme: Theme }> = (props) => {
|
||||||
return (
|
return (
|
||||||
<div style={{
|
<div style={{
|
||||||
display: "flex",
|
|
||||||
flexDirection: "column",
|
|
||||||
alignItems: "center",
|
|
||||||
background: props.theme?.background,
|
background: props.theme?.background,
|
||||||
flex: "1",
|
|
||||||
minHeight: "400px"
|
|
||||||
}}>
|
}}>
|
||||||
|
<style jsx>{`
|
||||||
|
div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
flex: 1;
|
||||||
|
min-height: 400px;
|
||||||
|
}
|
||||||
|
`}</style>
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user