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:
parent
20f8a0a0f0
commit
b9aa6a0a54
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue