Age: a Didit provider behind the vendor-neutral age interface. A person verifies once (ID document, passive liveness, face match) and all their linked IMVU accounts count as adult. Webhooks are checked against Didit's signatures; only "over 18" is kept. A later answer replaces an earlier one (an approval taken back is revoked). Checks are limited: one unfinished check per person, 3 in 30 days, none once verified, and a monthly cap (DIDIT_MONTHLY_LIMIT, default 30: Didit's free plan is $10 of credit a month and a check costs $0.30). The Account page gets an Age Verification card. Registration: open or closed, an admin's setting in the console (default from REGISTRATION). Closed: new accounts can only sign in until a moderator approves them (or declines, deleting the account); the website shows them a waiting page and the API treats them as signed out. Co-Authored-By: Claude Opus 5.5 <[email protected]>
44 lines
1.6 KiB
TypeScript
44 lines
1.6 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import { Header } from "@/components/header";
|
|
import { NarrowCard } from "@/components/narrow-card";
|
|
import { StagingBanner } from "@/components/staging-banner";
|
|
import { getMe } from "@/lib/api";
|
|
import { cn } from "@/lib/utils";
|
|
import "./globals.css";
|
|
|
|
const sans = Geist({ subsets: ["latin"], variable: "--font-sans" });
|
|
const mono = Geist_Mono({ subsets: ["latin"], variable: "--font-mono" });
|
|
|
|
export const metadata: Metadata = {
|
|
title: { template: "%s · T5DE Hub", default: "T5DE Hub" },
|
|
description: "One account for all your IMVU avatars.",
|
|
};
|
|
|
|
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
|
const me = await getMe();
|
|
return (
|
|
<html lang="en" className={cn("font-sans antialiased", sans.variable, mono.variable)}>
|
|
<body className="flex min-h-dvh flex-col">
|
|
<StagingBanner />
|
|
<Header />
|
|
<main className="mx-auto w-full max-w-5xl flex-1 px-4 py-10 sm:px-6 sm:py-14">
|
|
{me && !me.approved ? (
|
|
<NarrowCard
|
|
title="Waiting for Approval"
|
|
description={`Thanks for signing up, ${me.username}. A moderator will approve your account soon; until then you can't use the hub.`}
|
|
/>
|
|
) : (
|
|
children
|
|
)}
|
|
</main>
|
|
<footer className="border-t">
|
|
<div className="mx-auto max-w-5xl px-4 py-6 text-sm text-muted-foreground sm:px-6">
|
|
T5DE is unofficial: not made by or affiliated with IMVU.
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|