1
0
Fork 0

Adjust 404

This commit is contained in:
Mo 2023-05-31 01:11:17 +02:00
parent 17b2305a3d
commit 9dcfd3e3c1
2 changed files with 11 additions and 10 deletions

View file

@ -1,17 +1,14 @@
{% extends "base.html" %} {% extends "base.html" %}
{% import "macros.html" as macros %}
{% block content %} {% block content %}
<div class="container text-center"> <div class="flex flex-col mx-auto text-center">
<h1 class="h1">Seite nicht gefunden</h1> <h1>Page not found!</h1>
<img src="{{ get_url(path='images/404/bot.svg') | safe }}" <img class="mb-5 max-h-[50vh]"
class="img-fluid" src="{{ get_url(path='images/404/bot.svg') | safe }}" />
width="300" />
<div class="d-grid gap-2 pt-3"> <div class="flex justify-center">{{ macros::btn(link=get_url(path='/') , text="Zurück zur Startseite") }}</div>
<a class="btn btn-dark"
href="{{ get_url(path='/') | safe }}"
role="button">Zurück zur Startseite</a>
</div>
</div> </div>
{% endblock %} {% endblock %}

4
templates/macros.html Normal file
View file

@ -0,0 +1,4 @@
{% macro btn(link, text) %}
<a class="no-underline w-fit text-center my-1 px-4 py-2 text-white bg-green-700 rounded hover:scale-110 transition duration-500"
href="{{ link | safe }}">{{ text }}</a>
{% endmacro %}