AuthLayout

The full page for sign in and invite: one card, no shell.

$ npx shadcn@latest add https://mahrdesign.faizintifada.com/r/auth-layout.json

Frame

Page background (--page-gradient, never on the card), card 440, padding 40, gap 24, logo 48 at the top, h1 28/34 + one muted line (AuthHeading, 16 under the logo), one muted 14/20 line under the card. align="top" (sign in): the card is anchored to the top (clamp(64px, 13.5dvh, 122px)) so an alert inside grows it downward and nothing above moves; align="center": card + line centred. Phone (< 640): top-anchored, 56 top / 16 sides / 32 + safe area bottom, card full width, padding 24, logo 40; text sizes do not change.

Masuk ke MaHR

PT Mencari Cinta

Belum punya akun? Minta undangan dari HR.

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

DoOne 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.").
Don'tA 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.

terminal
bunx --bun shadcn@latest add https://mahrdesign.faizintifada.com/r/auth-layout.json

API

import { AuthLayout, AuthHeading } from "@/components/mahr/auth-layout"
PropTypeDefaultDescription
logoReactNode–The brand mark at the top of the card (48; 40 on a phone). Left out on the expired page.
footerReactNode–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).
minHeightnumber | string100dvhpx in an iframe preview.
AuthHeading title · lineReactNode–The page h1 (text-page 28/34) + one muted 16/24 line.