-
Notifications
You must be signed in to change notification settings - Fork 0
/
Layout.tsx
46 lines (45 loc) · 1.08 KB
/
Layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import Head from "next/head";
import Navigation from "./Navigation";
type Props = {
children: React.ReactNode;
};
export default function Layout({ children }: Props) {
return (
<div className="root">
<Head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="apple-touch-icon" href="/icon.png" />
<meta name="theme-color" content="#fff" />
</Head>
<nav>
<Navigation />
</nav>
<main>{children}</main>
<style jsx>
{`
.root {
display: block;
padding: 4rem 0;
box-sizing: border-box;
height: 100%;
}
main {
display: flex;
min-height: 100%;
}
@media (min-width: 769px) {
.root {
display: flex;
flex: 1 0 auto;
}
main {
flex: 1 0 auto;
}
}
`}
</style>
</div>
);
}