feat: add app wrapper
This commit is contained in:
parent
9415d50564
commit
6e2922fb6f
36
routes/_app.tsx
Normal file
36
routes/_app.tsx
Normal 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>
|
||||
)
|
||||
}
|
Loading…
Reference in a new issue