Files
blitzkit/packages/website-ue/src/layouts/BaseLayout.astro
T

57 lines
1.2 KiB
Plaintext
Raw Normal View History

2025-12-19 21:25:55 -06:00
---
2025-12-20 19:10:11 -06:00
import BaseMeta from "../components/BaseMeta.astro";
import BaseStyles from "../components/BaseStyles.astro";
2026-01-07 20:36:55 -06:00
import ColorAlias from "../components/ColorAlias.astro";
import ColorScale from "../components/ColorScale.astro";
2026-01-10 13:49:11 -06:00
import Footer from "../components/Footer.astro";
2025-12-24 19:33:01 -06:00
import Navbar from "../components/Navbar.astro";
2026-01-10 13:07:59 -06:00
import type { Color } from "../core/ui/color";
2025-12-19 22:23:03 -06:00
interface Props {
2026-01-12 14:00:13 -06:00
locale: string;
2025-12-19 22:23:03 -06:00
accent: Color;
2025-12-24 19:33:01 -06:00
noNavbar?: boolean;
2025-12-19 22:23:03 -06:00
}
2026-01-12 14:00:13 -06:00
const { accent, noNavbar, locale } = Astro.props;
2025-12-19 21:25:55 -06:00
---
2025-12-18 16:45:02 -06:00
<html>
<head>
2025-12-20 19:10:11 -06:00
<BaseMeta />
2026-01-07 20:36:55 -06:00
<ColorScale color="mauve" />
<ColorAlias color="mauve" alias="gray" />
2026-01-12 13:46:58 -06:00
<ColorScale color="black" alpha />
<ColorScale color="white" alpha />
<ColorScale color={accent} />
2026-01-07 20:36:55 -06:00
<ColorAlias color={accent} alias="accent" />
<BaseStyles />
2026-01-10 13:07:59 -06:00
<style>
body {
margin: 0;
display: flex;
flex-direction: column;
2026-01-10 13:19:59 -06:00
gap: var(--space-5);
2026-01-12 14:00:13 -06:00
min-height: 100dvh;
2026-01-10 13:07:59 -06:00
background-color: var(--gray-1);
color: var(--gray-12);
font-family: var(--font-family-regular);
}
</style>
<slot name="head" />
2025-12-18 16:45:02 -06:00
</head>
2025-12-19 21:25:55 -06:00
<body class="dark">
2026-01-13 20:33:14 -06:00
{!noNavbar && <Navbar {locale} />}
2026-01-10 13:49:11 -06:00
2025-12-18 16:45:02 -06:00
<slot />
2026-01-10 13:49:11 -06:00
2026-01-12 14:00:13 -06:00
<Footer {locale} />
2025-12-18 16:45:02 -06:00
</body>
</html>