Skip to content

Commit 39ad089

Browse files
committed
Ajoute le fichier _app.js
1 parent fb3b3e8 commit 39ad089

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

Diff for: pages/_app.js

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import {Container} from 'next/app'
2+
3+
function App({ Component, pageProps }) {
4+
return (
5+
<Container>
6+
<style jsx global>{`
7+
html, body, #__next, .main {
8+
height: 100%;
9+
}
10+
11+
body {
12+
font-family: sans-serif;
13+
max-width: 800px;
14+
margin: 0 auto;
15+
}
16+
17+
body, input, button {
18+
font-size: 150%;
19+
}
20+
21+
.main {
22+
display: flex;
23+
flex-direction: column;
24+
justify-content: space-between;
25+
}
26+
27+
footer {
28+
margin: 0.5em 0;
29+
}
30+
31+
a {
32+
color: #d45500;
33+
text-decoration: none;
34+
}
35+
`}</style>
36+
<div className="main">
37+
<Component {...pageProps} />
38+
<footer>
39+
<div><a href="https://github.com/mes-aides/covid">Site réalisé</a> par l'<a href="https://association.mes-aides.org">association Mes Aides</a>.</div>
40+
<div>Vous pouvez nous contacter <a href="mailto:[email protected]">par email</a>.</div>
41+
</footer>
42+
</div>
43+
</Container>
44+
)
45+
}
46+
47+
export default App

0 commit comments

Comments
 (0)