From 2cfb9ad0411aea7cfd4db2422a679c52c4217029 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Thu, 11 Dec 2025 14:57:20 +0100 Subject: [PATCH] Enhance EventsPageSection and Navigation components: Add click functionality to select events and update logo section to be a clickable link, improving user interaction and navigation experience. --- components/EventsPageSection.tsx | 13 +++++++++++-- components/Navigation.tsx | 7 +++++-- .../20251210060319_add_event_feedback/migration.sql | 2 ++ 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 prisma/migrations/20251210060319_add_event_feedback/migration.sql diff --git a/components/EventsPageSection.tsx b/components/EventsPageSection.tsx index 63605a3..ca0c994 100644 --- a/components/EventsPageSection.tsx +++ b/components/EventsPageSection.tsx @@ -324,6 +324,11 @@ export default function EventsPageSection({ return (
{ + if (hasEvents && dayEvents.length > 0) { + setSelectedEvent(dayEvents[0]); + } + }} className={`aspect-square border rounded flex flex-col items-center justify-center relative ${ isToday ? "bg-pixel-gold/30 border-pixel-gold/70 border-2" @@ -338,6 +343,10 @@ export default function EventsPageSection({ : hasUpcoming ? "ring-green-500/50" : "" + } ${ + hasEvents + ? "cursor-pointer hover:opacity-80 transition-opacity" + : "" }`} >
+ {/*

Restez informé de nos derniers événements et annonces

-
+
*/}
{/* Event Modal */} diff --git a/components/Navigation.tsx b/components/Navigation.tsx index 3c78b80..2a9106b 100644 --- a/components/Navigation.tsx +++ b/components/Navigation.tsx @@ -44,7 +44,10 @@ export default function Navigation({