| 1 | import 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 | */ |
| 8 | export function AuthCard({ title, subtitle, footer, children }: { title: string; subtitle: string; footer: ReactNode; children: ReactNode }) { |
| 9 | return ( |
| 10 | <main className="mx-auto flex w-full max-w-85 flex-col pt-8"> |
| 11 | <h1 className="text-center text-xl font-semibold tracking-tight">{title}</h1> |
| 12 | <p className="mt-1 text-center text-sm text-muted">{subtitle}</p> |
| 13 | <div className="mt-7">{children}</div> |
| 14 | <p className="mt-6 text-center text-sm text-muted">{footer}</p> |
| 15 | </main> |
| 16 | ); |
| 17 | } |