From 3614f0503f0a9b34989e2c45f356e4e02fdd185d Mon Sep 17 00:00:00 2001 From: Paramtamtam <7326800+tarampampam@users.noreply.github.com> Date: Tue, 22 Mar 2022 23:31:33 +0500 Subject: [PATCH] New template `connection` added (#79) --- .github/workflows/tests.yml | 1 + CHANGELOG.md | 8 ++ README.md | 3 + error-pages.yml | 1 + templates/connection.html | 249 ++++++++++++++++++++++++++++++++++++ 5 files changed, 262 insertions(+) create mode 100644 templates/connection.html diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c88574b..8c495d7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -155,6 +155,7 @@ jobs: # Docs: test -f ./out/cats/404.html test -f ./out/lost-in-space/404.html test -f ./out/app-down/404.html + test -f ./out/connection/404.html docker-image: name: Build docker image diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f68093..2a8e278 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver]. +## UNRELEASED + +### Added + +- Template `connection` [#79] + +[#79]:https://github.com/tarampampam/error-pages/pull/79 + ## v2.8.1 ### Fixed diff --git a/README.md b/README.md index 489c0c7..f7e0a36 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ Transfer/sec: 140.23MB | `cats` | [![cats][cats-screen]][cats-link] | | `lost-in-space` | [![lost-in-space][lost-in-space-screen]][lost-in-space-link] | | `app-down` | [![app-down][app-down-screen]][app-down-link] | +| `connection` | [![connection][connection-screen]][connection-link] | > Note: `noise` template highly uses the CPU, be careful @@ -143,6 +144,8 @@ Transfer/sec: 140.23MB [lost-in-space-link]:https://tarampampam.github.io/error-pages/lost-in-space/404.html [app-down-screen]:https://hsto.org/webt/r3/ys/ql/r3ysqlv_1qj29k3qf_3mliedo8s.png [app-down-link]:https://tarampampam.github.io/error-pages/app-down/404.html +[connection-screen]:https://hsto.org/webt/je/nh/et/jenhetpsxxte5xwsi7uvt95e98i.png +[connection-link]:https://tarampampam.github.io/error-pages/connection/404.html ## 🦾 Contributors diff --git a/error-pages.yml b/error-pages.yml index 46fb4cc..f249cf5 100644 --- a/error-pages.yml +++ b/error-pages.yml @@ -13,6 +13,7 @@ templates: - path: ./templates/cats.html - path: ./templates/lost-in-space.html - path: ./templates/app-down.html + - path: ./templates/connection.html formats: json: diff --git a/templates/connection.html b/templates/connection.html new file mode 100644 index 0000000..b69ed32 --- /dev/null +++ b/templates/connection.html @@ -0,0 +1,249 @@ + + + + + + + + {{ code }} | {{ message }} + + + + + +
+

{{ code }}

+

{{ message }}

+
+
+
+ + + + + + +
Your Client
+

Unknown

+
+ +
+ + + + + + + + + + +
+ +
+ + + + + + +
Network
+

Working

+
+ +
+ + + +
+ +
+ + + + + + +
Web Server
+

Unknown

+
+
+
+
+

What happened?

+

{{ description }}

+
+
+

What can I do?

+

Please try again in a few minutes

+
+
+ + + +