website-astro/src/layouts/BaseLayout.astro

35 lines
739 B
Plaintext

---
import { astroI18n } from "astro-i18n";
astroI18n.init(Astro);
import "../styles/style.css";
import Header from "../components/Header.astro";
import Footer from "../components/Footer.astro";
const { pageTitle, titleColor } = Astro.props;
---
<html lang={astroI18n.langCode} dir="ltr">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<title>{pageTitle} - Nicolas Arduin</title>
</head>
<body>
<div class="wrapper">
<Header />
<main id="skip-content" role="main">
<slot />
</main>
</div>
<Footer />
</body>
<style define:vars={{ titleColor }}>
h1 {
color: var(--titleColor);
}
</style>
</html>