A dark, full-screen maintenance page built with Bootstrap 5 that counts down to the moment your service is back online. Use it while you deploy, migrate servers or run database upgrades, so visitors see a clear return time instead of a bare error page.
How it works
Everything lives in main.mtc-page, a flex container with min-height: 100vh and a navy background with two soft radial glows. A Bootstrap row splits the content into two columns on large screens and stacks them on phones. The left column holds the status pill with a pulsing dot, the headline, a lead text with the return time in .mtc-return, four countdown tiles in .mtc-timer and a Bootstrap progress bar. The right column is a translucent .mtc-panel with a task checklist (.mtc-step--done, .mtc-step--active and plain .mtc-step) and a notify-me form.
The script runs on DOMContentLoaded for every .mtc-page. It reads the end time from data-mtc-target. If that attribute is empty or invalid, it counts down data-mtc-minutes from page load, which keeps the demo alive. The return time is formatted with Intl.DateTimeFormat in the visitor's locale. Every second, render() updates the days, hours, minutes and seconds in the [data-mtc-unit] spans and calculates the progress from data-mtc-total-minutes. At zero it stops the interval, adds mtc-page--done, hides the timer, shows .mtc-done and changes the pill to "Back online".
The form calls preventDefault(), checks the email with checkValidity(), shows Bootstrap's invalid-feedback when needed and simulates saving with a short timeout.
Customization
data-mtc-targeton.mtc-page: set the real return time as ISO 8601, for example2026-11-02T06:00:00Z.data-mtc-total-minuteson.mtc-page: the full length of the maintenance window; the progress bar fills relative to it.--mtc-accentand--mtc-accent-2in.mtc-page: change the gradient used by the digits, progress bar and button.--mtc-bgand--mtc-surfacein.mtc-page: switch to another dark tone or a lighter glass effect for the tiles and panel.- Move the
mtc-step--activeclass to anotherli.mtc-stepto show a different task in progress, or addmtc-step--doneto finished ones. - The
setTimeoutininitForm()inscript.js: replace it with afetch()call to your mailing list or status service.
Use cases
- Planned downtime: a live countdown shows when the site will return
- Status communication: a progress bar and task checklist show what is being updated
- SaaS products: a notify-me email form lets users ask to be told when it ends
- Website migrations: a clear dark holding page replaces broken screens
Accessibility
The countdown has role="timer" with an aria-label, so screen readers do not announce every tick. When the time is up, a visually hidden .mtc-live region announces that maintenance is complete. The progress bar uses role="progressbar" with aria-valuenow updated by the script. Checklist states are spoken through visually-hidden text such as "(in progress)" because the icons are aria-hidden. The email field has a visible label, aria-describedby for the error and aria-invalid when it fails. The pulse and spinning icon stop under prefers-reduced-motion: reduce.
Usage notes
Requires Bootstrap 5 and Bootstrap Icons. Serve this page with HTTP status 503 and a Retry-After header during maintenance so search engines keep your rankings.