Sign-in steps (password, sign-up, email code, two-step sign-in and its setup with recovery codes, privacy notice, news question), forgot and reset password, the account page, admin (people, deletions, church profile, linked products, settings, notice, licence, audit) and setup. Strict CSP with a nonce per page; church colours from the profile. @crosscode/ui gets its first components (shell, card, fields, buttons). Plan: roles stay in each product (asked 2026-11-18). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
792 B
TypeScript
20 lines
792 B
TypeScript
import { Card, Heading, Shell } from "@crosscode/ui";
|
|
import { loadBranding } from "@/lib/branding";
|
|
|
|
export const metadata = { title: "Privacy notice" };
|
|
|
|
const api = (process.env.ACCOUNTS_API_URL || "http://127.0.0.1:5200").replace(/\/+$/, "");
|
|
|
|
export default async function PrivacyPage() {
|
|
const branding = await loadBranding();
|
|
const n = await fetch(`${api}/api/v2/notice`, { cache: "no-store" }).then((r) => r.json()).catch(() => null) as { title: string; body: string } | null;
|
|
return (
|
|
<Shell branding={branding}>
|
|
<Card>
|
|
<Heading>{n?.title ?? "Privacy notice"}</Heading>
|
|
<div className="whitespace-pre-line text-sm leading-6 text-gray-700">{n?.body ?? "The privacy notice couldn't be loaded. Please try again."}</div>
|
|
</Card>
|
|
</Shell>
|
|
);
|
|
}
|