From 4ff06582503268d618eafed0f8da4b548ddbbdb5 Mon Sep 17 00:00:00 2001 From: DerGrumpf Date: Thu, 28 May 2026 14:34:25 +0200 Subject: [PATCH] WIP: Base Astro Components --- cyperpunk.de/src/components/Sidebar.astro | 25 ++++++++++++++++++++ cyperpunk.de/src/components/Topbar.astro | 24 +++++++++++++++++++ cyperpunk.de/src/layouts/Base.astro | 28 +++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 cyperpunk.de/src/components/Sidebar.astro create mode 100644 cyperpunk.de/src/components/Topbar.astro create mode 100644 cyperpunk.de/src/layouts/Base.astro diff --git a/cyperpunk.de/src/components/Sidebar.astro b/cyperpunk.de/src/components/Sidebar.astro new file mode 100644 index 0000000..1318af6 --- /dev/null +++ b/cyperpunk.de/src/components/Sidebar.astro @@ -0,0 +1,25 @@ +--- +--- + + diff --git a/cyperpunk.de/src/components/Topbar.astro b/cyperpunk.de/src/components/Topbar.astro new file mode 100644 index 0000000..8cd2bb9 --- /dev/null +++ b/cyperpunk.de/src/components/Topbar.astro @@ -0,0 +1,24 @@ +--- +const navItems = [ + { label: "home", href: "/" }, + { label: "writing", href: "/writing" }, + { label: "talks", href: "/talks" }, + { label: "about", href: "/about" }, +]; + +const currentPath = Astro.url.pathname; +--- + +
+ + +
diff --git a/cyperpunk.de/src/layouts/Base.astro b/cyperpunk.de/src/layouts/Base.astro new file mode 100644 index 0000000..f21c745 --- /dev/null +++ b/cyperpunk.de/src/layouts/Base.astro @@ -0,0 +1,28 @@ +--- +interface Props { + title: string; +} +const { title } = Astro.props; +--- + + + + + + {title} + + + + +
+
+ +
+ +
+ +