36 lines
754 B
Plaintext
36 lines
754 B
Plaintext
---
|
|
import "../styles/global.css";
|
|
import Head from "./Head.astro";
|
|
import Navigation from "../components/Navigation.astro";
|
|
import { getLanguageFromPath } from "../lib/i18n";
|
|
import ReloadPrompt from '../components/ReloadPrompt.astro';
|
|
|
|
const { title = "Just a title", description = "Adescription" } = Astro.props;
|
|
|
|
// Get current language from URL
|
|
const currentLang = getLanguageFromPath(Astro.url.pathname);
|
|
---
|
|
<!doctype html>
|
|
<html lang={currentLang}>
|
|
<Head {title} {description} />
|
|
<body>
|
|
<header class="bg-white shadow-sm">
|
|
<Navigation />
|
|
</header>
|
|
<main class="container max-w-4xl mx-auto p-4">
|
|
<slot />
|
|
<ReloadPrompt />
|
|
|
|
</main>
|
|
</body>
|
|
</html>
|
|
|
|
<style>
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
</style>
|