import { getTranslations } from "next-intl/server"; import KineticWordmark from "./KineticWordmark"; import OpenWindowLink from "./fenster/OpenWindowLink"; interface HeroProps { locale: string; } // Abgabe der Masterarbeit, Grundlage für den Countdown im Intro const THESIS_DEADLINE = new Date("2027-02-15T12:00:00+01:00"); const MARQUEE = ["Self-Hosting", "Next.js", "SwiftUI", "Flutter", "Docker", "Microsoft 365", "Godot", "Home Assistant"]; export default async function Hero({ locale }: HeroProps) { const t = await getTranslations({ locale, namespace: "home.hero" }); const daysLeft = Math.max(0, Math.ceil((THESIS_DEADLINE.getTime() - Date.now()) / 86_400_000)); return ( <>

{t("kicker")}

Dennis Konkol: {t("claim")}

{t("intro")} {daysLeft > 0 && t("countdown", { days: daysLeft })}

{t("ctaWork")} {t("ctaContact")}
); }