feat: set MBO-Tech-IT defaults in hero and add CMS links to admin nav

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
MBO-Tech-IT 2026-06-02 20:33:37 +02:00
parent 20f8a0a0f0
commit b9aa6a0a54
3 changed files with 22 additions and 16 deletions

View File

@ -22,17 +22,17 @@ export async function PATCH(req: NextRequest) {
const db = createServiceClient() const db = createServiceClient()
const { data: existing } = await db.from('hero_content').select('id').limit(1).single() const { data: existing } = await db.from('hero_content').select('id').limit(1).single()
const fields = { const fields = {
site_name: body.site_name ?? 'Musterfirma', site_name: body.site_name ?? 'MBO-Tech-IT',
site_tagline: body.site_tagline ?? '', site_tagline: body.site_tagline ?? 'IT-Service Crailsheim',
eyebrow_text: body.eyebrow_text ?? 'Ihr Slogan hier', eyebrow_text: body.eyebrow_text ?? 'Digital Denken. Lokal Handeln.',
headline1: body.headline1 ?? 'Wir lieben Qualität.', headline1: body.headline1 ?? 'Ihre IT-Infrastruktur.',
headline2: body.headline2 ?? 'Ihre Kunden auch.', headline2: body.headline2 ?? 'Professionell. Zuverlässig.',
subtext1: body.subtext1 ?? '', subtext1: body.subtext1 ?? 'Ihr IT-Dienstleister in Crailsheim',
subtext2: body.subtext2 ?? '', subtext2: body.subtext2 ?? '',
cta1_text: body.cta1_text ?? 'Jetzt anfragen', 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_text: body.cta2_text ?? 'Unsere Leistungen',
cta2_href: body.cta2_href ?? '#leistungen', cta2_href: body.cta2_href ?? '#services',
updated_at: new Date().toISOString(), updated_at: new Date().toISOString(),
} }
const { error } = existing const { error } = existing

View File

@ -4,6 +4,11 @@ import Link from "next/link";
import { usePathname, useRouter } from "next/navigation"; import { usePathname, useRouter } from "next/navigation";
const navLinks = [ 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/analytics", label: "Analytics" },
{ href: "/admin/statistik", label: "Statistik" }, { href: "/admin/statistik", label: "Statistik" },
{ href: "/admin/audit-logs", label: "Audit-Logs" }, { href: "/admin/audit-logs", label: "Audit-Logs" },

View File

@ -31,14 +31,15 @@ const section: React.CSSProperties = {
// ← Standardwerte an eigenes Projekt anpassen // ← Standardwerte an eigenes Projekt anpassen
const DEFAULTS: HeroContent = { const DEFAULTS: HeroContent = {
site_name: 'Musterfirma', site_name: 'MBO-Tech-IT',
site_tagline: '', site_tagline: 'IT-Service Crailsheim',
eyebrow_text: 'Ihr Slogan hier', eyebrow_text: 'Digital Denken. Lokal Handeln.',
headline1: 'Wir lieben Qualität.', headline1: 'Ihre IT-Infrastruktur.',
headline2: 'Ihre Kunden auch.', headline2: 'Professionell. Zuverlässig.',
subtext1: '', subtext2: '', subtext1: 'Ihr IT-Dienstleister in Crailsheim — egal ob zu Hause oder im Büro.',
cta1_text: 'Jetzt anfragen', cta1_href: '#kontakt', subtext2: '',
cta2_text: 'Unsere Leistungen', cta2_href: '#leistungen', cta1_text: 'Jetzt anfragen', cta1_href: '#contact',
cta2_text: 'Unsere Leistungen', cta2_href: '#services',
bg_image_path: null, bg_image_path: null,
} }