From 1438cd669f06d7054d4359f0a4b383e04cffa982 Mon Sep 17 00:00:00 2001 From: Grollicus <cccvgitlab.db5c7b60@grollmann.eu> Date: Tue, 29 Dec 2020 00:49:17 +0100 Subject: [PATCH] display custom error pages from django --- src/plainui/templates/403.html | 40 ++++++++++++++++++++++++++++++++++ src/plainui/templates/404.html | 40 ++++++++++++++++++++++++++++++++++ src/plainui/templates/500.html | 40 ++++++++++++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 src/plainui/templates/403.html create mode 100644 src/plainui/templates/404.html create mode 100644 src/plainui/templates/500.html diff --git a/src/plainui/templates/403.html b/src/plainui/templates/403.html new file mode 100644 index 000000000..cc6e4a52a --- /dev/null +++ b/src/plainui/templates/403.html @@ -0,0 +1,40 @@ +{% load static %} +<!DOCTYPE html> +<html> +<head> + <title>403 - Forbidden</title> + <style type="text/css"> + * { + box-sizing: border-box; + } + body { + padding: 0; + margin: 0; + background-color: rgba(0,0,0,1); + } + article { + margin: 0; + padding: 4rem; + display: flex; + height: 100vh; + align-items: center; + justify-content: center; + } + img { + display: block; + width: 100%; + height: auto; + } + a { + text-decoration: none; + } + </style> +</head> +<body> +<article> + <a href="https://rc3.world" class="row my-8"> + <img class="" src="{% static "error_pages/403_FORBIDDEN.jpg" %}" alt="403 - Forbidden" title="403 - Forbidden" /> + </a> +</article> +</body> +</html> diff --git a/src/plainui/templates/404.html b/src/plainui/templates/404.html new file mode 100644 index 000000000..8c28d4d0e --- /dev/null +++ b/src/plainui/templates/404.html @@ -0,0 +1,40 @@ +{% load static %} +<!DOCTYPE html> +<html> +<head> + <title>404 - OOOOOPS (not found)</title> + <style type="text/css"> + * { + box-sizing: border-box; + } + body { + padding: 0; + margin: 0; + background-color: rgba(0,0,0,1); + } + article { + margin: 0; + padding: 4rem; + display: flex; + height: 100vh; + align-items: center; + justify-content: center; + } + img { + display: block; + width: 100%; + height: auto; + } + a { + text-decoration: none; + } + </style> +</head> +<body> +<article> + <a href="https://rc3.world" class="row my-8"> + <img class="" src="{% static "error_pages/404_NOT_FOUND.jpg" %}" alt="404 Error" title="404 Error" /> + </a> +</article> +</body> +</html> diff --git a/src/plainui/templates/500.html b/src/plainui/templates/500.html new file mode 100644 index 000000000..9384d19b6 --- /dev/null +++ b/src/plainui/templates/500.html @@ -0,0 +1,40 @@ +{% load static %} +<!DOCTYPE html> +<html> +<head> + <title>500 - Internal Server Error</title> + <style type="text/css"> + * { + box-sizing: border-box; + } + body { + padding: 0; + margin: 0; + background-color: rgba(0,0,0,1); + } + article { + margin: 0; + padding: 4rem; + display: flex; + height: 100vh; + align-items: center; + justify-content: center; + } + img { + display: block; + width: 100%; + height: auto; + } + a { + text-decoration: none; + } + </style> +</head> +<body> +<article> + <a href="https://rc3.world" class="row my-8"> + <img class="" src="{% static "error_pages/500_INTERNAL_SERVER_ERROR.jpg" %}" alt="500 - internal Server error" title="500 - internal Server error" /> + </a> +</article> +</body> +</html> -- GitLab