maintenance-1.0.0-beta1/templates/maintenance-page--clean.html.twig
templates/maintenance-page--clean.html.twig
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ title|striptags }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background-color: #f9f9f9;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color: #333;
margin: 0;
padding: 0;
text-align: center;
}
.wrapper {
max-width: 600px;
margin: 80px auto;
padding: 0 20px;
}
h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
color: #222;
}
.message {
font-size: 1.2rem;
margin-bottom: 2rem;
}
.site-name {
font-weight: bold;
color: #555;
font-size: 1rem;
margin-top: 3rem;
}
button[data-maintenance-reload] {
margin-top: 30px;
padding: 10px 24px;
font-size: 1rem;
background-color: #0074d9;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button[data-maintenance-reload]:hover {
background-color: #005fa3;
}
</style>
</head>
<body>
<div class="wrapper">
{# Prevent PHP warning by using the title variable #}
{% if title %}
<h1>{{ title }}</h1>
{% else %}
<h1>{% trans %}We’ll be back soon!{% endtrans %}</h1>
{% endif %}
<div class="message">
{{ maintenance_text|raw }}
</div>
<div class="site-name">
— {{ site_name }}
</div>
</div>
{# Optional reload button will be injected via JS if enabled #}
</body>
</html>
