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.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 11s

This commit is contained in:
Julien Froidefond
2025-12-11 14:57:20 +01:00
parent bbdb7d6ad2
commit 2cfb9ad041
3 changed files with 18 additions and 4 deletions

View File

@@ -324,6 +324,11 @@ export default function EventsPageSection({
return (
<div
key={index}
onClick={() => {
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"
: ""
}`}
>
<div
@@ -659,11 +668,11 @@ export default function EventsPageSection({
)}
{/* Footer Info */}
<div className="mt-12 text-center">
{/* <div className="mt-12 text-center">
<p className="text-gray-500 text-sm">
Restez informé de nos derniers événements et annonces
</p>
</div>
</div> */}
</div>
{/* Event Modal */}