From aa021e372e1392d5c95c9f3fdd157a3321e95322 Mon Sep 17 00:00:00 2001 From: Yoan Bernabeu Date: Tue, 31 Dec 2024 14:48:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20IMPROVE:=20Refactor=20poll=20sho?= =?UTF-8?q?w=20template=20for=20enhanced=20styling=20and=20user=20interact?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/poll/show.html.twig | 93 ++++++++++++++++++++++++----------- 1 file changed, 63 insertions(+), 30 deletions(-) diff --git a/templates/poll/show.html.twig b/templates/poll/show.html.twig index a7627ad..ec0c5ca 100644 --- a/templates/poll/show.html.twig +++ b/templates/poll/show.html.twig @@ -3,51 +3,84 @@ {% block title %}{{ poll.title }}{% endblock %} {% block body %} -
-
- {# Header Card combiné #} -
-
-
-

{{ poll.title }}

+
+
+ {# Header Card #} +
+
+
+

{{ poll.title }}

-
+ class="flex items-center gap-2 bg-base-200 px-4 py-2 rounded-full" + :class="{'ring ring-error ring-opacity-50': minutes === '00' && parseInt(seconds) <= 30}"> +
00:00
- remaining + remaining
- {# Options Card #} -
-
- {{ form_start(form) }} -
- {% for child in form.choice %} -