mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
Cats template updated
This commit is contained in:
parent
e3e618d3cf
commit
5c25fbe2c4
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
@ -134,6 +134,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
test -f ./out/shuffle/404.html
|
test -f ./out/shuffle/404.html
|
||||||
test -f ./out/noise/404.html
|
test -f ./out/noise/404.html
|
||||||
test -f ./out/hacker-terminal/404.html
|
test -f ./out/hacker-terminal/404.html
|
||||||
|
test -f ./out/cats/404.html
|
||||||
|
|
||||||
docker-image:
|
docker-image:
|
||||||
name: Build docker image
|
name: Build docker image
|
||||||
|
@ -8,7 +8,9 @@ The format is based on [Keep a Changelog][keepachangelog] and this project adher
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Added `cat` error template
|
- Template `cats` [#31]
|
||||||
|
|
||||||
|
[#31]:https://github.com/tarampampam/error-pages/pull/31
|
||||||
|
|
||||||
## v2.1.0
|
## v2.1.0
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ Name | Preview
|
|||||||
`shuffle` | [](https://tarampampam.github.io/error-pages/shuffle/404.html)
|
`shuffle` | [](https://tarampampam.github.io/error-pages/shuffle/404.html)
|
||||||
`noise` | [](https://tarampampam.github.io/error-pages/noise/404.html)
|
`noise` | [](https://tarampampam.github.io/error-pages/noise/404.html)
|
||||||
`hacker-terminal` | [](https://tarampampam.github.io/error-pages/hacker-terminal/404.html)
|
`hacker-terminal` | [](https://tarampampam.github.io/error-pages/hacker-terminal/404.html)
|
||||||
`cat` | [](https://tarampampam.github.io/error-pages/cat/100.html)
|
`cats` | [](https://tarampampam.github.io/error-pages/cats/100.html)
|
||||||
|
|
||||||
> Note: `noise` template highly uses the CPU, be careful
|
> Note: `noise` template highly uses the CPU, be careful
|
||||||
|
|
||||||
|
@ -10,8 +10,7 @@ templates:
|
|||||||
- path: ./templates/shuffle.html
|
- path: ./templates/shuffle.html
|
||||||
- path: ./templates/noise.html
|
- path: ./templates/noise.html
|
||||||
- path: ./templates/hacker-terminal.html
|
- path: ./templates/hacker-terminal.html
|
||||||
- path: ./templates/cat.html
|
- path: ./templates/cats.html
|
||||||
name: cat
|
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
400:
|
400:
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<!--
|
|
||||||
Error {{ code }}: {{ message }}
|
|
||||||
Description: {{ description }}
|
|
||||||
-->
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<title>{{ message }}</title>
|
|
||||||
<style>
|
|
||||||
.image {
|
|
||||||
-webkit-user-select: none;
|
|
||||||
user-select: none;
|
|
||||||
display: block;
|
|
||||||
margin: auto;
|
|
||||||
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
|
|
||||||
}
|
|
||||||
|
|
||||||
.mar0 {
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="mar0">
|
|
||||||
<img class="image" src="https://http.cat/{{code}}">
|
|
||||||
</body>
|
|
||||||
<!--
|
|
||||||
Error {{ code }}: {{ message }}
|
|
||||||
Description: {{ description }}
|
|
||||||
-->
|
|
||||||
|
|
||||||
</html>
|
|
43
templates/cats.html
Normal file
43
templates/cats.html
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<!--
|
||||||
|
Error {{ code }}: {{ message }}
|
||||||
|
Description: {{ description }}
|
||||||
|
-->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
|
<title>{{ message }}</title>
|
||||||
|
<style>
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
background-color: #000;
|
||||||
|
color: #aaa;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.centered {
|
||||||
|
height: 100vh;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center
|
||||||
|
}
|
||||||
|
|
||||||
|
.centered img {
|
||||||
|
max-width: 750px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="centered">
|
||||||
|
<!-- Pictures provider: <https://http.cat/> -->
|
||||||
|
<img src="https://http.cat/{{ code }}.jpg" alt="{{ message }}">
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<!--
|
||||||
|
Error {{ code }}: {{ message }}
|
||||||
|
Description: {{ description }}
|
||||||
|
-->
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user