website/routes/_app.tsx

37 lines
798 B
TypeScript

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>
)
}