Coming soon
A one-screen page for before launch: what is coming, a countdown to the day, and an email box to be told. Built from the same status page parts, plus a countdown.
Whole page
Countdown
Give a .countdown the date in data-momo-countdown (with a time zone, like Z for UTC). Momo fills every [data-unit] (days, hours, minutes, seconds) each second; leave out the ones you don't want.
0days
00hours
00minutes
00seconds
<div class="countdown" data-momo-countdown="2027-01-15T09:00:00Z" aria-label="Time until launch">
<div class="countdown-part"><span class="countdown-num" data-unit="days">0</span><span class="countdown-label">days</span></div>
<div class="countdown-part"><span class="countdown-num" data-unit="hours">00</span><span class="countdown-label">hours</span></div>
<div class="countdown-part"><span class="countdown-num" data-unit="minutes">00</span><span class="countdown-label">minutes</span></div>
<div class="countdown-part"><span class="countdown-num" data-unit="seconds">00</span><span class="countdown-label">seconds</span></div>
</div>When the time is up
Put an element with data-momo-countdown-done and hidden next to the countdown: at zero the countdown hides and it shows. This one's date has already passed. A momo:countdown-done event fires too.
00hours
00minutes
Live The sale has started. Shop now
<div class="text-center">
<div class="countdown countdown-ink" data-momo-countdown="2026-01-01T00:00:00Z" aria-label="Time until the sale">
<div class="countdown-part"><span class="countdown-num" data-unit="hours">00</span><span class="countdown-label">hours</span></div>
<div class="countdown-part"><span class="countdown-num" data-unit="minutes">00</span><span class="countdown-label">minutes</span></div>
</div>
<p class="m-0" data-momo-countdown-done hidden><span class="badge badge-green">Live</span> The sale has started. <a href="#">Shop now</a></p>
</div>Classes and attributes
| Class / attribute | Does |
|---|---|
.countdown + data-momo-countdown="date" | The countdown and the moment it counts to |
.countdown-part / -num / -label | One box: the number (data-unit) and its word |
.countdown-ink | Dark boxes |
data-momo-countdown-done | Shown (and the countdown hidden) when the time is up |
.status-art, .status-eyebrow, .signup-form | From the 404 page and newsletter |
Accessibility
- The countdown is a
timer, so screen readers don't read out every second. Momo keeps one hidden sentence up to date ("12 days, 3 hours and 20 minutes to go") that changes once a minute. - Give it a name with
aria-label, like "Time until launch".