Maintenance Page: maintenance.html 🛠️
A simple, elegant “Under Construction” page for the linuxfront-v2-logistics project.
This document explains its structure, styling, and usage.
Overview
This standalone HTML page informs visitors that the site is under maintenance.
It uses a full-page background image, centered logo, and a short message.
No JavaScript or server-side code is required.
Purpose
- Display a friendly notification during database sync or downtime.
- Maintain brand identity via logo and color scheme.
- Encourage users to revisit later.
File Structure
| Section | Description |
|---|---|
<!DOCTYPE> |
Declares HTML5 document |
<head> |
Meta tags, title |
<style> |
Embedded CSS rules |
<body> |
Logo container and message content |
1. Document Head
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>WSM Under Construction</title>
</head>
<!DOCTYPE>: Triggers standards mode.<meta>: Ensures UTF-8 encoding.<title>: Shown in browser tab.
2. Embedded Styles 🎨
All styles are defined within a <style> block, leveraging Google Fonts.
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
body {
margin: 0;
padding: 0;
background: url(https://wsmintl.com/maintenance-page-example/main-bg.jpg) center top no-repeat;
height: 800px;
}
.container {
width: 1200px;
margin: 0 auto;
}
.logo {
margin: 0 auto;
text-align: center;
padding-top: 82px;
}
.content {
width: 500px;
margin: 230px auto 0;
font: 400 18px 'Open Sans', sans-serif;
text-align: center;
}
.content p {
margin: 0;
padding: 0;
color: #FFF;
}
.content a {
color: #e6940e;
text-decoration: underline;
}
.content a:hover {
color: #FFF;
}
Key Styles
- Global
- Resets
margin/padding - Sets fixed
height(800px) and background image
- Resets
.container- Centers content with fixed width
.logo- Vertically pads logo
.content- Centers text block, applies font and sizing
- Links
- Orange by default; white on hover
3. HTML Body Structure 🏗️
<body>
<div class="container">
<div class="logo">
<img src="https://wsmintl.com/maintenance-page-example/logo.jpg">
</div>
<div class="content">
<p>
WSM is currently synchronizing the databases on<br>
this website. Our maintenance work should be<br>
completed soon. We apologize for any inconvenience,<br>
please check back soon!<br><br>
</p>
<a href="#">www.wsmintl.com</a>
</div>
</div>
</body>
</html>
Breakdown
.container
Wraps the two main sections: logo and content..logo > img
Displays the company logo; noaltattribute (consider adding for accessibility)..content > p
Multi-line message using<br>for manual line breaks..content > a
Link back to main site (currently#placeholder).
4. Customization Guide ✏️
- Background Image
- Change URL in
body { background: url(...) }.
- Change URL in
- Logo
- Swap
srcin<img>to your own logo.
- Swap
- Text & Link
- Edit message inside
<p>. - Update
hrefon<a>to your domain.
- Edit message inside
- Dimensions
- Adjust
.containerwidth orbodyheight as needed.
- Adjust
- Typography
- Load other Google Fonts by modifying the
@importURL.
- Load other Google Fonts by modifying the
5. Deployment & Usage 🚀
- Place maintenance.html at the web root or serve it on a specific route (e.g.,
/maintenance). - Configure your web server to redirect all incoming traffic to this page during maintenance windows.
- Nginx example:
server { listen 80; server_name example.com; if ($maintenance) { return 503 /maintenance.html; } location = /maintenance.html { root /var/www/html; } # ... other config ... }
- Nginx example:
- Ensure external image URLs remain accessible; consider hosting locally for offline reliability.
6. Accessibility & Best Practices ✅
- Alt Text for images:
<img src="..." alt="WSM Logo"> - Responsive design:
- Consider using
%ormax-widthinstead of fixedpxvalues for better mobile support.
- Consider using
- Semantic HTML:
- Replace
<br>line-breaks with separate<p>tags if preferred.
- Replace
Summary 🎉
This maintenance.html page provides a quick, visually appealing way to inform visitors of downtime.
Its simplicity ensures easy customization and rapid deployment.
By following the guidelines above, you can tailor it to any brand and infrastructure.