Merge pull request #59 from altf4arnold/fixing-4040-and-500-page

[FIX] 404 and 500 page not centered
This commit is contained in:
Arnold Dechamps 2024-05-18 02:49:20 +02:00 committed by GitHub
commit 2f920dfba3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 2 deletions

12
staticfiles/404.html Normal file
View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=https://tldtest.net">
<title>Redirecting...</title>
</head>
<body>
<p>This page is redirecting you to another page...</p>
<p>If you are not redirected in 5 seconds, <a href="https://tldtest.net">click here</a>.</p>
</body>
</html>

View file

@ -1,5 +1,11 @@
{% extends "base.html" %}
{% block title %}Error 404{% endblock %}
{% block content %}
<img src="https://http.cat/images/404.jpg">
<div class="grid gap-4">
<div class="row-start-2">
<div class="flex justify-center">
<img src="https://http.cat/images/404.jpg">
</div>
</div>
</div>
{% endblock content %}

View file

@ -1,5 +1,11 @@
{% extends "base.html" %}
{% block title %}Error 404{% endblock %}
{% block content %}
<img src="https://http.cat/images/500.jpg">
<div class="grid gap-4">
<div class="row-start-2">
<div class="flex justify-center">
<img src="https://http.cat/images/500.jpg">
</div>
</div>
</div>
{% endblock content %}