Not Found Breakout

A small brick game for a page-not-found screen, with bricks that spell 404.

Click, tap or press Space to play.

import { NotFoundBreakout } from '@brand-studio/ui';

export default function NotFoundBreakoutDemo() {
  return (
    <div style={{ width: '100%', maxWidth: 480 }}>
      <NotFoundBreakout />
    </div>
  );
}

Installation

pnpm add @brand-studio/ui

Usage

import { NotFoundBreakout } from '@brand-studio/ui';
<NotFound title="This page is not here" art={<NotFoundBreakout />} />

Space, a click or a tap launches the ball. The paddle follows the pointer or the left and right arrow keys. The bricks take the brand's ink and the paddle and ball its accent, and both change with the theme.

Accessibility

  • The game never starts by itself and pauses when the tab is hidden.
  • The canvas takes keyboard focus, and a status line below it says how many bricks are left and what to press.
  • Keep the way out of the page above the game, so nobody has to play to leave.

API Reference

PropTypeDefault
label?string'Brick game. Press Space to launch, and the left and right arrows to move.'
className?string''

Still, Deskhand and Hollis are fictional brands. The coffee photographs are original generated artwork. @brand-studio/ui is MIT licensed.