Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

404 pages

4 examples. Resize any preview to see it at phone and tablet widths.

Split Error Page

Free

A two-panel 404 with an error number and a clear route back to the homepage.

Hide code
components/blocks/not-found-index.tsx
import { ArrowLeft } from "lucide-react";

export default function NotFoundIndex({ homeHref = "/" }: { homeHref?: string }) {
  return (
    <section className="mx-auto w-full max-w-3xl px-5 py-14 sm:py-20">
      <div className="grid overflow-hidden rounded-xl border border-border bg-card sm:grid-cols-[1fr_1.25fr]">
        <div aria-hidden className="flex min-h-40 items-center justify-center bg-[#e9ba80] px-6 py-8 text-[#3b2b20] sm:min-h-72">
          <span className="font-serif text-8xl italic leading-none tracking-[-0.08em] sm:text-9xl">404</span>
        </div>
        <div className="flex flex-col items-start justify-center p-6 sm:p-9">
          <p className="font-mono text-xs text-muted-foreground">Error 404</p>
          <h1 className="mt-3 text-3xl font-medium tracking-tight">Page not found.</h1>
          <p className="mt-3 max-w-sm text-sm leading-relaxed text-muted-foreground">This address may have changed. You can return to the homepage to find your way.</p>
          <a href={homeHref} target="_top" className="mt-6 inline-flex min-h-10 items-center gap-2 rounded-md bg-foreground px-4 text-sm font-medium text-background focus-visible:outline-ring">
            <ArrowLeft aria-hidden className="size-4" /> Return home
          </a>
        </div>
      </div>
    </section>
  );
}

Server Error

Pro

A 500 page that says the work is safe, retries with a loading state, reports when the retry fails, links to the status page and offers a reference to copy.

The source for this block is part of Truffle Pro.

Maintenance

Pro

A maintenance page with the time left, the steps in progress, and a field to be emailed when the service is back.

The source for this block is part of Truffle Pro.