You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
949 B
51 lines
949 B
import React, { ReactNode } from "react";
|
|
import Header from "./Header";
|
|
|
|
type Props = {
|
|
children: ReactNode;
|
|
};
|
|
|
|
const Layout: React.FC<Props> = (props) => (
|
|
<div>
|
|
<Header />
|
|
<div className="layout">{props.children}</div>
|
|
<style jsx global>{`
|
|
html {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
*,
|
|
*:before,
|
|
*:after {
|
|
box-sizing: inherit;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 16px;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
"Segoe UI Symbol";
|
|
background: rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
font-size: 16px;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
`}</style>
|
|
<style jsx>{`
|
|
.layout {
|
|
padding: 0 2rem;
|
|
}
|
|
`}</style>
|
|
</div>
|
|
);
|
|
|
|
export default Layout;
|