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

70 lines
1.5 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";
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-25 15:57:44 -06:00
const { accent, noNavbar, locale } = Astro.props;
2025-12-19 21:25:55 -06:00
---
2026-01-14 13:30:12 -06:00
<html lang={locale}>
2025-12-18 16:45:02 -06:00
<head>
2025-12-20 19:10:11 -06:00
<BaseMeta />
2026-01-07 20:36:55 -06:00
<ColorScale color="mauve" />
2026-01-14 13:30:12 -06:00
<ColorScale color="mauve" alpha />
2026-01-07 20:36:55 -06:00
<ColorAlias color="mauve" alias="gray" />
2026-01-14 13:30:12 -06:00
<ColorAlias color="mauve" alpha alias="gray" />
2026-01-12 13:46:58 -06:00
<ColorScale color="black" alpha />
<ColorScale color="white" alpha />
<ColorScale color={accent} />
2026-01-15 13:48:37 -06:00
<ColorScale color={accent} alpha />
2026-01-07 20:36:55 -06:00
<ColorAlias color={accent} alias="accent" />
2026-01-15 13:48:37 -06:00
<ColorAlias color={accent} alpha alias="accent" />
2026-01-07 20:36:55 -06:00
<BaseStyles />
2026-01-10 13:07:59 -06:00
<style>
body {
margin: 0;
display: flex;
flex-direction: column;
2026-01-12 14:00:13 -06:00
min-height: 100dvh;
2026-01-10 13:07:59 -06:00
2026-01-25 15:57:44 -06:00
background-color: var(--gray-1);
2026-01-10 13:07:59 -06:00
color: var(--gray-12);
font-family: var(--font-family-regular);
2026-01-14 12:37:42 -06:00
.app {
display: flex;
flex: 1;
flex-direction: column;
2026-01-18 14:51:55 -06:00
background-color: var(--gray-1);
2026-01-14 12:37:42 -06:00
}
2026-01-10 13:07:59 -06:00
}
</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-25 15:57:44 -06:00
{!noNavbar && <Navbar {locale} />}
2026-01-25 15:55:30 -06:00
2026-01-14 13:30:12 -06:00
<slot name="pre-app" />
2026-01-14 12:37:42 -06:00
<div class="app">
<slot />
</div>
2025-12-18 16:45:02 -06:00
</body>
</html>