not-found-1

PreviousNext

Minimal 404 error page with bold typography, subtle borders, and clear navigation actions.

Docs
efferdblock

Preview

Loading preview…
registry/not-found/1/not-found.tsx
import { Button } from "@/components/ui/button";
import {
	Empty,
	EmptyContent,
	EmptyDescription,
	EmptyHeader,
	EmptyTitle,
} from "@/components/ui/empty";
import { Compass, Home } from "lucide-react";

export function NotFoundPage() {
	return (
		<div className="flex w-full items-center justify-center">
			<div className="flex h-screen items-center border-x">
				<div>
					<div className="absolute inset-x-0 h-px bg-border" />
					<Empty>
						<EmptyHeader>
							<EmptyTitle className="font-black font-mono text-8xl">
								404
							</EmptyTitle>
							<EmptyDescription className="text-nowrap">
								The page you're looking for might have been <br />
								moved or doesn't exist.
							</EmptyDescription>
						</EmptyHeader>
						<EmptyContent>
							<div className="flex gap-2">
								<Button asChild>
									<a href="#">
										<Home /> Go Home
									</a>
								</Button>

								<Button asChild variant="outline">
									<a href="#">
										<Compass /> Explore
									</a>
								</Button>
							</div>
						</EmptyContent>
					</Empty>
					<div className="absolute inset-x-0 h-px bg-border" />
				</div>
			</div>
		</div>
	);
}

Installation

npx shadcn@latest add @efferd/not-found-1

Usage

import { NotFound1 } from "@/components/not-found-1"
<NotFound1 />