import { getTranslations } from "next-intl/server"; import Image from "next/image"; import { getMessages } from "@/lib/directus"; interface HeroProps { locale: string; } export default async function Hero({ locale }: HeroProps) { const [t, cmsMessages] = await Promise.all([ getTranslations("home.hero"), getMessages(locale).catch(() => ({} as Record)), ]); const getLabel = (key: string, fallback: string) => cmsMessages[key] || fallback; return (
{/* Liquid Ambient Background */}
{/* Left: Text Content */}
{getLabel("hero.badge", "Student & Self-Hoster")}

{getLabel("hero.line1", "Building")} {getLabel("hero.line2", "Stuff.")}

{t("description")}

{/* Right: The Photo */}
Dennis Konkol
dk0.dev
); }