style: restyle the teamer cards and the login pages

This commit is contained in:
fromme committed 2026-11-12 11:13:30 +01:00
1 parent fa0ffcf636
commit ec3fd68695
9 files changed
+30 -38

No files matched your search

+3 -4
View File
@@ -2,10 +2,9 @@
{% block body %} {% block body %}
<div class="w-full h-screen flex flex-col items-center justify-center px-4"> <div class="w-full h-screen flex flex-col items-center justify-center px-4">
<div class="w-full max-w-md p-8 bg-gray-100 border border-gray-200 rounded-md"> <div class="card w-full max-w-md p-8 pt-10 shadow-[inset_0_8px_0_var(--color-brand)]">
<h1 class="flex items-center justify-between mb-6"> <h1 class="mb-8">
<img class="h-10 w-auto" src="{{ asset('build/images/logo.svg') }}" alt="My E&amp;P Team"> {% include '_partials/_brand.html.twig' %}
<span class="text-3xl md:text-4xl leading-none font-bold text-gray-900">E&amp;P Team</span>
</h1> </h1>
<h2 class="text-2xl font-bold mb-8"> <h2 class="text-2xl font-bold mb-8">
...ist vorübergehend außer Betrieb ...ist vorübergehend außer Betrieb
+10 -16
View File
@@ -2,41 +2,35 @@
{% block body %} {% block body %}
<div class="w-full h-screen flex flex-col items-center justify-center px-4"> <div class="w-full h-screen flex flex-col items-center justify-center px-4">
<div class="w-full max-w-md p-8 bg-gray-100 border border-gray-200 rounded-md"> <div class="card w-full max-w-md p-8 pt-10 shadow-[inset_0_8px_0_var(--color-brand)]">
<h1 class="flex items-center justify-between mb-6"> <h1 class="mb-8">
<img class="h-10 w-auto" src="{{ asset('build/images/logo.svg') }}" alt="E&amp;P Team"> {% include '_partials/_brand.html.twig' %}
<span class="text-3xl md:text-4xl leading-none font-bold text-gray-900">E&amp;P Team</span>
</h1> </h1>
{% if error %} {% if error %}
<div class="flex items-center space-x-1 bg-red-500 text-white p-2 rounded-md mb-6"> {% include '_partials/_alert.html.twig' with { type: 'warning', message: error.messageKey|trans(error.messageData, 'security') } %}
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" />
</svg>
<span class="flex-1 text-sm">{{ error.messageKey|trans(error.messageData, 'security') }}</span>
</div>
{% endif %} {% endif %}
<form action="{{ path('app_security_login') }}" method="post"> <form action="{{ path('app_security_login') }}" method="post">
<div class="mb-6"> <div class="mb-6">
<label for="username" class="block leading-6 text-gray-900"> <label for="username" class="block font-bold leading-6">
E-Mail: E-Mail:
</label> </label>
<input type="email" <input type="email"
id="username" id="username"
name="_username" name="_username"
value="{{ last_username }}" value="{{ last_username }}"
class="mt-2 block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary sm:text-sm sm:leading-6" class="mt-2 block w-full border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-slate-500 placeholder:text-slate-500 focus:ring-2 focus:ring-inset focus:ring-brand-bright sm:text-sm sm:leading-6"
required required
autofocus autofocus
autocomplete="username"> autocomplete="username">
</div> </div>
<div class="mb-6"> <div class="mb-6">
<label for="password" class="block leading-6 text-gray-900"> <label for="password" class="block font-bold leading-6">
Passwort: Passwort:
</label> </label>
<input type="password" <input type="password"
id="password" id="password"
name="_password" name="_password"
class="mt-2 block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary sm:text-sm sm:leading-6" class="mt-2 block w-full border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-slate-500 placeholder:text-slate-500 focus:ring-2 focus:ring-inset focus:ring-brand-bright sm:text-sm sm:leading-6"
required required
autocomplete="current-password"> autocomplete="current-password">
</div> </div>
@@ -47,11 +41,11 @@
</form> </form>
<div class="pt-4 flex space-x-4"> <div class="pt-4 flex space-x-4">
{% if feature('myep_login') %} {% if feature('myep_login') %}
<a href="{{ path('app_myep_auth_init') }}" class="text-sm underline"> <a href="{{ path('app_myep_auth_init') }}" class="text-sm font-bold text-brand underline underline-offset-2 hover:text-brand-dark">
Login mit MyE&amp;P Login mit MyE&amp;P
</a> </a>
{% endif %} {% endif %}
<a href="{{ path('app_security_password_reset') }}" class="text-sm underline"> <a href="{{ path('app_security_password_reset') }}" class="text-sm font-bold text-brand underline underline-offset-2 hover:text-brand-dark">
Passwort vergessen? Passwort vergessen?
</a> </a>
</div> </div>
+4 -5
View File
@@ -2,10 +2,9 @@
{% block body %} {% block body %}
<div class="w-full h-screen flex flex-col items-center justify-center px-4"> <div class="w-full h-screen flex flex-col items-center justify-center px-4">
<div class="w-full max-w-md p-8 bg-gray-100 border border-gray-200 rounded-md"> <div class="card w-full max-w-md p-8 pt-10 shadow-[inset_0_8px_0_var(--color-brand)]">
<h1 class="flex items-center justify-between mb-6"> <h1 class="mb-8">
<span class="text-3xl md:text-4xl leading-none font-bold text-gray-900">E&amp;P Team</span> {% include '_partials/_brand.html.twig' %}
<img class="h-10 w-auto" src="{{ asset('build/images/logo.svg') }}" alt="E&amp;P Team">
</h1> </h1>
{{ form_start(form) }} {{ form_start(form) }}
<div class="mb-6"> <div class="mb-6">
@@ -21,7 +20,7 @@
{{ form_rest(form) }} {{ form_rest(form) }}
{{ form_end(form) }} {{ form_end(form) }}
<div class="pt-4"> <div class="pt-4">
<a href="{{ path('app_security_login') }}" class="text-sm underline"> <a href="{{ path('app_security_login') }}" class="text-sm font-bold text-brand underline underline-offset-2 hover:text-brand-dark">
zurück zum Login zurück zum Login
</a> </a>
</div> </div>
@@ -7,7 +7,7 @@
Bewerbung Bewerbung
</h1> </h1>
<div class="grid lg:grid-cols-2 gap-8 items-start"> <div class="grid lg:grid-cols-2 gap-8 items-start">
<div class="bg-gray-100 rounded-md p-4"> <div class="card p-4">
{% include '_partials/_assignment_info.html.twig' %} {% include '_partials/_assignment_info.html.twig' %}
</div> </div>
<div> <div>
+2 -2
View File
@@ -9,11 +9,11 @@
<div class="grid sm:grid-cols-2 md:grid-cols-3 gap-4 pb-4"> <div class="grid sm:grid-cols-2 md:grid-cols-3 gap-4 pb-4">
{% for application in pagination %} {% for application in pagination %}
{% set assignment = application.assignment %} {% set assignment = application.assignment %}
<div class="relative flex flex-col justify-between rounded-md border border-gray-200 bg-gray-100 p-4"> <div class="card relative flex flex-col justify-between p-4">
<div class="flex flex-col space-y-2 pb-2"> <div class="flex flex-col space-y-2 pb-2">
<div class="flex items-start space-x-2"> <div class="flex items-start space-x-2">
{{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }} {{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }}
<span class="flex-1 font-bold">{{ assignment.destination.product }}</span> <span class="flex-1 font-bold text-brand">{{ assignment.destination.product }}</span>
</div> </div>
<div class="flex items-start space-x-2"> <div class="flex items-start space-x-2">
{{ icon('calendar', 'w-5 h-5 shrink-0') }} {{ icon('calendar', 'w-5 h-5 shrink-0') }}
+3 -3
View File
@@ -30,11 +30,11 @@
<div class="grid sm:grid-cols-2 md:grid-cols-3 gap-4 py-4"> <div class="grid sm:grid-cols-2 md:grid-cols-3 gap-4 py-4">
{% for assignment in pagination %} {% for assignment in pagination %}
<div class="relative flex flex-col justify-between rounded-md border border-gray-200 bg-gray-100 p-4"> <div class="card relative flex flex-col justify-between p-4">
<div class="flex flex-col space-y-2 pb-2"> <div class="flex flex-col space-y-2 pb-2">
<div class="flex items-start space-x-2"> <div class="flex items-start space-x-2">
{{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }} {{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }}
<span class="flex-1 font-bold">{{ assignment.destination.product }}</span> <span class="flex-1 font-bold text-brand">{{ assignment.destination.product }}</span>
</div> </div>
<div class="flex items-start space-x-2"> <div class="flex items-start space-x-2">
{{ icon('calendar', 'w-5 h-5 shrink-0') }} {{ icon('calendar', 'w-5 h-5 shrink-0') }}
@@ -91,7 +91,7 @@
<a href="{{ path('app_teamer_bookmark_toggle', { 'uuid': assignment.uuid, 'r': return_url() }) }}" <a href="{{ path('app_teamer_bookmark_toggle', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
class="absolute top-0 right-0 mt-2 mr-2" class="absolute top-0 right-0 mt-2 mr-2"
title="{{ isBookmarked ? 'Von der Merkliste löschen' : 'Auf die Merkliste setzen' }}"> title="{{ isBookmarked ? 'Von der Merkliste löschen' : 'Auf die Merkliste setzen' }}">
{{ icon('star', html_classes('w-5 h-5', { 'text-yellow-500': isBookmarked, 'text-gray-200': not isBookmarked } )) }} {{ icon('star', html_classes('w-5 h-5', { 'text-yellow-500': isBookmarked, 'text-gray-300': not isBookmarked } )) }}
</a> </a>
</div> </div>
{% else %} {% else %}
+3 -3
View File
@@ -8,11 +8,11 @@
</h1> </h1>
<div class="grid sm:grid-cols-2 md:grid-cols-3 gap-4 pb-4"> <div class="grid sm:grid-cols-2 md:grid-cols-3 gap-4 pb-4">
{% for assignment in pagination %} {% for assignment in pagination %}
<div class="relative flex flex-col justify-between rounded-md border border-gray-200 bg-gray-100 p-4"> <div class="card relative flex flex-col justify-between p-4">
<div class="flex flex-col space-y-2 pb-2"> <div class="flex flex-col space-y-2 pb-2">
<div class="flex items-start space-x-2"> <div class="flex items-start space-x-2">
{{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }} {{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }}
<span class="flex-1 font-bold">{{ assignment.destination.product }}</span> <span class="flex-1 font-bold text-brand">{{ assignment.destination.product }}</span>
</div> </div>
<div class="flex items-start space-x-2"> <div class="flex items-start space-x-2">
{{ icon('calendar', 'w-5 h-5 shrink-0') }} {{ icon('calendar', 'w-5 h-5 shrink-0') }}
@@ -62,7 +62,7 @@
<a href="{{ path('app_teamer_bookmark_toggle', { 'uuid': assignment.uuid, 'r': return_url() }) }}" <a href="{{ path('app_teamer_bookmark_toggle', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
class="absolute top-0 right-0 mt-2 mr-2" class="absolute top-0 right-0 mt-2 mr-2"
title="{{ isBookmarked ? 'Von der Merkliste löschen' : 'Auf die Merkliste setzen' }}"> title="{{ isBookmarked ? 'Von der Merkliste löschen' : 'Auf die Merkliste setzen' }}">
{{ icon('star', html_classes('w-5 h-5', { 'text-yellow-500': isBookmarked, 'text-gray-200': not isBookmarked } )) }} {{ icon('star', html_classes('w-5 h-5', { 'text-yellow-500': isBookmarked, 'text-gray-300': not isBookmarked } )) }}
</a> </a>
</div> </div>
{% else %} {% else %}
+2 -2
View File
@@ -1,9 +1,9 @@
{% set assignment = disposition.assignment %} {% set assignment = disposition.assignment %}
<div class="relative flex flex-col justify-between rounded-md border border-gray-200 bg-gray-100 p-4"> <div class="card relative flex flex-col justify-between p-4">
<div class="flex flex-col space-y-2 pb-2"> <div class="flex flex-col space-y-2 pb-2">
<div class="flex items-start space-x-2"> <div class="flex items-start space-x-2">
{{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }} {{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }}
<span class="flex-1 font-bold">{{ assignment.destination.product }}</span> <span class="flex-1 font-bold text-brand">{{ assignment.destination.product }}</span>
</div> </div>
<div class="flex items-start space-x-2"> <div class="flex items-start space-x-2">
{{ icon('calendar', 'w-5 h-5 shrink-0') }} {{ icon('calendar', 'w-5 h-5 shrink-0') }}
@@ -1,9 +1,9 @@
{# A season assignment among the upcoming dispositions. Linked only when it is the one the season {# A season assignment among the upcoming dispositions. Linked only when it is the one the season
page shows - that page resolves a single assignment and 404s for any other. #} page shows - that page resolves a single assignment and 404s for any other. #}
<div class="relative flex flex-col justify-between rounded-md border border-gray-200 bg-gray-100 p-4"> <div class="card relative flex flex-col justify-between p-4">
<div class="flex flex-col space-y-2 pb-2"> <div class="flex flex-col space-y-2 pb-2">
<div class="flex items-start space-x-2"> <div class="flex items-start space-x-2">
<span class="flex-1 font-bold">{{ seasonAssignment|season_assignment_label }}</span> <span class="flex-1 font-bold text-brand">{{ seasonAssignment|season_assignment_label }}</span>
{% include '_partials/_season_badge.html.twig' %} {% include '_partials/_season_badge.html.twig' %}
</div> </div>
<div class="flex items-start space-x-2"> <div class="flex items-start space-x-2">