i18n start + css start

This commit is contained in:
Nico 2022-12-02 17:29:11 +01:00
parent 688d794dc7
commit 15b825bd5d
40 changed files with 1062 additions and 33 deletions

View file

@ -1,12 +1,15 @@
---
import { astroI18n } from "astro-i18n";
import { I18nProvider } from "astro-i18n/components"
import '../styles/style.css';
import Header from '../components/Header.astro';
const currentLocale = astroI18n.langCode;
const { pageTitle, titleColor } = Astro.props;
---
<html lang="fr" dir="ltr">
<I18nProvider>
<html lang={currentLocale} dir="ltr">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
@ -16,8 +19,7 @@ const { pageTitle, titleColor } = Astro.props;
</head>
<body>
<Header />
<main role="main">
<h1>{pageTitle}</h1>
<main id="skip-content" role="main">
<slot/>
</main>
</body>
@ -27,3 +29,4 @@ const { pageTitle, titleColor } = Astro.props;
}
</style>
</html>
</I18nProvider>