From d5b66ff830d404a24a7a07688c69eb5f65a21ba5 Mon Sep 17 00:00:00 2001 From: Daniel S Date: Sun, 9 Aug 2026 22:33:52 +0200 Subject: [PATCH] feat(admin): add persistent drawer burger sidebar navigation across all admin pages --- src/components/admin/AdminSidebar.astro | 112 ++++++++++++++++++++++++ src/pages/admin/editor.astro | 5 +- src/pages/admin/index.astro | 5 +- src/pages/admin/pages.astro | 5 +- src/pages/admin/settings.astro | 5 +- 5 files changed, 128 insertions(+), 4 deletions(-) create mode 100644 src/components/admin/AdminSidebar.astro diff --git a/src/components/admin/AdminSidebar.astro b/src/components/admin/AdminSidebar.astro new file mode 100644 index 0000000..3a02281 --- /dev/null +++ b/src/components/admin/AdminSidebar.astro @@ -0,0 +1,112 @@ +--- +// src/components/admin/AdminSidebar.astro +const { currentPath = '' } = Astro.props; + +const navItems = [ + { href: '/admin', label: 'Allgemein & Konfig', icon: '🎛️' }, + { href: '/admin/pages', label: 'Seiten-Verwaltung', icon: '📄' }, + { href: '/admin/editor', label: 'Visueller Editor', icon: '🎨' }, + { href: '/admin/settings', label: 'Stammdaten & SEO', icon: '⚙️' }, +]; +--- + + + + + + + + + + + diff --git a/src/pages/admin/editor.astro b/src/pages/admin/editor.astro index 687c22f..f22406b 100644 --- a/src/pages/admin/editor.astro +++ b/src/pages/admin/editor.astro @@ -1,6 +1,7 @@ --- // src/pages/admin/editor.astro import Layout from '../../layouts/Layout.astro'; +import AdminSidebar from '../../components/admin/AdminSidebar.astro'; import { loadWaasConfigs } from '../../utils/configLoader'; import { THEME_PRESETS } from '../../utils/themePresets'; @@ -18,9 +19,11 @@ const previewUrl = `${targetPage?.slug || '/'}?preview=draft`; --- -
+ +