Skip to content

Commit

Permalink
Cats template updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Oct 15, 2021
1 parent e3e618d commit 5c25fbe
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 40 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ jobs: # Docs: <https://git.io/JvxXE>
test -f ./out/shuffle/404.html
test -f ./out/noise/404.html
test -f ./out/hacker-terminal/404.html
test -f ./out/cats/404.html
docker-image:
name: Build docker image
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ The format is based on [Keep a Changelog][keepachangelog] and this project adher

### Added

- Added `cat` error template
- Template `cats` [#31]

[#31]:https://github.com/tarampampam/error-pages/pull/31

## v2.1.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Name | Preview
`shuffle` | [![shuffle](https://hsto.org/webt/7w/rk/3m/7wrk3mrzz3y8qfqwovmuvacu-bs.gif)](https://tarampampam.github.io/error-pages/shuffle/404.html)
`noise` | [![noise](https://hsto.org/webt/42/oq/8y/42oq8yok_i-arrafjt6hds_7ahy.gif)](https://tarampampam.github.io/error-pages/noise/404.html)
`hacker-terminal` | [![hacker-terminal](https://hsto.org/webt/5s/l0/p1/5sl0p1_ud_nalzjzsj5slz6dfda.gif)](https://tarampampam.github.io/error-pages/hacker-terminal/404.html)
`cat` | [![cat](https://http.cat/100)](https://tarampampam.github.io/error-pages/cat/100.html)
`cats` | [![cats](https://hsto.org/webt/_g/y-/ke/_gy-keqinz-3867jbw36v37-iwe.jpeg)](https://tarampampam.github.io/error-pages/cats/100.html)

> Note: `noise` template highly uses the CPU, be careful
Expand Down
3 changes: 1 addition & 2 deletions error-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ templates:
- path: ./templates/shuffle.html
- path: ./templates/noise.html
- path: ./templates/hacker-terminal.html
- path: ./templates/cat.html
name: cat
- path: ./templates/cats.html

pages:
400:
Expand Down
36 changes: 0 additions & 36 deletions templates/cat.html

This file was deleted.

43 changes: 43 additions & 0 deletions templates/cats.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 5c25fbe

Please sign in to comment.