From 33b9b05e2fbb725fc6e6b224bc33e846357396fd Mon Sep 17 00:00:00 2001 From: soufiane Date: Fri, 5 Dec 2025 14:08:17 +0100 Subject: [PATCH] fix: simplify mobile navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove Inscription/Connexion buttons from hero on mobile - Simplify Participer button on mobile menu (direct link instead of dropdown) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/page.tsx | 15 ----------- components/Header.tsx | 58 ++++++------------------------------------- 2 files changed, 7 insertions(+), 66 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 0d9873e..8e047a7 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -78,21 +78,6 @@ export default function HomePage() { - {/* Boutons Inscription/Connexion pour mobile (non-authentifié) */} - {!isAuthenticated && ( -
- - - - - - -
- )} diff --git a/components/Header.tsx b/components/Header.tsx index fdb6827..0510fe6 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -256,57 +256,13 @@ export default function Header() { {/* Participer Mobile - Green Button */} - {isAuthenticated ? ( - setIsMobileMenuOpen(false)} - > - Participer - - ) : ( -
- - - {isParticiperDropdownOpen && ( -
- { - setIsMobileMenuOpen(false); - setIsParticiperDropdownOpen(false); - }} - className="block text-primary-800 hover:text-primary-900 font-medium py-2 px-3 bg-white rounded-md hover:bg-primary-100 transition-colors" - > - → Connexion - - { - setIsMobileMenuOpen(false); - setIsParticiperDropdownOpen(false); - }} - className="block text-primary-800 hover:text-primary-900 font-medium py-2 px-3 bg-white rounded-md hover:bg-primary-100 transition-colors" - > - → Inscription - -
- )} -
- )} + setIsMobileMenuOpen(false)} + > + Participer + {isAuthenticated && (