diff --git a/assets/styles/components/button.css b/assets/styles/components/button.css index 02b8672..c8afba0 100644 --- a/assets/styles/components/button.css +++ b/assets/styles/components/button.css @@ -1,7 +1,7 @@ .button { @apply inline-flex items-center justify-center space-x-2 px-4 py-2 md:px-8 cursor-pointer; @apply uppercase leading-none text-center; - @apply transition-colors outline-none focus:outline-none; + @apply transition-colors outline-none focus:outline-2 focus:outline-offset-2 focus:outline-primary-light; } .button--small { @@ -13,14 +13,15 @@ } .bg-button { - @apply bg-primary-light text-white; - @apply hover:bg-secondary; + @apply bg-none bg-primary-dark text-white; + @apply hover:bg-badge-gradient; } .bg-button--active, .bg-button--secondary { - @apply bg-secondary; + @apply bg-badge-gradient; + @apply hover:bg-none hover:bg-pink; } .bg-button--muted { diff --git a/assets/styles/components/forms.css b/assets/styles/components/forms.css index 19d52c5..ebd5f09 100644 --- a/assets/styles/components/forms.css +++ b/assets/styles/components/forms.css @@ -4,7 +4,7 @@ label.required:after { } .form-field { - @apply border-zinc-400 focus:border-zinc-800 ring-0 focus:ring-0 mt-1 block w-full; + @apply border-zinc-400 focus:border-zinc-800 ring-0 focus:outline-2 focus:outline-offset-2 focus:outline-primary-light mt-1 block w-full; } .form-field--has-error { @@ -13,7 +13,7 @@ label.required:after { .form-checkbox, .form-radio { - @apply border-zinc-400 focus:border-zinc-800 ring-0 focus:ring-0 text-secondary h-4 w-4; + @apply border-zinc-400 focus:border-zinc-800 ring-0 focus:outline-2 focus:outline-offset-2 focus:outline-primary-light text-primary h-4 w-4; } .form-checkbox--has-error, diff --git a/assets/styles/components/menu.css b/assets/styles/components/menu.css index c0a27e9..ca8398e 100644 --- a/assets/styles/components/menu.css +++ b/assets/styles/components/menu.css @@ -1,11 +1,11 @@ .menu--main { - @apply flex items-center m-0; + @apply flex items-center m-0 divide-x divide-white; } .menu--main a { - @apply block p-2 md:p-4 text-black hover:bg-zinc-400 hover:text-zinc-800 text-sm md:text-base; + @apply block py-2 px-4 text-white hover:bg-secondary hover:text-zinc-800 text-sm md:text-base; } .menu--main .current a { - @apply bg-zinc-400 text-zinc-800; + @apply bg-secondary text-zinc-800; } \ No newline at end of file diff --git a/src/Menu/MenuBuilder.php b/src/Menu/MenuBuilder.php index 390fb48..0ff7485 100644 --- a/src/Menu/MenuBuilder.php +++ b/src/Menu/MenuBuilder.php @@ -23,14 +23,12 @@ class MenuBuilder $menu->addChild('Meine Daten', [ 'route' => 'app_personal_data', 'linkAttributes' => [ - 'title' => 'Persönliche Daten', 'data-action' => 'loading#toggle', ], ]); $menu->addChild('Meine Buchungen', [ 'route' => 'app_bookings', 'linkAttributes' => [ - 'title' => 'Meine Buchungen', 'data-action' => 'loading#toggle', ], 'extras' => [ @@ -42,7 +40,6 @@ class MenuBuilder $menu->addChild('Logout', [ 'route' => 'app_logout', 'linkAttributes' => [ - 'title' => 'Logout', 'data-action' => 'loading#toggle', ], ]); diff --git a/tailwind.config.js b/tailwind.config.js index dbd893f..5fe2b84 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -21,7 +21,7 @@ module.exports = { 'primary-light': '#0080ff', 'primary-medium': '#165883', 'primary-dark': '#18527b', - pink: '#960167', + pink: '#fa1a8c', }, backgroundImage: { 'badge-gradient': 'linear-gradient(120deg, rgba(150,1,103,1) 0%, rgba(158,3,106,1) 40%, rgba(250,26,140,1) 100%)', diff --git a/templates/booking/edit.html.twig b/templates/booking/edit.html.twig index c96acbe..dab627d 100644 --- a/templates/booking/edit.html.twig +++ b/templates/booking/edit.html.twig @@ -18,10 +18,13 @@ {% endif %} {% endfor %} {% endif %} +

+ Buchung bearbeiten +

-
+
Reisedaten @@ -29,9 +32,9 @@
-

+

Reise -

+ {{ bookingData.travel }}
@@ -120,7 +123,7 @@ {% do child.setRendered %} {% endif %}
-
+
Teilnehmer:in {{ participant.index }}: {{ participant.firstName }} {{ participant.lastName }} {% if participant.status == 'S' %} storniert{% endif %} @@ -160,22 +163,22 @@ } %}
{% endif %} -
+
{{ form_row(child.firstName) }} {{ form_row(child.lastName) }} {{ form_row(child.gender) }} {{ form_row(child.dateOfBirth) }} {{ form_row(child.nationality) }} -
-
+
+
{{ form_row(child.email) }} {{ form_row(child.mobile) }} - -
+
+
{{ form_row(child.height) }} {{ form_row(child.shoeSize) }} {{ form_row(child.weight) }} - +
{% if not travelData.participantDataMutable %}
{% endif %} @@ -191,7 +194,7 @@

Leistungen

-
+
{% if child.courses is defined %} {{ form_row(child.courses) }} {% endif %} @@ -207,7 +210,7 @@ {% if child.rentals is defined %} {{ form_row(child.rentals) }} {% endif %} -
+
{% if not travelData.additionalServicesMutable %}
{% endif %} @@ -216,7 +219,7 @@

Hin-/Rückreise

-
+
{{ form_row(child.transportationServiceTo) }} {% if child.pickup is defined %} @@ -226,7 +229,7 @@ {% endif %}
{{ form_row(child.transportationServiceFro) }} -
+
{% if not travelData.transportationServicesMutable %}
{% endif %} diff --git a/templates/booking/index.html.twig b/templates/booking/index.html.twig index 676557b..20ea033 100644 --- a/templates/booking/index.html.twig +++ b/templates/booking/index.html.twig @@ -1,32 +1,33 @@ {% extends 'layout.html.twig' %} {% block content %} -

+

Meine Buchungen -

+ {% include '_partials/_flashes.html.twig' %} - - - - - - - diff --git a/templates/forms.html.twig b/templates/forms.html.twig index 71728b0..a03c3a6 100644 --- a/templates/forms.html.twig +++ b/templates/forms.html.twig @@ -6,12 +6,23 @@ {%- if help is not empty -%} {%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%} {%- endif -%} - - {{- form_label(form) -}} - {{- form_widget(form, widget_attr) -}} - {{- form_errors(form) -}} - {{- form_help(form) -}} - + {%- if form.vars.expanded is defined and form.vars.expanded -%} + + + {{- form_label(form, null, {element: 'span'}) -}} + + {{- form_widget(form, widget_attr) -}} + {{- form_errors(form) -}} + {{- form_help(form) -}} + + {%- else -%} + + {{- form_label(form) -}} + {{- form_widget(form, widget_attr) -}} + {{- form_errors(form) -}} + {{- form_help(form) -}} + + {%- endif -%} {%- endblock form_row -%} {%- block form_label -%} @@ -95,17 +106,15 @@ {%- set tooltip = form.vars.attr.tooltip -%} {%- endif -%}
-
+
{% endblock %} diff --git a/templates/layout.html.twig b/templates/layout.html.twig index 69e1d3c..e7e8d4a 100644 --- a/templates/layout.html.twig +++ b/templates/layout.html.twig @@ -3,11 +3,11 @@ {% block body %}
-
+
{% if is_granted('ROLE_USER') %} diff --git a/templates/personal_data/index.html.twig b/templates/personal_data/index.html.twig index 5b12b68..546414e 100644 --- a/templates/personal_data/index.html.twig +++ b/templates/personal_data/index.html.twig @@ -10,44 +10,44 @@ Speichern
-

+

Persönliche Daten -

+
-

+

Vorname -

+

{{ personalData.firstName }}
-

+

Nachname -

+

{{ personalData.name }}
-

+

Gender -

+

{{ personalData.gender|map_gender }}
-

+

Geburtsdatum -

+

{{ personalData.dateOfBirth|date('d.m.Y') }}
-

+

Nationaliät -

+

{{ personalData.nationality|map_nationality|default('-') }}
-

+

Anschrift -

+
{{ form_row(personalDataForm.street) }} @@ -56,9 +56,9 @@ {{ form_row(personalDataForm.city) }} {{ form_row(personalDataForm.country) }}
-

+

Kontakt -

+
{{ form_row(personalDataForm.email) }} diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig index 41ac0d8..74d0d7a 100644 --- a/templates/security/login.html.twig +++ b/templates/security/login.html.twig @@ -70,7 +70,7 @@

Ein LogIn ist nur möglich wenn Eure Daten schon durch eine Buchung oder Anfrage bei uns angelegt wurden. Wenn Ihr auch Kunde werden möchtet, dann schickt uns Eure Interessen über unser - Kontaktformular. + Kontaktformular.

+ Reise + Reisedatum + Buchungsnummer + Reisepreis + offen + Status + + Aktionen