From 66714df21ac859bc265ce92329f50944b34ff975 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 9 Jun 2025 19:00:21 +0200 Subject: [PATCH] chore: new layout for error page --- src/main/resources/templates/case.html | 2 +- src/main/resources/templates/cases.html | 4 ++-- src/main/resources/templates/donors.html | 2 +- .../resources/templates/error/notfound.html | 17 +++++++++++++- src/main/resources/templates/files.html | 2 +- .../resources/templates/labdataprofiles.html | 2 +- .../resources/templates/labdatas/index.html | 2 +- src/main/resources/templates/unusedfiles.html | 2 +- src/main/web/style.css | 22 ++++++++++++++----- 9 files changed, 41 insertions(+), 14 deletions(-) diff --git a/src/main/resources/templates/case.html b/src/main/resources/templates/case.html index b680045..270cda5 100644 --- a/src/main/resources/templates/case.html +++ b/src/main/resources/templates/case.html @@ -11,7 +11,7 @@
-

Fall

+

Fall

diff --git a/src/main/resources/templates/cases.html b/src/main/resources/templates/cases.html index b8a19fe..46d75bb 100644 --- a/src/main/resources/templates/cases.html +++ b/src/main/resources/templates/cases.html @@ -6,13 +6,13 @@
-

+

Alle Fälle

diff --git a/src/main/resources/templates/donors.html b/src/main/resources/templates/donors.html index 220ba01..4bb5909 100644 --- a/src/main/resources/templates/donors.html +++ b/src/main/resources/templates/donors.html @@ -8,7 +8,7 @@
-

Probenspender

+

Probenspender

Keine Probenspender gefunden
diff --git a/src/main/resources/templates/error/notfound.html b/src/main/resources/templates/error/notfound.html index c429ab8..dd10711 100644 --- a/src/main/resources/templates/error/notfound.html +++ b/src/main/resources/templates/error/notfound.html @@ -3,8 +3,23 @@ Fehler + - Zurück + + + +
+
+

+ Fehler +

+

+ Es konnte nichts gefunden werden +

+
+
+ + diff --git a/src/main/resources/templates/files.html b/src/main/resources/templates/files.html index d49bebd..1354bb0 100644 --- a/src/main/resources/templates/files.html +++ b/src/main/resources/templates/files.html @@ -8,7 +8,7 @@
-

Datei

+

Datei

Keine Datei gefunden
diff --git a/src/main/resources/templates/labdataprofiles.html b/src/main/resources/templates/labdataprofiles.html index e1cadde..a5020fe 100644 --- a/src/main/resources/templates/labdataprofiles.html +++ b/src/main/resources/templates/labdataprofiles.html @@ -12,7 +12,7 @@
-

Probe

+

Probe

Keine Sequenzierprofile gefunden
diff --git a/src/main/resources/templates/labdatas/index.html b/src/main/resources/templates/labdatas/index.html index 467ae65..2ff6dd2 100644 --- a/src/main/resources/templates/labdatas/index.html +++ b/src/main/resources/templates/labdatas/index.html @@ -8,7 +8,7 @@
-

Probe

+

Probe

Keine Probe gefunden
diff --git a/src/main/resources/templates/unusedfiles.html b/src/main/resources/templates/unusedfiles.html index d458217..ab30aa7 100644 --- a/src/main/resources/templates/unusedfiles.html +++ b/src/main/resources/templates/unusedfiles.html @@ -14,7 +14,7 @@
-

Datei

+

Datei

Keine ungenutzte Datei gefunden
diff --git a/src/main/web/style.css b/src/main/web/style.css index 754f161..4385125 100644 --- a/src/main/web/style.css +++ b/src/main/web/style.css @@ -60,7 +60,7 @@ main { @apply mx-auto pl-84 px-10 py-1 w-full; } -h1, h2, h3, h4 { +h1.head, h2.head, h3.head, h4.head { @apply mt-5 text-white py-1 px-3 rounded-t-sm } @@ -81,25 +81,37 @@ details[open] > summary { } summary.h1, -h1 { +h1.head { @apply text-3xl font-bold bg-blue-900 } summary.h2, -h2 { +h2.head { @apply text-2xl font-bold bg-green-900 } summary.h3, -h3 { +h3.head { @apply text-xl font-bold bg-yellow-900 } summary.h4, -h4 { +h4.head { @apply font-bold bg-red-900 } +div.error { + @apply mt-5 +} + +div.error h1 { + @apply font-bold text-3xl p-2 bg-red-900 text-white rounded-t-sm +} + +div.error p { + @apply p-2 bg-red-200 rounded-b-sm +} + form { @apply p-2 rounded-b-sm }