AuthLayout
The full page for sign in and invite: one card, no shell.
$ npx shadcn@latest add https://mahrdesign.faizintifada.com/r/auth-layout.jsonFrame
Masuk ke MaHR
PT Mencari Cinta
When to use
- A full page with no AppShell: Masuk (/login), Undangan · Buat password, Undangan · Link tidak berlaku.
When not to use
- Any page of a signed-in person → AppShell.
- A question over a page → Dialog.
Do and don't
One card, one jobThe card holds the form only. The line under it says what to do without an account ("Belum punya akun? Minta undangan dari HR.").
A min-h-dvh frame in an iframeAn iframe that grows with its content copies a dvh height for ever: pass minHeight in px there (the gallery uses 900).
Installation
Add AuthLayout with the shadcn CLI (your project needs a components.json and the MaHR theme: https://mahrdesign.faizintifada.com/r/theme.json), or copy the files by hand.
API
import { AuthLayout, AuthHeading } from "@/components/mahr/auth-layout"| Prop | Type | Default | Description |
|---|---|---|---|
logo | ReactNode | – | The brand mark at the top of the card (48; 40 on a phone). Left out on the expired page. |
footer | ReactNode | – | One muted line under the card. |
align | "top" | "center" | "center" | "top" when something opens inside the card (the sign-in alert). |
cardAlign | "start" | "center" | "start" | "center" for a message card (Link tidak berlaku). |
minHeight | number | string | 100dvh | px in an iframe preview. |
AuthHeading title · line | ReactNode | – | The page h1 (text-page 28/34) + one muted 16/24 line. |