Fullscreen 404 With Background

About this block

Fullscreen 404 With BackgroundPRO

Screen-height 404 with a full-bleed background photo under a dark overlay, centered white messaging, and a solid plus outline button pair sized for marketing sites.

Error10: Fullscreen 404 With Background

A screen-height 404 for marketing sites: a full-bleed photograph sits under a dark overlay with the message centred in white on top, closing with a solid button and a bordered ghost button.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/error10?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/error10?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/error10.tsx, plus the button shadcn/ui primitive it uses for the action pair.

Quick start

The installed file exports error10Demo alongside the block: the exact props behind the preview above. Spread it to get a full-screen error page in one line.

tsx
import { Error10, error10Demo } from "@/components/beste/block/error10";

export default function NotFound() {
  return <Error10 {...error10Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { House } from "lucide-react";
import { Error10 } from "@/components/beste/block/error10";

export default function NotFound() {
  return (
    <Error10
      code="Error 404"
      heading="You have wandered off the map"
      description="This address does not lead anywhere."
      buttons={[
        { label: "Back to home", href: "/", icon: House },
        { label: "Browse the site", href: "/blog", variant: "outline" },
      ]}
      image={{
        src: "https://images.unsplash.com/photo-1539412060677-d70658ece18d?w=1920&h=1280&fit=crop",
        alt: "Empty desk with a laptop in dim light",
      }}
    />
  );
}

Props

PropTypeDefaultDescription
codestringSmall uppercase status label above the heading
headingstringMain page heading, rendered as an h1
descriptionstringExplanatory paragraph under the heading
buttonsActionButton[][]Centred action pair below the description
image{ src: string; alt: string }Background photograph behind the overlay
classNamestringExtra classes for the outer <section>
ts
type ActionButton = {
  label: string;
  href: string;
  variant?: "default" | "outline";
  icon?: LucideIcon;
};

Behavior notes

  • The section is min-h-screen and centres its content, so the block fills the viewport rather than sitting in the normal document flow. It is registered as a fullscreen block, which is why the preview above renders in its own frame.
  • Because the surface is a fixed dark overlay rather than a themed panel, the text and buttons use hardcoded white and black values instead of theme tokens, so the block reads the same in light and dark mode.
  • variant: "outline" swaps the button for a transparent pill with a white border and a translucent hover fill; anything else renders the solid white button with black text.
  • The background image and its overlay only render when image is set. Without it the block falls back to the page background, and the white text will need a dark surface behind it.

More Error blocks

View all Error
PRO

error3

Split 404 With Image

Two-column 404 page with the error code, heading, explanation, buttons, and a small note on one side, and a full-bleed image that scales on hover on the other. The image side can be flipped with a prop.

FREE

error1

Centered 404 Message

Minimal centered 404 page with a large error code, a heading, a short explanation, two call-to-action buttons, and a divided row of popular page links underneath.

PRO

error39

Calm 404

A full-height not-found page: a faint oversized serif code, a serif heading that settles in word by word, a gentle explanation, a sliding-marker pill home and a row of small-caps links to the useful places.

PRO

error20

Editorial 404 With Portrait Image

Two-column 404 in a quiet monochrome language: a parenthetical eyebrow, a two-line display headline, a pill call to action and an oversized report-the-link email on the left, a tall captioned photograph on the right.

FREE

error6

Inline 404 Line

The smallest possible 404: the status code and the message sit on one line separated by a vertical rule, stacking on mobile, with a single outline button underneath.

PRO

error30

Search Led 404

Monochrome 404 that hands the visitor a search field: a display headline with a muted emphasis clause, a rounded search bar with a circular submit seal wired to a callback, and a ruled list of the most travelled routes.