Skip to content
Brok UI

Loading…

No results

Error Pages

Open source

Full-screen error pages — 404 and 500 status screens in masked-numeral, oversized, and helpful-links layouts.

1 of 6

Preview

resources/views/pages/error-page-404-masked.blade.php Blade
@props([])

{{-- Error 404 page — a masked not-found hero filling the viewport above a pinned minimal footer. --}}
<div class="flex min-h-screen flex-col bg-background text-foreground">
    <main class="flex flex-1 flex-col">
        <x-blocks.not-found-masked
            class="flex-1"
            code="404"
            heading="We can't find that page"
            subheading="The link may be broken or the page may have moved. Head back home or search for what you need."
            homeCta="Back to homepage"
            homeHref="/"
            searchCta="Search docs"
            searchHref="/docs"
        />
    </main>

    <x-blocks.footer-minimal
        brand="Acme"
        brandHref="/"
    />
</div>

Installation

terminal
php artisan ui:add pages/error-page-404-masked

Installs these dependencies automatically:

Registry contract

Install confidence

php artisan ui:add pages/error-page-404-masked writes only the generated targets below. The CLI validates each file hash before writing and prompts before replacing local changes unless --force is used.

Version
1.0.3
License
open
Stability
stable
Contract
v1
Foundation
≥ 1.0.0
Type Generated target
blade resources/views/pages/error-page-404-masked.blade.php

Registry dependencies

blocks/not-found-masked blocks/footer-minimal

Package dependencies

composer: jml/brok:^0.2

Use with AI

A brief for your coding agent: what the page is, the install command, how to render it, its props and the rules. Copy it, or open a prompt about this page in an assistant.

error-page-404-masked.md
# Brok UI page: Error 404 Page (`error-page-404-masked`)

A full-screen 404 page composing a masked not-found hero that fills the viewport above a pinned minimal footer.

Brok UI is a Laravel Blade registry. `ui:add` copies this page into the app as plain Blade the app owns; it composes installed `<brok:*>` primitives and semantic design tokens.

## Install

```bash
php artisan ui:add pages/error-page-404-masked
```

## Render it

```blade
<x-pages.error-page-404-masked />
```

## Use when

- A full-screen 404 not-found page: a masked not-found hero that fills the viewport above a pinned minimal footer.
- It composes blocks/not-found-masked and blocks/footer-minimal.

## Avoid when

- Wanting an oversized masked numeral with default copy; use error-page-404-oversized instead. Wanting a navbar and helpful-links layout; use error-page-404-links instead.

## Rules

- Render the installed page with `<x-pages.error-page-404-masked />` and pass data through its props; edit the copied file only for structural changes.
- Keep the semantic design tokens (`bg-background`, `text-muted-foreground`); never swap in raw colour utilities.
- Keep the `data-slot` attributes and the logical (start/end) spacing so the markup still mirrors under `dir="rtl"`.

## Links

- Docs: https://brokui.dev/pages/error-page-404-masked
- Registry JSON (files, props, contract): https://brokui.dev/r/open/pages/error-page-404-masked.json

Working in Claude Code, Cursor or Codex? Give the agent the whole registry through the MCP server or the Brok UI skill.

Guidance

Use when

  • A full-screen 404 not-found page: a masked not-found hero that fills the viewport above a pinned minimal footer.
  • It composes blocks/not-found-masked and blocks/footer-minimal.

Avoid when

  • Wanting an oversized masked numeral with default copy; use error-page-404-oversized instead. Wanting a navbar and helpful-links layout; use error-page-404-links instead.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.

Usage

Render the page as a component, or wire it to a route. Pass data where useful:

resources/views/welcome.blade.php Blade
<x-pages.error-page-404-masked />

Built from blocks & primitives

This page composes installed <brok:*> primitives and semantic design tokens only — it does not reimplement any primitive. Re-theme it (light, dark, admin, customer) by editing CSS variables; flip the preview to RTL to confirm it mirrors.

Source

The exact, editable file ui:add writes into your app. The preview above renders this same source — there are no preview-only pages.

resources/views/pages/error-page-404-masked.blade.php Blade
@props([])

{{-- Error 404 page — a masked not-found hero filling the viewport above a pinned minimal footer. --}}
<div class="flex min-h-screen flex-col bg-background text-foreground">
    <main class="flex flex-1 flex-col">
        <x-blocks.not-found-masked
            class="flex-1"
            code="404"
            heading="We can't find that page"
            subheading="The link may be broken or the page may have moved. Head back home or search for what you need."
            homeCta="Back to homepage"
            homeHref="/"
            searchCta="Search docs"
            searchHref="/docs"
        />
    </main>

    <x-blocks.footer-minimal
        brand="Acme"
        brandHref="/"
    />
</div>

Ownership & lifecycle

Owner, release state, review evidence and adoption for this item.
Owner
Platform UI (@JoshJML)
Current version
1.0.3
Status
Stable
License
open
Deprecation
Not deprecated
Contract
v1
Foundation
≥ 1.0.0