feat: add app wrapper

This commit is contained in:
Julien Oculi 2024-02-06 10:55:29 +01:00
parent 9415d50564
commit 6e2922fb6f

36
routes/_app.tsx Normal file
View file

@ -0,0 +1,36 @@
import { asset, Head } from '$fresh/runtime.ts'
import { type PageProps } from '$fresh/server.ts'
import { Footer } from '../components/Footer.tsx'
import { Header } from '../components/Header.tsx'
export default function App({ Component }: PageProps) {
return (
<html lang='fr'>
<Head>
<meta charset='utf-8' />
<meta
name='viewport'
content='width=device-width, initial-scale=1.0'
/>
<meta
name='theme-color'
media='(prefers-color-scheme: light)'
content='white'
/>
<meta
name='theme-color'
media='(prefers-color-scheme: dark)'
content='black'
/>
<link rel='stylesheet' href={asset('/main.css')} />
</Head>
<body>
<Header />
<main>
<Component />
</main>
<Footer />
</body>
</html>
)
}