mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
wip: 🔕 temporary commit
This commit is contained in:
parent
3f22916cbb
commit
6326e78cf4
160
templates/cats.html
Normal file
160
templates/cats.html
Normal file
@ -0,0 +1,160 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="robots" content="follow, noarchive, noindex">
|
||||||
|
<title>{{ message }}</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta name="title" content="{{ code }}: {{ message }}">
|
||||||
|
<meta name="description" content="{{ description }}">
|
||||||
|
<meta property="og:title" content="{{ code }}: {{ message }}">
|
||||||
|
<meta property="og:description" content="{{ description }}">
|
||||||
|
<meta property="twitter:title" content="{{ code }}: {{ message }}">
|
||||||
|
<meta property="twitter:description" content="{{ description }}">
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--color-primary: #fff;
|
||||||
|
--color-inverted: #202020;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--color-primary: #000;
|
||||||
|
--color-inverted: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
min-height: 100%;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
background-color: var(--color-primary);
|
||||||
|
color: var(--color-inverted);
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 2000px) {
|
||||||
|
html, body {
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
article img {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 750px;
|
||||||
|
box-shadow: 0 30px 0 -20px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* {{ if show_details }} */
|
||||||
|
table.details {
|
||||||
|
table-layout: fixed;
|
||||||
|
width: 100%;
|
||||||
|
opacity: .8;
|
||||||
|
padding-top: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.details td {
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 0.7em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.details .name,
|
||||||
|
table.details .value {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.details .name::first-letter,
|
||||||
|
table.details .value::first-letter {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.details .name {
|
||||||
|
text-align: right;
|
||||||
|
padding-right: .4em;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.details .value {
|
||||||
|
text-align: left;
|
||||||
|
padding-left: .4em;
|
||||||
|
font-family: monospace;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* {{ end }} */
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<article>
|
||||||
|
<img src="https://http.cat/{{ code }}.jpg" alt="{{ message }}">
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<!-- {{- if show_details -}} -->
|
||||||
|
<table class="details">
|
||||||
|
<tbody>
|
||||||
|
<!-- {{- if host -}} -->
|
||||||
|
<tr>
|
||||||
|
<td class="name" data-l10n>Host</td>
|
||||||
|
<td class="value">{{ host }}</td>
|
||||||
|
</tr>
|
||||||
|
<!-- {{- end }}{{ if original_uri -}} -->
|
||||||
|
<tr>
|
||||||
|
<td class="name" data-l10n>Original URI</td>
|
||||||
|
<td class="value">{{ original_uri }}</td>
|
||||||
|
</tr>
|
||||||
|
<!-- {{- end }}{{ if forwarded_for -}} -->
|
||||||
|
<tr>
|
||||||
|
<td class="name" data-l10n>Forwarded for</td>
|
||||||
|
<td class="value">{{ forwarded_for }}</td>
|
||||||
|
</tr>
|
||||||
|
<!-- {{- end }}{{ if namespace -}} -->
|
||||||
|
<tr>
|
||||||
|
<td class="name" data-l10n>Namespace</td>
|
||||||
|
<td class="value">{{ namespace }}</td>
|
||||||
|
</tr>
|
||||||
|
<!-- {{- end }}{{ if ingress_name -}} -->
|
||||||
|
<tr>
|
||||||
|
<td class="name" data-l10n>Ingress name</td>
|
||||||
|
<td class="value">{{ ingress_name }}</td>
|
||||||
|
</tr>
|
||||||
|
<!-- {{- end }}{{ if service_name -}} -->
|
||||||
|
<tr>
|
||||||
|
<td class="name" data-l10n>Service name</td>
|
||||||
|
<td class="value">{{ service_name }}</td>
|
||||||
|
</tr>
|
||||||
|
<!-- {{- end }}{{ if service_port -}} -->
|
||||||
|
<tr>
|
||||||
|
<td class="name" data-l10n>Service port</td>
|
||||||
|
<td class="value">{{ service_port }}</td>
|
||||||
|
</tr>
|
||||||
|
<!-- {{- end }}{{ if request_id -}} -->
|
||||||
|
<tr>
|
||||||
|
<td class="name" data-l10n>Request ID</td>
|
||||||
|
<td class="value">{{ request_id }}</td>
|
||||||
|
</tr>
|
||||||
|
<!-- {{- end -}} -->
|
||||||
|
<tr>
|
||||||
|
<td class="name" data-l10n>Timestamp</td>
|
||||||
|
<td class="value">{{ now.Unix }}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<!-- {{- end -}} -->
|
||||||
|
|
||||||
|
<!-- {{- if l10n_enabled -}} -->
|
||||||
|
<script> // {{ l10nScript }}</script>
|
||||||
|
<!-- {{- end -}} -->
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="utf-8">
|
||||||
<meta name="robots" content="follow, noarchive, noindex">
|
<meta name="robots" content="follow, noarchive, noindex">
|
||||||
<title>{{ code }}: {{ message }}</title>
|
<title>{{ code }}: {{ message }}</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
@ -44,19 +44,19 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
body {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
main article {
|
article {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
main article .ghost {
|
article .ghost {
|
||||||
animation: float 3s ease-out infinite;
|
animation: float 3s ease-out infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,12 +66,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main article .shadowFrame {
|
article .shadowFrame {
|
||||||
width: 130px;
|
width: 130px;
|
||||||
margin: 10px auto 0 auto;
|
margin: 10px auto 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
main article .shadowFrame .shadow {
|
article .shadowFrame .shadow {
|
||||||
animation: shrink 3s ease-out infinite;
|
animation: shrink 3s ease-out infinite;
|
||||||
transform-origin: center center;
|
transform-origin: center center;
|
||||||
}
|
}
|
||||||
@ -91,13 +91,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main article h3 {
|
article h3 {
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
margin: 0.3em auto;
|
margin: 0.3em auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
main article .description {
|
article .description {
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
opacity: .9;
|
opacity: .9;
|
||||||
}
|
}
|
||||||
@ -141,8 +141,7 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<article>
|
||||||
<article>
|
|
||||||
<svg class="ghost" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="127.433px" height="132.743px"
|
<svg class="ghost" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="127.433px" height="132.743px"
|
||||||
viewBox="0 0 127.433 132.743" xml:space="preserve">
|
viewBox="0 0 127.433 132.743" xml:space="preserve">
|
||||||
<path d="M116.223,125.064c1.032-1.183,1.323-2.73,1.391-3.747V54.76c0,0-4.625-34.875-36.125-44.375
|
<path d="M116.223,125.064c1.032-1.183,1.323-2.73,1.391-3.747V54.76c0,0-4.625-34.875-36.125-44.375
|
||||||
@ -238,8 +237,8 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<!-- {{- end -}} -->
|
<!-- {{- end -}} -->
|
||||||
</article>
|
</article>
|
||||||
</main>
|
|
||||||
<!-- {{- if l10n_enabled -}} -->
|
<!-- {{- if l10n_enabled -}} -->
|
||||||
<script> // {{ l10nScript }}</script>
|
<script> // {{ l10nScript }}</script>
|
||||||
<!-- {{- end -}} -->
|
<!-- {{- end -}} -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user