2022-07-24 11:24:40 +09:00
|
|
|
{##
|
|
|
|
# SPDX-FileCopyrightText: 2022 n9k <https://git.076.ne.jp/ninya9k>
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
##}
|
2022-06-17 13:40:23 +09:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2022-06-29 11:25:22 +09:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2022-07-28 19:48:33 +09:00
|
|
|
<title>{{ error.code }} {{ locale[error.code | string] or error.name }}</title>
|
2022-06-17 13:40:23 +09:00
|
|
|
<style>
|
|
|
|
body {
|
2022-06-25 15:19:52 +09:00
|
|
|
background-color: #232327;
|
2022-06-17 13:40:23 +09:00
|
|
|
color: #ddd;
|
|
|
|
font-family: sans-serif;
|
|
|
|
font-size: 14pt;
|
2022-06-25 18:17:13 +09:00
|
|
|
margin: 3pt 6pt;
|
2022-06-17 13:40:23 +09:00
|
|
|
text-align: center;
|
|
|
|
text-shadow: 2px 0px 1px orangered;
|
|
|
|
}
|
2022-06-22 16:52:07 +09:00
|
|
|
main {
|
|
|
|
margin: auto;
|
|
|
|
max-width: 52rem;
|
|
|
|
}
|
2022-06-17 13:40:23 +09:00
|
|
|
h1 {
|
|
|
|
font-size: 32pt;
|
2022-06-25 15:19:52 +09:00
|
|
|
margin: 0 0 8pt;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
margin: 0;
|
2022-06-17 13:40:23 +09:00
|
|
|
}
|
|
|
|
a {
|
|
|
|
color: #42a5d7;
|
|
|
|
}
|
2022-06-22 16:52:07 +09:00
|
|
|
code {
|
|
|
|
background-color: #333;
|
|
|
|
padding: 2px;
|
|
|
|
border-radius: 2px;
|
|
|
|
overflow-wrap: anywhere;
|
|
|
|
}
|
2022-06-25 15:19:52 +09:00
|
|
|
@media (min-height: 128px) {
|
|
|
|
body {
|
|
|
|
margin: 18pt 16pt;
|
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
margin: revert;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
margin: revert;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-height: 192px) {
|
|
|
|
body {
|
|
|
|
margin: 24pt 16pt;
|
|
|
|
}
|
|
|
|
}
|
2022-07-20 16:12:11 +09:00
|
|
|
@media (min-width: 400px) and (min-height: 128px) {
|
2022-06-25 15:19:52 +09:00
|
|
|
body {
|
|
|
|
background-color: #18181a;
|
|
|
|
}
|
|
|
|
}
|
2022-06-17 13:40:23 +09:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-06-22 16:52:07 +09:00
|
|
|
<main>
|
2022-07-28 19:48:33 +09:00
|
|
|
<h1>{{ locale[error.code | string] or error.name }}</h1>
|
|
|
|
{% if error.description is not none %}
|
2022-06-22 16:52:07 +09:00
|
|
|
<p>{{ error.description }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</main>
|
2022-06-17 13:40:23 +09:00
|
|
|
</body>
|
|
|
|
</html>
|