fix: htmx aware error handling

This commit is contained in:
Per Stark
2025-04-08 16:12:08 +02:00
parent 1d7ec09e32
commit 2cafcce9ad
3 changed files with 38 additions and 39 deletions

View File

@@ -1,11 +1,11 @@
{% extends 'body_base.html' %}
{% block main %}
<main class="container justify-center flex-grow flex mx-auto mt-4">
<div class="flex flex-col space-y-4 text-center">
<div class="flex flex-col space-y-4 text-center justify-center">
<h1 class="text-2xl font-bold text-error">
{{ status_code }}
</h1>
<p class="text-2xl my-4">{{ error }}</p>
<p class="text-2xl my-4">{{ title }}</p>
<p class="text-base-content/60">{{ description }}</p>
<a href="/" class="btn btn-primary mt-8">Go Home</a>
</div>