Ö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:
+15
-2
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user