8-bit 404 Dwarf
8bitcn/not-found2FreeBlock
Retro 404 page with pixel dwarf character.
Install it
npx shadcn@latest add https://www.8bitcn.com/r/not-found2.jsonSource
1import Link from "next/link";2import Image from "next/image";34import { cn } from "@/lib/utils";56import { Button } from "@/components/ui/8bit/button";78import "@/components/ui/8bit/styles/retro.css";910interface NotFound2Props {11 className?: string;12 cta?: string;13 description?: string;14 href?: string;15 imageSrc?: string;16 title?: string;17}1819export default function NotFound2({20 title = "The Dwarf says NO!",21 description = "This tunnel has collapsed. The path you seek no longer exists.",22 cta = "Retreat to Safety",23 href = "/",24 imageSrc = "/images/8bit-dwarf.png",25 className,26}: NotFound2Props) {27 return (28 <div29 className={cn(30 "retro grid w-full place-content-center gap-5 bg-background px-4 py-16 text-center md:py-24",31 className,32 )}33 >34 <div className="retro font-bold text-6xl tracking-tight sm:text-8xl">35 40436 </div>3738 {imageSrc && (39 <div className="flex justify-center -mt-10">40 <Image41 alt="404"42 className="pixelated"43 height={200}44 src={imageSrc}45 width={200}46 />47 </div>48 )}4950 <h1 className="retro font-bold text-2xl tracking-tight sm:text-4xl">51 {title}52 </h1>5354 <p className="retro text-muted-foreground text-[9px]">{description}</p>5556 <div className="flex justify-center">57 <Button asChild>58 <Link href={href}>{cta}</Link>59 </Button>60 </div>61 </div>62 );63}
What it pulls in
Other registry items
Files it writes
More from 8bitcn
All 121 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| 8-bit Advanced 1advanced1 | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Advanced 2advanced2 | 8bitcn | Blocks | Free | no deps · 5 files | |
| 8-bit Advanced 3advanced3 | 8bitcn | Blocks | Free | no deps · 6 files | |
| 8-bit Audio Settingsaudio-settings | 8bitcn | Blocks | Free | 2 deps · 7 files | |
| 8-bit Chapter Introchapter-intro | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Character Sheetcharacter-sheet | 8bitcn | Blocks | Free | no deps · 9 files | |
| 8-bit Chartchart | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Chart Area Stepchart-area-step | 8bitcn | Blocks | Free | no deps · 3 files |
