Öffentliche Startseite: Produktseite unter /

Aufbau: Hero mit Plantafel-Vorschau, Leitgedanken, 12 Funktionen, vertiefte Abschnitte zu
Planung, Baustelle und Lotse, Ablauf, Gewerke, Sicherheit, Testphase, häufige Fragen und
Fußzeile. Texte auf Deutsch und Englisch, Vorschauen als Markup statt Screenshots.
Angemeldete Nutzer leitet die Route weiterhin auf Dashboard bzw. mobile Ansicht.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 11:40:19 +02:00
co-authored by Claude Opus 5
parent a4a61dc31f
commit 31343d329a
6 changed files with 1021 additions and 3 deletions
+15 -2
View File
@@ -1,8 +1,21 @@
import type { Metadata } from "next";
import { redirect } from "next/navigation";
import { getTranslations } from "next-intl/server";
import { MarketingHome } from "@/components/marketing/home";
import { auth } from "@/server/auth";
import { landingPath } from "@/server/app-access";
export async function generateMetadata(): Promise<Metadata> {
const t = await getTranslations("marketing.meta");
return { title: { absolute: t("title") }, description: t("description") };
}
/**
* Öffentliche Produktseite. Angemeldete Nutzer sehen sie nicht: Feldrollen → /m,
* Backoffice → /dashboard (ARCHITEKTUR §5). `/` ist deshalb in PUBLIC_PATHS (src/proxy.ts).
*/
export default async function Home() {
// Feldrollen → /m, Backoffice → /dashboard (ARCHITEKTUR §5)
redirect(landingPath(await auth()));
const session = await auth();
if (session?.user) redirect(landingPath(session));
return <MarketingHome contactEmail={process.env.TRIAL_CONTACT_EMAIL?.trim() || undefined} />;
}