"use client"; import { useMemo } from "react"; import { useTypewriter } from "@/hooks/useTypewriter"; interface HeroProps { eyebrowText?: string; headline1?: string; subtext1?: string; subtext2?: string; cta1Text?: string; cta1Href?: string; cta2Text?: string; cta2Href?: string; bgImagePath?: string | null; badges?: string[]; } export default function Hero({ eyebrowText = "Digital Denken. Lokal Handeln.", headline1 = "Ihre IT-Infrastruktur.", subtext1 = "Ihr IT-Dienstleister in Crailsheim — egal ob zu Hause oder im Büro. Von Hard- & Software über Netzwerk & WLAN bis hin zu Webseiten & Webanwendungen: Wir lösen Ihre IT-Probleme persönlich und zum fairen Preis.", subtext2 = "", cta1Text = "Jetzt anfragen", cta1Href = "#contact", cta2Text = "Unsere Leistungen", cta2Href = "#services", bgImagePath = null, badges = ["Docker", "Kubernetes", "Proxmox", "Hetzner Cloud", "Linux"], }: HeroProps = {}) { const words = useMemo(() => ["Professionell.", "DSGVO-konform.", "Zuverlässig.", "Skalierbar."], []); const typed = useTypewriter(words); return (
{/* Background grid */}
{/* Radial gradient glow */}
{/* Floating orbs */}
{bgImagePath && (
)}
{/* Tagline badge */}
{eyebrowText}
{/* Headline */}

{headline1}{" "} {typed} |

{/* Subheadline */} {subtext1 && (

{subtext1}

)} {subtext2 && (

{subtext2}

)} {/* Tech pills */}
{badges.map((badge) => ( {badge} ))}
{/* CTAs */} {/* Scroll indicator */}
Scroll
); }