Sign in

A sign-in screen in two raised cards: the form, with its help links and keyboard hints, beside a picture of the product.

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

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

Installed with this block
  • avatar
  • block-styles
  • breadcrumbs
  • button
  • checkbox
  • divider
  • filter-button
  • form-field
  • icon-button
  • select
  • sidebar
  • status-badge
  • tabs
  • tag
  • text-input
  • utils
blocks/wideset/sign-in/index.tsx
'use client';

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

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

/**
 * Sign in, Inset direction with no navigation: two raised cards on the grey page, the form beside
 * the product, as tall as each other. Under 1280px the product goes and the form stays, centred.
 */
export default function SignIn() {
  return (
    <main className="ws-block-utility bg-ws-static-background p-ws-12 flex min-h-dvh items-center justify-center">
      <div className="gap-ws-9 flex w-full max-w-[78.5rem] justify-center">
        <AuthCard
          other={{ href: ROUTES.signUp, label: 'Create account' }}
          className="w-full max-w-[38.75rem]"
        >
          <SignInForm />
        </AuthCard>
        <ProductPreview className="hidden w-full max-w-[38.75rem] xl:block" />
      </div>
    </main>
  );
}