Skip to content

Maintenance Page with Countdown

Dark Bootstrap 5 maintenance page with a live countdown to the return time, progress bar, task checklist and notify-me email form.

Also known as: maintenance mode page, coming back soon page, site downtime page, countdown maintenance page, under maintenance screen

Maintenance Page with Countdown live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

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-target on .mtc-page: set the real return time as ISO 8601, for example 2026-11-02T06:00:00Z.
  • data-mtc-total-minutes on .mtc-page: the full length of the maintenance window; the progress bar fills relative to it.
  • --mtc-accent and --mtc-accent-2 in .mtc-page: change the gradient used by the digits, progress bar and button.
  • --mtc-bg and --mtc-surface in .mtc-page: switch to another dark tone or a lighter glass effect for the tiles and panel.
  • Move the mtc-step--active class to another li.mtc-step to show a different task in progress, or add mtc-step--done to finished ones.
  • The setTimeout in initForm() in script.js: replace it with a fetch() 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.

Maintenance Page with Countdown at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile, dark design
Category
Maintenance Pages
License
Free for personal and commercial use

Questions about this template

Can I use the Maintenance Page with Countdown code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Maintenance Page with Countdown – free Bootstrap 5 maintenance page template
Maintenance Page with Countdown · free Bootstrap 5 maintenance page template

More Maintenance Pages

Maintenance Page with Animated Gears – free Pure CSS maintenance page template

Maintenance Page with Animated Gears

Dark full-page scheduled maintenance notice with interlocking SVG gears, a live countdown, progress bar and task checklist in pure CSS and vanilla JS.