Skip to content
27 linesCodeBlameRaw
1import type { ReactNode } from "react";
2
3/**
4 * The column shared by the sign-in and sign-up pages, under the logo the
5 * standalone frame draws (components/standalone.tsx): a short heading, a
6 * line under it, the form, and what else there is to do.
7 */
8export function AuthCard({
9 title,
10 subtitle,
11 footer,
12 children,
13}: {
14 title: string;
15 subtitle: string;
16 footer: ReactNode;
17 children: ReactNode;
18}) {
19 return (
20 <main className="mx-auto flex w-full max-w-85 flex-col pt-8">
21 <h1 className="text-center text-xl font-semibold tracking-tight">{title}</h1>
22 <p className="mt-1 text-center text-sm text-muted">{subtitle}</p>
23 <div className="mt-7">{children}</div>
24 <p className="mt-6 text-center text-sm text-muted">{footer}</p>
25 </main>
26 );
27}