webapp/src/layouts/zine.astro

33 lines
857 B
Plaintext
Raw Normal View History

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'
import { t } from '../utils/intl'
import { locale as langstore } from '../stores/ui'
import { useStore } from '@nanostores/solid'
import { router } from '../stores/router'
const locale = useStore(langstore)
// FIXME why
router.open(Astro.url.pathname) // looks like doesn't work!
---
<html lang={locale() || 'en'}>
<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-15 18:18:07 +00:00
<Header client:load />
2022-09-09 11:53:35 +00:00
<main class="main-content">
<Suspense>
<slot />
</Suspense>
</main>
<Footer />
</body>
</html>