anonstream/anonstream/templates/error.html

69 行
1.3 KiB
HTML
Raw 通常表示 履歴

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-06-17 13:40:23 +09:00
<title>{{ error.code }} {{ error.name }}</title>
<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-06-25 15:19:52 +09:00
<h1>{{ error.name }}</h1>
2022-06-22 16:52:07 +09:00
{% if error.description != error.__class__.description %}
<p>{{ error.description }}</p>
{% endif %}
</main>
2022-06-17 13:40:23 +09:00
</body>
</html>