Adjust 404
This commit is contained in:
parent
17b2305a3d
commit
9dcfd3e3c1
2 changed files with 11 additions and 10 deletions
|
@ -1,17 +1,14 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% import "macros.html" as macros %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container text-center">
|
||||
<h1 class="h1">Seite nicht gefunden</h1>
|
||||
<div class="flex flex-col mx-auto text-center">
|
||||
<h1>Page not found!</h1>
|
||||
|
||||
<img src="{{ get_url(path='images/404/bot.svg') | safe }}"
|
||||
class="img-fluid"
|
||||
width="300" />
|
||||
<img class="mb-5 max-h-[50vh]"
|
||||
src="{{ get_url(path='images/404/bot.svg') | safe }}" />
|
||||
|
||||
<div class="d-grid gap-2 pt-3">
|
||||
<a class="btn btn-dark"
|
||||
href="{{ get_url(path='/') | safe }}"
|
||||
role="button">Zurück zur Startseite</a>
|
||||
</div>
|
||||
<div class="flex justify-center">{{ macros::btn(link=get_url(path='/') , text="Zurück zur Startseite") }}</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
4
templates/macros.html
Normal file
4
templates/macros.html
Normal 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 %}
|
Loading…
Reference in a new issue