2024-02-13 14:04:10 +01:00
|
|
|
import { asset, Head, Partial } from '$fresh/runtime.ts'
|
2024-02-06 10:55:29 +01:00
|
|
|
import { type PageProps } from '$fresh/server.ts'
|
|
|
|
import { Footer } from '../components/Footer.tsx'
|
|
|
|
import { Header } from '../components/Header.tsx'
|
2024-06-06 16:35:55 +02:00
|
|
|
import RegisterServiceWorker from '../islands/RegisterServiceWorker.tsx'
|
2024-02-06 10:55:29 +01:00
|
|
|
|
|
|
|
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)'
|
2024-05-28 17:06:28 +02:00
|
|
|
content='#82c91e'
|
2024-02-06 10:55:29 +01:00
|
|
|
/>
|
|
|
|
<meta
|
|
|
|
name='theme-color'
|
|
|
|
media='(prefers-color-scheme: dark)'
|
2024-05-28 17:06:28 +02:00
|
|
|
content='#3d210d'
|
2024-02-06 10:55:29 +01:00
|
|
|
/>
|
2024-05-28 13:47:55 +02:00
|
|
|
<meta
|
|
|
|
name='description'
|
2024-05-28 14:03:09 +02:00
|
|
|
content="Fablab Cohabit - L'atelier participatif libre et open source"
|
2024-05-28 13:47:55 +02:00
|
|
|
/>
|
2024-05-28 17:07:11 +02:00
|
|
|
<link
|
|
|
|
rel='manifest'
|
|
|
|
href={asset('manifest.json')}
|
|
|
|
crossorigin='user-credentials'
|
|
|
|
/>
|
2024-02-06 16:25:28 +01:00
|
|
|
<link
|
|
|
|
rel='shortcut icon'
|
|
|
|
href={asset('/assets/favicon.ico')}
|
|
|
|
type='image/x-icon'
|
|
|
|
/>
|
2024-02-06 10:55:29 +01:00
|
|
|
<link rel='stylesheet' href={asset('/main.css')} />
|
2024-02-13 14:48:47 +01:00
|
|
|
{/* TODO remove google fonts link */}
|
|
|
|
<link rel='preconnect' href='https://fonts.googleapis.com' />
|
|
|
|
<link
|
|
|
|
rel='preconnect'
|
|
|
|
href='https://fonts.gstatic.com'
|
|
|
|
crossorigin={''}
|
|
|
|
/>
|
2024-02-06 10:55:29 +01:00
|
|
|
</Head>
|
|
|
|
<body>
|
|
|
|
<Header />
|
2024-02-13 14:04:10 +01:00
|
|
|
<main f-client-nav>
|
|
|
|
<Partial name='main'>
|
|
|
|
<Component />
|
|
|
|
</Partial>
|
2024-02-06 10:55:29 +01:00
|
|
|
</main>
|
2024-06-06 16:35:55 +02:00
|
|
|
<RegisterServiceWorker href={asset('/sw.js')} />
|
2024-02-06 10:55:29 +01:00
|
|
|
<Footer />
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
)
|
|
|
|
}
|