import type { CSSProperties } from "react"; import AsciiField from "./AsciiField"; interface HeroProps { eyebrowText?: string; headline1?: string; subtext1?: string; subtext2?: string; cta1Text?: string; cta1Href?: string; cta2Text?: string; cta2Href?: string; bgImagePath?: string | null; badges?: string[]; } // Senkrechte Lage der Stack-Labels; das ASCII-Feld führt seine Leitungen genau dorthin. function labelY(i: number, n: number) { if (n <= 1) return "50%"; return `${30 + (i * 40) / (n - 1)}%`; } export default function Hero({ headline1 = "Ihr IT-Service in Crailsheim.", 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", "Proxmox", "Hetzner Cloud", "Linux"], }: HeroProps = {}) { return (
{bgImagePath && (
{/* eslint-disable-next-line @next/next/no-img-element */}
)}

{headline1}

{subtext1 &&

{subtext1}

} {subtext2 &&

{subtext2}

}
{cta1Text} {cta2Text}
{badges.length > 0 && (
    {badges.map((badge, i) => (
  • {badge}
  • ))}
)}
); }