import { redirect } from "next/navigation"; import { headers } from "next/headers"; import Link from "next/link"; import { auth } from "@/lib/auth/server"; import { getMessages } from "@/lib/i18n/server"; import { buttonVariants } from "@/components/ui/button"; import { cn } from "@/lib/utils"; import { Sparkles, Calendar, Package, MessageCircle, Users, ChefHat } from "lucide-react"; const HIGHLIGHTS = [ { icon: Sparkles, key: "ai" }, { icon: MessageCircle, key: "assistant" }, { icon: Calendar, key: "mealPlan" }, { icon: Package, key: "pantry" }, { icon: Users, key: "social" }, { icon: ChefHat, key: "batchCook" }, ] as const; export default async function MarketingHomePage() { const session = await auth.api.getSession({ headers: await headers() }); if (session) redirect("/recipes"); const m = getMessages(undefined); const t = m.marketing.home; return (
{t.heroSubtitle}
{t.highlights[key].description}
{t.bottomCtaSubtitle}
{t.ctaPrimary}