-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayout.js
43 lines (41 loc) · 992 Bytes
/
layout.js
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
import Link from 'next/link'
import Footer from '../components/footer'
import Meta from '../components/meta'
export default function Layout({ preview, children }) {
return (
<>
<Meta />
<div
css={`
display: grid;
grid-template-rows: auto 1fr auto;
height: 100%;
margin: 0.6rem;
text-align: center;
`}
>
<header
css={`
display: flex;
align-items: center;
justify-content: space-evenly;
flex-wrap: wrap;
h1 {
margin: 0;
}
`}
>
<Link href="/">
<a>
<img src="/logo.png" css="width: 6rem; height: auto" />
<h1>gouv.plus</h1>
</a>
</Link>
<p>Les services publics numériques citoyens dont vous rêvez.</p>
</header>
<main>{children}</main>
<Footer />
</div>
</>
)
}