Split Error Page
FreeA two-panel 404 with an error number and a clear route back to the homepage.
Hide codecomponents/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>
);
}