templates: base maintenance page on mini-page template (#88261)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2024-03-17 09:50:50 +01:00
parent 98aaf3925f
commit 8500e6a628
2 changed files with 10 additions and 50 deletions

View File

@ -208,6 +208,9 @@ body.pk-mini-page {
padding: 0em;
text-align: center;
border-bottom: 5px solid var(--primary-color);
h1 {
margin-top: 0;
}
}
.pk-mini-page--content {
padding: 1em

View File

@ -1,53 +1,10 @@
<!DOCTYPE html>
{% extends "mini-base.html" %}
{% load i18n %}
<html {% if LANGUAGE_CODE %}lang="{{ LANGUAGE_CODE }}"{% endif %} {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
<meta charset="UTF-8"><!-- 🔥 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% firstof global_title "Compte Citoyen" %}</title>
</head>
<body>
<main>
<h1>{% firstof global_title "Compte Citoyen" %}</h1>
<p><strong>{% trans "This site is currently unavailable." %}</strong></p>
<p>{{ maintenance_message|default:"" }}</p>
</main>
</body>
<style>
html, body {
margin: 0;
padding: 0;
font-family: sans-serif;
background: #eee;
color: black;
font-size: 100%;
}
body {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
}
{% block title %}{% trans "Error" %}{% endblock %}
main {
border: 5px solid {% firstof theme_color black %};
margin: auto auto;
padding: 1em;
max-width: 70ex;
flex: 1;
background: white;
}
h1 {
margin-top: 0;
border-bottom: 2px solid {% firstof theme_color black %};
font-size: 200%;
}
p {
font-size: 120%;
}
</style>
</html>
{% block content %}
<h1>{% firstof global_title "Compte Citoyen" %}</h1>
<p><strong>{% trans "This site is currently unavailable." %}</strong></p>
<p>{{ maintenance_message|default:"" }}</p>
{% endblock %}