404 With Featured Work
A studio-style 404 for a project URL that no longer resolves: a square eyebrow and status code over a hairline rule, an accent headline and a home button, then two large featured project cards with an image, a category label, and a hover-revealed arrow chip.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/404-with-featured-work.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/error/error24.tsx instead.
Usage
The file also exports error24Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Error24, error24Demo } from "@/components/blocks/error/error24"; export default function Page() { return <Error24 {...error24Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | none | Small square-marker label above the status code, e.g. "Error". |
| statusCode | string | none | Status code shown opposite the eyebrow, e.g. "404". |
| heading | ReactNode | none | Main headline, can include an inline accent span. |
| description | string | none | Supporting copy under the headline. |
| homeLabel | string | none | Label for the primary home/back button. |
| homeHref | string | none | Href for the primary home/back button. |
| projects | FeaturedProject[] | none | Featured project cards shown below the headline. |
| className | string | none | Extra classes for the outer section element. |
Types
interface FeaturedProject { title: string; category: string; href: string; image: MediaSlotImage; // { src: string; alt: string } }
Behavior notes
- Fully static server component: there is no client state anywhere in this block.
- The hover arrow chip and image zoom on each project card are pure CSS (Tailwind's group/group-hover), not JavaScript, so the block stays a server component.
- Each project card is a real Next.js Link wrapping the whole card, but the two demo hrefs default to "#".
- Demo project images are free-to-use Unsplash photos already used elsewhere in this repo's block catalog, credited in a source comment above the demo export.
More Error Blocks
View all →centered-404-message
Centered 404 Message
Minimal centered 404 with two CTAs and a divided row of popular page links.
404-with-site-search
404 With Site Search
404 screen with a working search box and a bordered list of suggested pages.
split-404-with-image
Split 404 With Image
Two-column 404 with the message on one side and a full-bleed photo that scales on hover on the other.
404-with-destination-cards
404 With Destination Cards
404 screen with a grid of icon destination cards plus fallback CTA buttons.
404-support-panel
404 Support Panel
Card-style 404 echoing the requested URL, with a real back button and a support/status link row.
inline-404-line
Inline 404 Line
The smallest possible 404: code and message on one divided line with one button underneath.