Skip to content

Redesign the 404 and 500 pages - #368

Merged
JulianKunkel merged 1 commit into
IO500:mainfrom
jeanbez:error-pages-redesign
Nov 24, 2026
Merged

JulianKunkel merged 1 commit into
IO500:mainfrom
jeanbez:error-pages-redesign

Conversation

@jeanbez

@jeanbez jeanbez commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The redesign in ea481b6 gave the error pages a three-line CSS patch and left the 2020 clipart in place. This brings them in line with the rest of the site.

What changed

  • Typography and spacing from the redesign: #16181d headings, #6b7079 body at 15px/1.6, centred, with the paragraph capped at 440px.
  • Illustration: mechanic.svg, from the same stock family as the banner art (1080x1080, black line work with a single accent). Its teal #00b3b3 and coral #ff6b6b accents were remapped to the site red #d63b1e, so it matches lists.svg, graphs.svg and contact.svg. Sized at 360px, inside the 358-385px band the banner illustrations use, with background-size: contain so it shrinks on narrow phones.
  • Actions: a primary .button-highlight back to the lists plus a secondary .button — Browse all lists on the 404, Contact us on the 500, so a server error gives people somewhere to report it. Previously a single .button link.
  • Copy: the 404 line is now "This page does not exist or is not available yet." (48 chars, down from 67), which fits on one line instead of leaving one word stranded.
  • Removed: the #error-404 and #error-500 background rules that pulled in the old clipart, and .error-container, which no template referenced. 404.svg and 500.svg stay in the tree but are now unused — happy to delete them in a follow-up.

The Configure::read('debug') dev-error blocks at the top of both templates are untouched.

Verification

  • The 404 renders through the app with the expected markup, and both link targets return 200 (/, /releases, /contact).
  • mechanic.svg serves as image/svg+xml with the final palette #d63b1e + #fff.
  • php -l clean on both templates; composer cs-check passes, though it only scans src/ and tests/.
  • I could not trigger a genuine 500 locally to render that template — it is verified by php -l and by sharing its structure with the 404, which does render.

The illustration was checked before import: 36 <path> elements and nothing else, no scripts, event handlers or external references.

The redesign in ea481b6 left the error pages with a three-line patch and
the original clipart, which never matched the logo colours. Bring them in
line with the rest of the site: house typography and spacing, an
illustration from the same family as the banner art, and a real pair of
actions instead of a single link.

Use mechanic.svg on both pages, recoloured from its teal and coral
accents to the site red so it matches lists.svg and its siblings, and
size it at 360px, inside the band the banner illustrations use.

Remove the #error-404 and #error-500 background rules, which pulled in
the old clipart, and the .error-container rule, which no template used.
The 404.svg and 500.svg files stay in the tree but are now unreferenced.

Shorten the 404 message so it fits on one line.
@jeanbez
jeanbez requested a review from a team as a code owner November 23, 2026 18:54
@JulianKunkel
JulianKunkel merged commit 9e26e67 into IO500:main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants