2022-09-09 11:53:35 +00:00
|
|
|
---
|
|
|
|
import '../styles/app.scss'
|
|
|
|
import { Suspense } from 'solid-js'
|
|
|
|
import { Header } from '../components/Nav/Header'
|
|
|
|
import { Footer } from '../components/Discours/Footer'
|
2022-09-14 11:28:43 +00:00
|
|
|
import { ServerRouterProvider } from '../components/providers/ServerRouterProvider'
|
2022-09-09 11:53:35 +00:00
|
|
|
import { t } from '../utils/intl'
|
|
|
|
|
2022-09-14 11:28:43 +00:00
|
|
|
const { pathname, search } = Astro.url
|
2022-09-17 18:23:30 +00:00
|
|
|
const lang = Astro.url.searchParams['lang']
|
2022-09-09 11:53:35 +00:00
|
|
|
---
|
|
|
|
|
2022-09-14 11:28:43 +00:00
|
|
|
<ServerRouterProvider href={pathname + search}>
|
2022-09-17 18:23:30 +00:00
|
|
|
<html lang={lang || 'en'}>
|
2022-09-14 11:28:43 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width" />
|
|
|
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
|
|
<title>{t('Discours')}</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-09-16 10:47:00 +00:00
|
|
|
<Header client:load />
|
2022-09-14 11:28:43 +00:00
|
|
|
<main class="main-content">
|
|
|
|
<Suspense>
|
|
|
|
<slot />
|
|
|
|
</Suspense>
|
|
|
|
</main>
|
|
|
|
<Footer />
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</ServerRouterProvider>
|