make a 404 page
This commit is contained in:
20
web/base.html
Normal file
20
web/base.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="64x64"
|
||||
href="favicon-x64.png"
|
||||
/>
|
||||
<link href="styles.css" rel="stylesheet" />
|
||||
<title>{% block title %}{{ title }}{% endblock %}</title>
|
||||
{% block head %} {% endblock %}
|
||||
</head>
|
||||
<body class="min-h-screen flex flex-col">
|
||||
{% block pagecontent %} {{ pagecontent }} {% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +1,5 @@
|
||||
<footer
|
||||
class="w-full h-full border-t border-neutral-300 bg-neutral-100 p-4 flex flex-col"
|
||||
class="w-full h-full border-t border-neutral-300 bg-neutral-100 p-4 flex flex-col mt-auto"
|
||||
>
|
||||
<div class="flex flex-col sm:grid sm:grid-cols-3 gap-8 mx-auto">
|
||||
<section class="max-w-sm w-full">
|
||||
|
||||
16
web/notfound.html
Normal file
16
web/notfound.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends "base.html" %} {# # # # # # # # # # # # # # # # # # # # # # # # # #}
|
||||
{% block title %}gractwo.pl | Błąd 404{% endblock %} {% block pagecontent %}
|
||||
|
||||
<div class="mx-auto my-auto sm:flex gap-2">
|
||||
<div class="size-16 pl-2 sm:pl-0">{% include "gractwo.svg" %}</div>
|
||||
<div class="px-2">
|
||||
<h1 class="font-bold text-2xl">Błąd 404</h1>
|
||||
<p>
|
||||
Nie ma strony o podanym adresie.
|
||||
<a class="text-gractwo-blu-dark hover:underline" href="/">Wróć.</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include "footer.html" %} {# # # # # # # # # # # # # # # # # # # # # # # # #}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user