Not found

A missing page before or outside the app: what happened and the ways back.

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-not-found

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

Installed with this block
  • block-styles
  • button
  • utils
blocks/wideset/not-found/index.tsx
'use client';

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

import { Button } from '@/components/ui/wideset/button/Button';

import { Address } from './address';
import { BrandMark } from './brand-mark';
import { missingUrl, ROUTES } from './data';

/**
 * Not found (Inset direction, no navigation): a missing page outside the app, in a raised card on
 * the grey ground. One plain sentence on what happened, the address that was not found, and the
 * two ways back.
 */
export default function NotFound() {
  return (
    <main className="ws-block-utility bg-ws-static-background p-ws-12 flex min-h-dvh items-center justify-center">
      <div className="bg-ws-static-foreground rounded-ws-container-xl shadow-ws-low gap-ws-16 p-ws-12 sm:p-ws-18 flex w-full max-w-[32rem] flex-col items-start">
        <BrandMark label="Orbit" className="size-ws-16" />

        <div className="gap-ws-12 flex w-full flex-col">
          <div className="gap-ws-3 flex flex-col">
            <p className="typography-label-sm text-ws-static-subtle">Error 404</p>
            <h1 className="typography-title-md text-ws-static-strong">Page not found</h1>
            <p className="typography-body-md text-ws-static-base">
              There’s no page at this address: it was moved or deleted, or the link has a typo.
            </p>
          </div>
          <Address url={missingUrl} />
        </div>

        <div className="gap-ws-5 flex flex-wrap">
          <Button asChild size="sm">
            <a href={ROUTES.dashboard}>Go to dashboard</a>
          </Button>
          <Button asChild size="sm" variant="secondary" preset="border">
            <a href={ROUTES.support}>Contact support</a>
          </Button>
        </div>
      </div>
    </main>
  );
}