55 lines
1.4 KiB
TypeScript
55 lines
1.4 KiB
TypeScript
import { asset, Head, Partial } 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='shortcut icon'
|
|
href={asset('/assets/favicon.ico')}
|
|
type='image/x-icon'
|
|
/>
|
|
<link rel='stylesheet' href={asset('/main.css')} />
|
|
{/* TODO remove google fonts link */}
|
|
<link rel='preconnect' href='https://fonts.googleapis.com' />
|
|
<link
|
|
rel='preconnect'
|
|
href='https://fonts.gstatic.com'
|
|
crossorigin={''}
|
|
/>
|
|
<link
|
|
href='https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Hepta+Slab:wght@1..900&family=MuseoModerno:ital,wght@0,100..900;1,100..900&display=swap'
|
|
rel='stylesheet'
|
|
/>
|
|
</Head>
|
|
<body>
|
|
<Header />
|
|
<main f-client-nav>
|
|
<Partial name='main'>
|
|
<Component />
|
|
</Partial>
|
|
</main>
|
|
<Footer />
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|