Sign in card

The same sign-in form alone in one centred card, for a product with nothing to show beside it.

Open full screen

Inset · No navigation. <AppShell direction="inset">, the default: the navigation on the grey app frame, the page a raised white card inside it, scrolling within.

npx wideset add block-sign-in-card

Import the default export from @/blocks/wideset/sign-in-card. The files below are relative to your project's source directory.

Installed with this block
  • block-styles
  • button
  • checkbox
  • form-field
  • text-input
  • utils
blocks/wideset/sign-in-card/index.tsx
'use client';

import '@/styles/wideset-blocks.css';

import { AuthCard } from './auth-card';
import { ROUTES } from './data';
import { SignInForm } from './sign-in-form';

/** Sign in, Inset direction with no navigation: one raised card centred on the grey page. */
export default function SignInCard() {
  return (
    <main className="ws-block-utility bg-ws-static-background p-ws-12 flex min-h-dvh items-center justify-center">
      <AuthCard
        other={{ href: ROUTES.signUp, label: 'Create account' }}
        className="w-full max-w-[38.75rem]"
      >
        <SignInForm />
      </AuthCard>
    </main>
  );
}