A simple, responsive maintenance page that informs visitors when your website is undergoing maintenance or updates. The page features a modern design with both light and dark mode support.
When active, visitors will see a friendly message indicating that the site is under maintenance
If you're using Cloudflare for your site, you can use the GH Pages url as the redirected landing page when your site is under maintenance.
This is a great way to keep your entire site: pages, assets, API et al. offline while you work on the maintenance.
- Go to your Cloudflare dashboard and create a new page rule under Rules > Page Rules.
- Set the page rule url to *.yoursite.com/ * and the destination URL to the GH Pages url (https://thinkdj.github.io/oops-kit/) so that all requests to your site are redirected to the maintenance page.
- Set the redirect type to "302 - Temporary Redirect".
- Save the page rule and disable it when your site is no longer under maintenance.
If you're not using Cloudflare, you can still use this page as a temporary landing page when your site is under maintenance by self hosting it on your own server.
- Temporarily replace your main index file with these files during maintenance periods (
index.html
andstyles.css
) - Customize the message in
index.html
and/or modify colors and styles instyles.css
to match your brand if needed
├── index.html # Main HTML file
├── styles.css # CSS styles with dark mode support
└── README.md # Documentation
Edit the text in index.html
:
<h1>We'll Be Right Back</h1>
<p>Our site is currently undergoing maintenance...</p>
The color scheme can be customized in styles.css
. The file includes both light and dark mode color variables.
- ✅ Modern browsers (Chrome, Firefox, Safari, Edge)
- ✅ Mobile browsers
- ✅ Dark mode support through
prefers-color-scheme
Feel free to use this maintenance page for your projects. Attribution is appreciated but not required.
You can even temporarily use the GH Pages url as your redirected landing page when your site is under maintenance.
🕊️