Skip to content

Auth Steps

Three-step sign-up with an index header “01 / 03 — Your account” and segmented hairline progress; underline fields per step, Back text link and ink Continue; final step shows the site address preview.

mono-clean/layout/auth-steps
Open ↗

Source

"use client";

import { useId, useState, type FormEvent } from "react";
import { cn } from "@/lib/utils";

export interface AuthStepsProps {
  brand?: string;
  brandHref?: string;
  onFinish?: (data: Record<string, string>) => void;
  className?: string;
}

function FrameMark({ className }: { className?: string }) {
  return (
    <svg aria-hidden viewBox="0 0 24 24" className={cn("size-6 shrink-0", className)}>
      <rect x="1" y="1" width="22" height="22" fill="none" stroke="currentColor" strokeWidth="2" />
      <path d="M7 1v22M1 7h22" stroke="currentColor" strokeWidth="2" />
      <rect x="15" y="15" width="4" height="4" fill="var(--da-accent)" />
    </svg>
  );
}

const STEPS = [
  {
    title: "Your account",
    fields: [
      { name: "email", label: "Email", type: "email", auto: "email" },
      { name: "password", label: "Password", type: "password", auto: "new-password" },
    ],
  },
  {
    title: "Your studio",
    fields: [
      { name: "studio", label: "Studio name", type: "text", auto: "organization" },
      { name: "city", label: "City", type: "text", auto: "address-level2" },
    ],
  },
  { title: "Your address", fields: [{ name: "slug", label: "frame.studio/", type: "text", auto: "off" }] },
] as const;

/** Three-step sign-up with an index header “01 / 03 — Your account” and segmented hairline progress; underline fields per step, Back text link and ink Continue; final step shows the site address preview. */
export function AuthSteps({ brand = "Frame", brandHref = "/", onFinish, className }: AuthStepsProps) {
  const id = useId();
  const [step, setStep] = useState(0);
  const [data, setData] = useState<Record<string, string>>({ slug: "nord" });
  const s = STEPS[step]!;
  const last = step === STEPS.length - 1;
  const submit = (e: FormEvent<HTMLFormElement>) => {
    e.preventDefault();
    if (last) onFinish?.(data);
    else setStep(step + 1);
  };
  return (
    <main className={cn("flex min-h-dvh flex-col bg-da-bg px-6 py-8 text-da-fg sm:px-12", className)}>
      <a href={brandHref} className="da-focus flex w-fit items-center gap-2.5 rounded-da-sm font-da-display text-lg font-semibold tracking-da-display">
        <FrameMark />
        {brand}
      </a>
      <form onSubmit={submit} className="mx-auto my-auto w-full max-w-md py-12" aria-labelledby={`${id}-t`}>
        <p className="font-da-mono text-[11px] tracking-da-label uppercase">
          <span aria-hidden>
            {String(step + 1).padStart(2, "0")} / {String(STEPS.length).padStart(2, "0")} —{" "}
          </span>
          <span className="sr-only">
            Step {step + 1} of {STEPS.length}:{" "}
          </span>
          <span className="text-da-muted-fg">{s.title}</span>
        </p>
        <div aria-hidden className="mt-3 grid grid-cols-3 gap-1">
          {STEPS.map((_, i) => (
            <span key={i} className={cn("h-0.5", i <= step ? "bg-da-fg" : "bg-da-border")} />
          ))}
        </div>
        <h1 id={`${id}-t`} className="mt-10 font-da-display text-4xl font-medium tracking-da-display">
          {step === 2 ? "Pick your address" : step === 1 ? "Tell us about the studio" : "Create your account"}
        </h1>
        <div key={step} className="mt-8 grid gap-7 transition-opacity duration-(--da-duration) starting:opacity-0">
          {s.fields.map((f) => (
            <div key={f.name} className="grid gap-1">
              <label htmlFor={`${id}-${f.name}`} className="font-da-mono text-[11px] tracking-da-label text-da-muted-fg uppercase">
                {f.label}
              </label>
              <input
                id={`${id}-${f.name}`}
                name={f.name}
                type={f.type}
                required
                autoComplete={f.auto}
                value={data[f.name] ?? ""}
                onChange={(e) => setData({ ...data, [f.name]: e.target.value })}
                className="h-11 border-b border-da-border-strong/40 bg-transparent text-lg outline-none focus:border-da-fg focus:shadow-[0_1px_0_0_var(--da-fg)]"
              />
            </div>
          ))}
          {last && (
            <p className="border border-da-border p-4 font-da-mono text-sm">
              <span className="text-da-muted-fg">https://</span>frame.studio/{data.slug || "…"}
            </p>
          )}
        </div>
        <div className="mt-10 flex items-center justify-between">
          {step > 0 ? (
            <button
              type="button"
              onClick={() => setStep(step - 1)}
              className="da-focus rounded-da-sm font-da-mono text-[11px] tracking-da-label uppercase hover:underline"
            >
              ← Back
            </button>
          ) : (
            <span />
          )}
          <button type="submit" className="da-focus h-11 rounded-da-sm bg-da-primary px-6 font-medium text-da-primary-fg hover:opacity-85">
            {last ? "Create site" : "Continue"}
          </button>
        </div>
      </form>
    </main>
  );
}

export default AuthSteps;

modules/mono-clean/layout/auth-steps/index.tsx

Props

PropTypeDefaultDescription
brandstring—Brand name.
brandHrefstring—Brand link target.
onFinish(data: Record<string, string>) => void—Callback.
classNamestring—Extra classes on the root.

Other auth screen variants in Mono Clean

Auth screen in other art directions

Auth Card

Centered login card on a dotted paper background: tilted wordmark sticker, ink title band, GitHub button, email + password with forgot link, error slot and a big pressable yellow submit.

BrutalistAuth screen

Auth Magic Link

Passwordless login split screen: blue product panel with staggered pipeline cards (desktop), huge uppercase headline, single email field and yellow send button, then a 'Check your inbox' state with open-mail and retry actions.

BrutalistAuth screen

Auth Screen

Split sign-in / sign-up page: form column with GitHub & Google buttons, email + password (show/hide), remember-me, error slot and pending state; yellow grid panel with a big customer quote on desktop.

BrutalistAuth screen

Auth Signup Steps

Three-step signup wizard: ruled step tabs (done in ink, current in yellow) fused to a card with account fields, team size and use-case tile choices, Back/Continue and a success state.

BrutalistAuth screen

Auth Floating

Sign-up screen: centered glass card (Google button, divider, email magic-link form with success state) surrounded on desktop by floating, bobbing glass preview cards and a gradient orb.

GlassAuth screen

Auth Onboarding

Three-step onboarding glass card: workspace name with URL preview, role radio chips, calendar connection buttons; gradient progress bar, back/continue and a finish screen.

GlassAuth screen

Auth Passkey

Passkey sign-in glass card: glowing gradient fingerprint orb, account email, ‘Sign in with passkey’ with waiting / success / error states and email-link or password fallbacks.

GlassAuth screen

Auth Screen

Centered 40px-blur glass panel over the mesh and two soft orbs: gradient logo, Google/Microsoft buttons, email + password (show/hide), forgot link, error slot, gradient pill submit. Sign-in and sign-up modes.

GlassAuth screen

Auth Screen

Centered passwordless login in three steps: provider choice (Google, email, SAML SSO) → email form → "check your email" confirmation. Faint indigo glow on top, legal footer.

MinimalAuth screen

Auth Split

Split sign-in screen: form on the left (email, password with reveal, remember me, error alert) and an always-dark brand panel with indigo glow, grid, customer quote and three stats on large screens.

MinimalAuth screen

Auth Sso

SSO-first sign-in card on a tinted page: key icon, Google / GitHub / Microsoft buttons, an ‘or use SAML SSO’ divider and work-email discovery with inline arrow submit, legal links below.

MinimalAuth screen

Auth Verify

Email verification screen: mail icon, six single-digit mono boxes (split 3 + 3) with auto-advance, paste, arrow/backspace navigation, auto-submit, error and success states and a resend countdown.

MinimalAuth screen

Auth Screen

Centered sign-in card on a surface-2 page: logo, Google + SSO buttons, “or” divider, email/password (show/hide toggle, forgot link), remember me, blue submit, sign-up link and legal footer.

Neo CorporateAuth screen

Auth Split

Split sign-up page: form on the left (name, work email, company, password with live strength checklist), blue gradient panel on the right with benefits, a customer quote and compliance badges (panel hidden below lg).

Neo CorporateAuth screen

Auth Sso

Enterprise SSO sign-in: email-first step that detects the domain; SSO domains show the org + identity provider and a “Continue with Okta” button, others fall back to a password field.

Neo CorporateAuth screen

Auth Verify

Two-factor verification screen: shield icon, 6 separate digit boxes (auto-advance, backspace, paste support), error/success states, resend with 30s countdown and “use a recovery code” link.

Neo CorporateAuth screen

Auth Magic

Passwordless sign-in: one rounded email field and “Send me a link”, then a gentle sent state with an open-envelope in a sage circle, the address, resend and change-email links.

Organic SoftAuth screen

Auth Onboarding

Post-signup onboarding: two gentle steps (industry as pill radio cards, goals as check cards) with a leaf progress bar, back/continue pills and a warm “all set” finish.

Organic SoftAuth screen

Auth Screen

Centered sign-in on cream with two soft blobs behind a rounded card: serif welcome, filled inputs, password reveal, sage pill submit, Google alternative and a sign-up link.

Organic SoftAuth screen

Auth Split

Split sign-up: form on cream (name, email, company, team-size pills) and an arch-topped landscape illustration panel with sun and hills plus a quote card (hidden below lg).

Organic SoftAuth screen

Auth Magic

“Check your inbox” screen: flat envelope with a gently bobbing letter, email in bold, Gmail/Outlook shortcut pills, resend with countdown and change-email link.

Soft FlatAuth screen

Auth Screen

Centered friendly sign-in: big rounded white card among pastel shapes, shape logo, Google button, rounded divider, soft email/password fields with reveal, error alert and periwinkle pill.

Soft FlatAuth screen

Auth Split

Sign-up split: lavender panel with a flat illustration of tilted task cards and perk list on large screens, roomy name + email form with a success message on the other side.

Soft FlatAuth screen

Auth Welcome

First-run profile setup: big live avatar preview, grid of pastel emoji avatars (native radios), display-name field with preview chip and a “Let’s go” button enabled once named.

Soft FlatAuth screen