Build a Playful Animated 404 Error Page with SVG Art and Site Search

A complete single-file 404 page with an original animated hot-air balloon SVG, a live-filtering search box and helpful recovery links that respect reduced motion.

The prompt

Prompt
You are a senior product designer who also writes clean front-end code. Build a 404 page for Fernway Supply Co., a small garden-tools shop, themed around a lost hot-air balloon that has drifted off the map. The page pairs an original inline SVG illustration with practical ways to get back on track. Rules: 1) Illustration: an SVG scene with sky, drifting clouds, rolling hills, a signpost reading 404 and a striped balloon with a worried face that gently bobs. Clicking, tapping or pressing Enter or Space on the balloon sends a gust animation and swaps a funny caption. 2) Copy: eyebrow 'Error 404', headline 'This page drifted off the map.', and a line showing the missing path /garden/wintr-bulbs. 3) A search-style input with no form element that filters a built-in list of 12 site pages as you type, shows a live result count, opens the first match on Enter, and gets focus when the user presses the slash key. 4) Four popular-destination cards plus header nav. Clicks show a friendly status message instead of navigating. 5) Palette: cream background, navy ink, coral accent, sage green. Use a system font stack and a clear type scale, two columns above 860px and stacked below. 6) Turn off all animation under prefers-reduced-motion. Keep visible focus rings and AA contrast, and use no external files, fonts or storage. Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Fernway Supply Co., a lost-balloon 404 page.

A striped hot-air balloon with a worried face bobs over green hills while clouds drift past a 404 signpost. Click, tap or press Enter on the balloon to send a gust of wind and get a new caption. Type into the search box, for example bulbs, returns or workshop, to filter real-looking site pages. Press / to jump to search and Enter to open the first match. Turn on reduced motion and the scene holds still.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Naming the exact copy, palette and breakpoint stops the model from guessing, so the page looks finished on the first try.
  • Asking for search without a form element keeps it working in sandboxes and previews where form submission is blocked.
  • A reduced-motion rule plus keyboard access to the balloon makes the playful part accessible rather than decorative noise.

Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as 404.html and open it in any browser, or view it in the chat's preview or canvas panel.

Common edits

  • Swap the brand, the missing path and the 12 page names for your own site's routes, then point the cards at real URLs.
  • Change the theme: replace the balloon with a lost paper boat or kite, and recolor the coral and sage variables to match your brand.

Prompt details

By
Prompts-GPT editors
Published
How prompts are written and checked

Keep exploring

More in Design