feat: custom error pages

This commit is contained in:
Björn Fromme
2023-12-01 11:36:48 +01:00
parent 11ea5e5f85
commit feb06ecf64
3 changed files with 29 additions and 1 deletions
@@ -0,0 +1,13 @@
{% extends 'layout.html.twig' %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
Oups... Ein Fehler ist aufgetreten
</h1>
<p class="mb-8">
Wir haben uns ein paar Notizen dazu gemacht und werden das Problem so schnell wie möglich beseitigen.
</p>
<a class="btn" href="{{ path('app_security_login') }}">
nochmal von vorne
</a>
{% endblock %}
@@ -0,0 +1,13 @@
{% extends 'layout.html.twig' %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
Oups... Ein Fehler ist aufgetreten
</h1>
<p class="mb-8">
Die von dir aufgerufene Seite können wir leider nicht (mehr) finden.
</p>
<a class="btn" href="{{ path('app_security_login') }}">
nochmal von vorne
</a>
{% endblock %}
+3 -1
View File
@@ -3,9 +3,10 @@
{% block body %}
<div class="container lg:grid lg:grid-cols-4 gap-8 py-8">
<div class="lg:col-span-4 flex items-center justify-between pb-4 lg:pb-0">
<a href="{{ path(app.user.defaultRoute) }}">
<a href="{{ path(app.user ? app.user.defaultRoute : 'app_security_login') }}">
<img class="h-8 w-auto" src="{{ asset('build/images/logo.svg') }}" alt="My E&amp;P Team">
</a>
{% if app.user %}
<div class="flex items-center space-x-4">
{% if app.user.teamer.photo %}
<a href="{{ path('app_teamer_profile_index') }}" title="Mein Profil">
@@ -21,6 +22,7 @@
{{ icon('menu', 'w-8 h-8 text-gray-700') }}
</button>
</div>
{% endif %}
</div>
<div class="hidden lg:block">
{% block main_menu %}{% endblock %}