From b9aa6a0a54b448c11c3c941c8a3a8c338fccfc07 Mon Sep 17 00:00:00 2001 From: MBO-Tech-IT Date: Tue, 2 Jun 2026 20:33:37 +0200 Subject: [PATCH] feat: set MBO-Tech-IT defaults in hero and add CMS links to admin nav Co-Authored-By: Claude Sonnet 4.6 --- app/api/admin/hero/route.ts | 16 ++++++++-------- components/admin/AdminNav.tsx | 5 +++++ components/admin/HeroVerwaltung.tsx | 17 +++++++++-------- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/app/api/admin/hero/route.ts b/app/api/admin/hero/route.ts index df7763c..20b5ae2 100644 --- a/app/api/admin/hero/route.ts +++ b/app/api/admin/hero/route.ts @@ -22,17 +22,17 @@ export async function PATCH(req: NextRequest) { const db = createServiceClient() const { data: existing } = await db.from('hero_content').select('id').limit(1).single() const fields = { - site_name: body.site_name ?? 'Musterfirma', - site_tagline: body.site_tagline ?? '', - eyebrow_text: body.eyebrow_text ?? 'Ihr Slogan hier', - headline1: body.headline1 ?? 'Wir lieben Qualität.', - headline2: body.headline2 ?? 'Ihre Kunden auch.', - subtext1: body.subtext1 ?? '', + site_name: body.site_name ?? 'MBO-Tech-IT', + site_tagline: body.site_tagline ?? 'IT-Service Crailsheim', + eyebrow_text: body.eyebrow_text ?? 'Digital Denken. Lokal Handeln.', + headline1: body.headline1 ?? 'Ihre IT-Infrastruktur.', + headline2: body.headline2 ?? 'Professionell. Zuverlässig.', + subtext1: body.subtext1 ?? 'Ihr IT-Dienstleister in Crailsheim', subtext2: body.subtext2 ?? '', cta1_text: body.cta1_text ?? 'Jetzt anfragen', - cta1_href: body.cta1_href ?? '#kontakt', + cta1_href: body.cta1_href ?? '#contact', cta2_text: body.cta2_text ?? 'Unsere Leistungen', - cta2_href: body.cta2_href ?? '#leistungen', + cta2_href: body.cta2_href ?? '#services', updated_at: new Date().toISOString(), } const { error } = existing diff --git a/components/admin/AdminNav.tsx b/components/admin/AdminNav.tsx index d42ea7e..dfc267a 100644 --- a/components/admin/AdminNav.tsx +++ b/components/admin/AdminNav.tsx @@ -4,6 +4,11 @@ import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; const navLinks = [ + { href: "/admin/hero", label: "Hero" }, + { href: "/admin/ueber-uns", label: "Über uns" }, + { href: "/admin/galerie", label: "Galerie" }, + { href: "/admin/kontakt", label: "Kontakt" }, + { href: "/admin/passwort", label: "Passwort" }, { href: "/admin/analytics", label: "Analytics" }, { href: "/admin/statistik", label: "Statistik" }, { href: "/admin/audit-logs", label: "Audit-Logs" }, diff --git a/components/admin/HeroVerwaltung.tsx b/components/admin/HeroVerwaltung.tsx index 7978da5..dedd74e 100644 --- a/components/admin/HeroVerwaltung.tsx +++ b/components/admin/HeroVerwaltung.tsx @@ -31,14 +31,15 @@ const section: React.CSSProperties = { // ← Standardwerte an eigenes Projekt anpassen const DEFAULTS: HeroContent = { - site_name: 'Musterfirma', - site_tagline: '', - eyebrow_text: 'Ihr Slogan hier', - headline1: 'Wir lieben Qualität.', - headline2: 'Ihre Kunden auch.', - subtext1: '', subtext2: '', - cta1_text: 'Jetzt anfragen', cta1_href: '#kontakt', - cta2_text: 'Unsere Leistungen', cta2_href: '#leistungen', + site_name: 'MBO-Tech-IT', + site_tagline: 'IT-Service Crailsheim', + eyebrow_text: 'Digital Denken. Lokal Handeln.', + headline1: 'Ihre IT-Infrastruktur.', + headline2: 'Professionell. Zuverlässig.', + subtext1: 'Ihr IT-Dienstleister in Crailsheim — egal ob zu Hause oder im Büro.', + subtext2: '', + cta1_text: 'Jetzt anfragen', cta1_href: '#contact', + cta2_text: 'Unsere Leistungen', cta2_href: '#services', bg_image_path: null, }