From 6bbef0a975df144e55604807ae69be847238d047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 9 Dec 2025 11:20:43 +0100 Subject: [PATCH] feat: various improvements in styles and layout --- assets/styles/_base.css | 6 +- assets/styles/components/button.css | 5 +- .../Booking/Create/IndexController.php | 2 +- templates/account/index.html.twig | 2 +- templates/account/personal_data.html.twig | 2 +- .../booking/create/authenticate.html.twig | 104 +++++++++--------- .../{ => create}/modal_cancel.html.twig | 8 +- templates/booking/edit/modal_cancel.html.twig | 8 +- 8 files changed, 70 insertions(+), 67 deletions(-) rename templates/booking/{ => create}/modal_cancel.html.twig (75%) diff --git a/assets/styles/_base.css b/assets/styles/_base.css index 98befd2..681ff5d 100644 --- a/assets/styles/_base.css +++ b/assets/styles/_base.css @@ -46,13 +46,13 @@ } .bg-outer--1 { - background-image: url('../images/bg_4.jpg'), linear-gradient(131.39deg, #0070E0 10.55%, #165883 53.93%, #18527B 80.73%); + background-image: url('../images/bg_4.jpg'), linear-gradient(190deg, rgba(24, 82, 123, 1) 0%, rgba(22, 88, 131, 1) 62%, rgba(0, 112, 224, 1) 100%);; } .bg-outer--2 { - background-image: url('../images/bg_5.jpg'), linear-gradient(131.39deg, #0070E0 10.55%, #165883 53.93%, #18527B 80.73%); + background-image: url('../images/bg_5.jpg'), linear-gradient(190deg, rgba(24, 82, 123, 1) 0%, rgba(22, 88, 131, 1) 62%, rgba(0, 112, 224, 1) 100%);; } .bg-inner { - background-image: linear-gradient(311.39deg, #0070E0cc 16.35%, #165883cc 41.93%, #18527Bcc 56.29%); + background-image: linear-gradient(190deg, rgba(24, 82, 123, 0.8) 0%, rgba(22, 88, 131, 0.8) 62%, rgba(0, 112, 224, 0.8) 100%);; } diff --git a/assets/styles/components/button.css b/assets/styles/components/button.css index d09e6b4..4984eb9 100644 --- a/assets/styles/components/button.css +++ b/assets/styles/components/button.css @@ -14,12 +14,13 @@ } .button--secondary { - @apply bg-none bg-primary-light text-white; + @apply bg-none bg-primary-dark text-white; @apply hover:bg-primary-light/80; } .button--primary { - @apply bg-pink text-white; + background: linear-gradient(120deg, #960167 0%, #9e036a 40%, #fa1a8c 100%); + @apply text-white; @apply hover:bg-none hover:bg-pink/80; } diff --git a/src/Controller/Booking/Create/IndexController.php b/src/Controller/Booking/Create/IndexController.php index 21c2f57..3d21bce 100644 --- a/src/Controller/Booking/Create/IndexController.php +++ b/src/Controller/Booking/Create/IndexController.php @@ -150,7 +150,7 @@ class IndexController extends AbstractController return $this->htmxRedirect($request, $returnUrl); } - return $this->render('booking/modal_cancel.html.twig'); + return $this->render('booking/create/modal_cancel.html.twig'); } /** diff --git a/templates/account/index.html.twig b/templates/account/index.html.twig index ffb6987..c20e63c 100644 --- a/templates/account/index.html.twig +++ b/templates/account/index.html.twig @@ -6,7 +6,7 @@ Mein
Account -
+
-
+
diff --git a/templates/booking/create/authenticate.html.twig b/templates/booking/create/authenticate.html.twig index 5bb0eb1..66b87cf 100644 --- a/templates/booking/create/authenticate.html.twig +++ b/templates/booking/create/authenticate.html.twig @@ -5,38 +5,33 @@ {% include '_partials/_flashes.html.twig' %} -

+

Neue
Buchung

-
- {{ travel_title }} -
- {{ travel_date_from | date('d.m.Y') }} - {{ travel_date_to | date('d.m.Y') }} -
+
{% if cmsData.hotel.images is defined %} {{ cmsData.hotel.images.resized.l[0].alt }} + class="block w-full max-w-64 h-auto mb-4"> {% endif %} +
+
+ {{ travel_title }} +
+
+ {{ travel_date_from | date('d.m.Y') }} - {{ travel_date_to | date('d.m.Y') }} +
+
- -
+
- + Als Gast fortfahren - -

- Noch kein Account? -

-

- Nach Abschluss deiner Buchung wird automatisch ein Account für dich erstellt. - Du erhältst dann Zugangsdaten per E-Mail und kannst deine Buchungen jederzeit verwalten. -

-

+

Mit bestehendem Account anmelden

@@ -44,45 +39,52 @@ {% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %} {% endif %} -
-
-
- - -
+ +
+ + +
-
- - -
+
+ + +
- - -
-
+ + + + class="inline-block text-sm underline text-white mt-2"> Passwort vergessen? +
+
+

+ Noch kein Account? +

+
+ Nach Abschluss deiner Buchung wird automatisch ein Account für dich erstellt. + Du erhältst dann Zugangsdaten per E-Mail und kannst deine Buchungen jederzeit verwalten. +
diff --git a/templates/booking/modal_cancel.html.twig b/templates/booking/create/modal_cancel.html.twig similarity index 75% rename from templates/booking/modal_cancel.html.twig rename to templates/booking/create/modal_cancel.html.twig index d01eac0..7d4d4c9 100644 --- a/templates/booking/modal_cancel.html.twig +++ b/templates/booking/create/modal_cancel.html.twig @@ -10,13 +10,13 @@
{% endblock %} diff --git a/templates/booking/edit/modal_cancel.html.twig b/templates/booking/edit/modal_cancel.html.twig index 5e7148e..fe621ec 100644 --- a/templates/booking/edit/modal_cancel.html.twig +++ b/templates/booking/edit/modal_cancel.html.twig @@ -10,13 +10,13 @@
{% endblock %}