From 430ef35386e79386f84665f6bd8d54c31e45e018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linnea=20Gr=C3=A4f?= Date: Sun, 17 Nov 2024 04:01:17 +0100 Subject: [PATCH] feat(web): Move over some docs --- web/src/components/NavBar.astro | 16 ++--- web/src/components/NavLink.astro | 11 ++++ web/src/layouts/Content.astro | 63 +++++++++++++++++++ web/src/pages/docs/texture-pack-format.astro | 15 +++++ .../src/pages/docs/texture-pack-format.md | 0 web/src/pages/index.astro | 5 ++ web/src/pages/texture-packs.astro | 10 +++ 7 files changed, 112 insertions(+), 8 deletions(-) create mode 100644 web/src/components/NavLink.astro create mode 100644 web/src/layouts/Content.astro create mode 100644 web/src/pages/docs/texture-pack-format.astro rename docs/Texture Pack Format.md => web/src/pages/docs/texture-pack-format.md (100%) create mode 100644 web/src/pages/texture-packs.astro diff --git a/web/src/components/NavBar.astro b/web/src/components/NavBar.astro index 5cecbb4..d98094f 100644 --- a/web/src/components/NavBar.astro +++ b/web/src/components/NavBar.astro @@ -1,4 +1,5 @@ --- +import NavLink from "./NavLink.astro"; export type Props = { navStyle?: 'transparent' | 'full' } @@ -7,20 +8,19 @@ const navbar = Astro.props.navStyle ?? 'full'; --- diff --git a/web/src/components/NavLink.astro b/web/src/components/NavLink.astro new file mode 100644 index 0000000..dce002b --- /dev/null +++ b/web/src/components/NavLink.astro @@ -0,0 +1,11 @@ +--- +type Props = { + link: string +}; +--- + +
  • + + + +
  • diff --git a/web/src/layouts/Content.astro b/web/src/layouts/Content.astro new file mode 100644 index 0000000..51ad0b8 --- /dev/null +++ b/web/src/layouts/Content.astro @@ -0,0 +1,63 @@ +--- +--- + +
    + +
    + diff --git a/web/src/pages/docs/texture-pack-format.astro b/web/src/pages/docs/texture-pack-format.astro new file mode 100644 index 0000000..f04188f --- /dev/null +++ b/web/src/pages/docs/texture-pack-format.astro @@ -0,0 +1,15 @@ +--- +import Base from "../../layouts/Base.astro"; +import NavBar from "../../components/NavBar.astro"; +import Content from "../../layouts/Content.astro"; +import MarkDown from './texture-pack-format.md'; +--- + + + + + + + + + diff --git a/docs/Texture Pack Format.md b/web/src/pages/docs/texture-pack-format.md similarity index 100% rename from docs/Texture Pack Format.md rename to web/src/pages/docs/texture-pack-format.md diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro index 139b515..4baa867 100644 --- a/web/src/pages/index.astro +++ b/web/src/pages/index.astro @@ -3,6 +3,7 @@ import Hero from "../components/Hero.astro" import Base from "../layouts/Base.astro"; import Image from "../panorama.png"; import NavBar from "../components/NavBar.astro"; +import Content from "../layouts/Content.astro"; --- @@ -12,4 +13,8 @@ import NavBar from "../components/NavBar.astro"; Download now + + Firmament is a 1.21 Minecraft mod for Hypixel SkyBlock. It has a variety of features such as an item list, + mining features. + diff --git a/web/src/pages/texture-packs.astro b/web/src/pages/texture-packs.astro new file mode 100644 index 0000000..77d8a37 --- /dev/null +++ b/web/src/pages/texture-packs.astro @@ -0,0 +1,10 @@ +--- +import Base from "../layouts/Base.astro"; +import NavBar from "../components/NavBar.astro"; +import Content from "../layouts/Content.astro"; +--- + + + + +