404 page
The page people land on when a link is broken. A big number, one friendly sentence, a search box and a few places to go next, so nobody is stuck. The same layout covers a server error or "down for upkeep".
Whole page
The parts
Put .status-page on <body>: a header, the middle (filling the screen, content centered) and a footer. Inside the middle, a .status-box:
<div class="status-box mx-auto py-6">
<p class="status-code" aria-hidden="true">404</p>
<h1 class="status-title">This page wandered off</h1>
<p class="status-text">The link may be old, or the page has moved.</p>
<div class="status-actions">
<a class="btn btn-brand" href="#">Go home</a>
<a class="btn" href="#">Contact us</a>
</div>
</div>Server error
An icon tile (.status-art) instead of the number; --status-accent changes its color (and the number's shadow).
Error 500
Something broke on our side
It's not you. We've been told and are on it. Try again in a minute.
<div class="status-box mx-auto py-6" style="--status-accent: var(--momo-pink-soft)">
<span class="status-art" aria-hidden="true"><i class="mi mi-plug-connected-x"></i></span>
<p class="status-eyebrow">Error 500</p>
<h1 class="status-title">Something broke on our side</h1>
<p class="status-text">It's not you. We've been told and are on it. Try again in a minute.</p>
<div class="status-actions">
<button class="btn btn-brand" type="button" onclick="Momo.toast('Trying again…')"><i class="mi mi-refresh-cw" aria-hidden="true"></i> Try again</button>
<a class="btn" href="#">Status page</a>
</div>
</div>Down for upkeep, with a picture
.status-split puts the text beside a picture (.status-media) when there's room, and stacks them on a phone.
Back soon
We're tidying up
The site is down for planned upkeep until 3:00. Your data is safe.
<div class="status-split mx-auto">
<div class="status-split-inner">
<div class="status-box">
<p class="status-eyebrow">Back soon</p>
<h1 class="status-title">We're tidying up</h1>
<p class="status-text">The site is down for planned upkeep until 3:00. Your data is safe.</p>
<div class="status-actions"><a class="btn" href="#"><i class="mi mi-bell" aria-hidden="true"></i> Tell me when it's back</a></div>
</div>
<div class="status-media"><img src="../examples/img/sample-7.svg" alt="" width="1200" height="800"></div>
</div>
</div>Classes
| Class | Does |
|---|---|
body.status-page | Header, a full-height middle, footer |
.status-head / .status-main / .status-foot | The three rows |
.status-box | The centered column, at most 608px |
.status-code | The big number with a hard colored shadow |
.status-art | A big icon tile instead |
.status-eyebrow / -title / -text / -actions | The text parts and the buttons |
.status-search | A search box and button |
.status-links | Cards to the main places of the site |
.status-split + -inner + .status-media | Text beside a picture |
--status-accent / --status-bg | Accent color (yellow) / page background |
Notes
- Make your server send this page with the real error code (404, 500, 503), not "200 OK", so search engines don't list it.
- The big number is decoration (
aria-hidden="true"); theh1says what happened in words. - Keep the navbar off a 404 page or keep it: both are fine. A clear way home is what matters.