diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-09-17 19:52:47 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-09-17 19:52:47 +0200 |
| commit | b1df082dc97720a0cc2f5e92c7991fd50f08a0bc (patch) | |
| tree | 6bfbdcb9ebb3d86246f2100653c16f06aebe15fb /web/src | |
| parent | 08f7ba0d73400f929156d7fb48f231832827443c (diff) | |
| download | Firmament-b1df082dc97720a0cc2f5e92c7991fd50f08a0bc.tar.gz Firmament-b1df082dc97720a0cc2f5e92c7991fd50f08a0bc.tar.bz2 Firmament-b1df082dc97720a0cc2f5e92c7991fd50f08a0bc.zip | |
feat(web): update website components
Diffstat (limited to 'web/src')
| -rw-r--r-- | web/src/layouts/Base.astro | 15 | ||||
| -rw-r--r-- | web/src/pages/docs/texture-pack-format.astro | 1 | ||||
| -rw-r--r-- | web/src/pages/index.astro | 2 | ||||
| -rw-r--r-- | web/src/pages/texture-packs.astro | 1 |
4 files changed, 10 insertions, 9 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> diff --git a/web/src/pages/docs/texture-pack-format.astro b/web/src/pages/docs/texture-pack-format.astro index 0714aea..ed14cde 100644 --- a/web/src/pages/docs/texture-pack-format.astro +++ b/web/src/pages/docs/texture-pack-format.astro @@ -6,7 +6,6 @@ import MarkDown from './_texture-pack-format.md'; --- <Base title="Firmament Texture Packs"> - <NavBar></NavBar> <Content> <MarkDown/> </Content> diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro index 4baa867..f8c789f 100644 --- a/web/src/pages/index.astro +++ b/web/src/pages/index.astro @@ -6,7 +6,7 @@ import NavBar from "../components/NavBar.astro"; import Content from "../layouts/Content.astro"; --- -<Base title="Firmament"> +<Base title="Firmament" navbar={false}> <Hero image={Image} alt="A panorama shot of the HyPixel SkyBlock hub"> <h1 class="text-4xl font-bold leading-tight mb-4">Firmament</h1> <p class="text-lg text-gray-300 mb-8">Hypixel SkyBlock Utility Mod</p> diff --git a/web/src/pages/texture-packs.astro b/web/src/pages/texture-packs.astro index ee511f9..0f34157 100644 --- a/web/src/pages/texture-packs.astro +++ b/web/src/pages/texture-packs.astro @@ -4,6 +4,5 @@ import NavBar from "../components/NavBar.astro"; --- <Base title="Firmament Texture Packs"> - <NavBar></NavBar> </Base> |
