aboutsummaryrefslogtreecommitdiff
path: root/web/src/layouts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-09-17 19:52:47 +0200
committerLinnea Gräf <nea@nea.moe>2025-09-17 19:52:47 +0200
commitb1df082dc97720a0cc2f5e92c7991fd50f08a0bc (patch)
tree6bfbdcb9ebb3d86246f2100653c16f06aebe15fb /web/src/layouts
parent08f7ba0d73400f929156d7fb48f231832827443c (diff)
downloadFirmament-b1df082dc97720a0cc2f5e92c7991fd50f08a0bc.tar.gz
Firmament-b1df082dc97720a0cc2f5e92c7991fd50f08a0bc.tar.bz2
Firmament-b1df082dc97720a0cc2f5e92c7991fd50f08a0bc.zip
feat(web): update website components
Diffstat (limited to 'web/src/layouts')
-rw-r--r--web/src/layouts/Base.astro15
1 files changed, 9 insertions, 6 deletions
diff --git a/web/src/layouts/Base.astro b/web/src/layouts/Base.astro
index da71f41..4df9bd2 100644
--- a/web/src/layouts/Base.astro
+++ b/web/src/layouts/Base.astro
@@ -1,13 +1,16 @@
---
-import Head, {type Props as HeadProps} from "./Head.astro";
+import NavBar from "../components/NavBar.astro";
+import Head, { type Props as HeadProps } from "./Head.astro";
type Props = {
+ navbar?: boolean;
} & HeadProps;
---
<html>
-<Head {...Astro.props}></Head>
-<body class="bg-gray-800 text-white">
-<slot/>
-<footer></footer>
-</body>
+ <Head {...Astro.props} />
+ <body class="bg-gray-800 text-white">
+ {(Astro.props.navbar ?? true) ? <NavBar /> : null}
+ <slot />
+ <footer></footer>
+ </body>
</html>