diff --git a/src/pages/admin/index.astro b/src/pages/admin/index.astro index e363268..5cbc153 100644 --- a/src/pages/admin/index.astro +++ b/src/pages/admin/index.astro @@ -76,49 +76,11 @@ const presets = Object.values(THEME_PRESETS);
- +
- -
-

- Hero Sektion -

-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - -
-

- Sektionen Reihenfolge (Layout) -

-

Kommagetrennte Liste der aktiv gerenderten Sektionen:

- -
- @@ -195,7 +157,6 @@ const presets = Object.values(THEME_PRESETS); saveBtn.textContent = 'Wird gespeichert...'; const selectedPreset = document.querySelector('input[name="activePreset"]:checked')?.value || 'corporateDark'; - const sections = document.getElementById('sectionsOrder').value.split(',').map(s => s.trim()).filter(Boolean); const getVal = (id) => (document.getElementById(id))?.value || ''; const getNum = (id) => parseInt(document.getElementById(id)?.value || '0') || 587; @@ -204,15 +165,7 @@ const presets = Object.values(THEME_PRESETS); const payload = { siteConfig: { siteName: getVal('siteName'), - metaDescription: getVal('metaDescription'), - hero: { - badge: getVal('heroBadge'), - title: getVal('heroTitle'), - subtitle: getVal('heroSubtitle'), - ctaPrimaryText: getVal('ctaPrimaryText'), - ctaPrimaryLink: getVal('ctaPrimaryLink') - }, - sectionsOrder: sections + metaDescription: getVal('metaDescription') }, themeConfig: { activePreset: selectedPreset @@ -227,6 +180,7 @@ const presets = Object.values(THEME_PRESETS); }; try { + const res = await fetch('/api/config', { method: 'POST', headers: { 'Content-Type': 'application/json' },