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`; --- -
+ +