Update all views to use new design system components and styling

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
kbe
2025-09-08 17:59:12 +02:00
parent 569303b631
commit 9be7a01d93
39 changed files with 1068 additions and 5127 deletions

View File

@@ -1,40 +1,92 @@
<div class="grid gap-6 mb-6 md:grid-cols-2 lg:grid-cols-4">
<div class="grid gap-8 mb-8 md:grid-cols-2 lg:grid-cols-4">
<div>
<h3 class="font-bold text-lg text-white mb-3">À propos</h3>
<ul class="space-y-2">
<li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Je suis organisateur</a></li>
<%# <li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Pour les artistes</a></li> %>
<%# <li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Kit presse</a></li> %>
<%# <li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Artistes</a></li> %>
<h3 class="font-bold text-lg text-white mb-4 flex items-center">
<i data-lucide="info" class="w-5 h-5 mr-2 text-yellow-400"></i>
À propos
</h3>
<ul class="space-y-3">
<li><a href="#" class="text-gray-400 text-sm hover:text-yellow-400 transition-colors duration-300 flex items-center">
<i data-lucide="briefcase" class="w-4 h-4 mr-2"></i>
Je suis organisateur
</a></li>
<li><a href="#" class="text-gray-400 text-sm hover:text-yellow-400 transition-colors duration-300 flex items-center">
<i data-lucide="users" class="w-4 h-4 mr-2"></i>
Communauté
</a></li>
</ul>
</div>
<div>
<h3 class="font-bold text-lg text-white mb-3">Villes</h3>
<ul class="space-y-2">
<li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Paris</a></li>
<%# <li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Lyon</a></li> %>
<%# <li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Marseille / Aix-en-Provence</a></li> %>
<%# <li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Toulouse</a></li> %>
<h3 class="font-bold text-lg text-white mb-4 flex items-center">
<i data-lucide="map-pin" class="w-5 h-5 mr-2 text-yellow-400"></i>
Villes
</h3>
<ul class="space-y-3">
<li><a href="#" class="text-gray-400 text-sm hover:text-yellow-400 transition-colors duration-300 flex items-center">
<i data-lucide="map" class="w-4 h-4 mr-2"></i>
Paris
</a></li>
<li><a href="#" class="text-gray-400 text-sm hover:text-yellow-400 transition-colors duration-300 flex items-center">
<i data-lucide="map" class="w-4 h-4 mr-2"></i>
Lyon (bientôt)
</a></li>
</ul>
</div>
<%# <div>
<h3 class="font-bold text-lg text-white mb-3">Organisateurs</h3>
<ul class="space-y-2">
<li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Help Center</a></li>
<li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Contact Us</a></li>
<li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Safety Guidelines</a></li>
<li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Cancellation Policy</a></li>
</ul>
</div> %>
<div>
<h3 class="font-bold text-lg text-white mb-3">Support</h3>
<ul class="space-y-2">
<li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Aide</a></li>
<li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Nous contacter</a></li>
<li><a href="#" class="text-neutral-400 text-sm hover:text-accent-400 transition-colors duration-300">Signaler un contenu inapproprié</a></li>
<h3 class="font-bold text-lg text-white mb-4 flex items-center">
<i data-lucide="calendar" class="w-5 h-5 mr-2 text-yellow-400"></i>
Événements
</h3>
<ul class="space-y-3">
<li><a href="<%= events_path %>" class="text-gray-400 text-sm hover:text-yellow-400 transition-colors duration-300 flex items-center">
<i data-lucide="glass-water" class="w-4 h-4 mr-2"></i>
Afterworks
</a></li>
<li><a href="#" class="text-gray-400 text-sm hover:text-yellow-400 transition-colors duration-300 flex items-center">
<i data-lucide="music" class="w-4 h-4 mr-2"></i>
Concerts
</a></li>
</ul>
</div>
<div>
<h3 class="font-bold text-lg text-white mb-4 flex items-center">
<i data-lucide="help-circle" class="w-5 h-5 mr-2 text-yellow-400"></i>
Support
</h3>
<ul class="space-y-3">
<li><a href="#" class="text-gray-400 text-sm hover:text-yellow-400 transition-colors duration-300 flex items-center">
<i data-lucide="life-buoy" class="w-4 h-4 mr-2"></i>
Aide
</a></li>
<li><a href="#" class="text-gray-400 text-sm hover:text-yellow-400 transition-colors duration-300 flex items-center">
<i data-lucide="mail" class="w-4 h-4 mr-2"></i>
Nous contacter
</a></li>
<li><a href="#" class="text-gray-400 text-sm hover:text-yellow-400 transition-colors duration-300 flex items-center">
<i data-lucide="flag" class="w-4 h-4 mr-2"></i>
Signaler un contenu
</a></li>
</ul>
</div>
</div>
<div class="border-t border-neutral-700 pt-4 text-center text-neutral-400 text-sm">
<p>&copy; 2025 Aperonight. All rights reserved. • <a href="#" class="text-accent-400 hover:text-accent-300 transition-colors">Privacy Policy</a> • <a href="#" class="text-accent-400 hover:text-accent-300 transition-colors">Terms of Service</a></p>
<div class="border-t border-gray-700 pt-6 text-center">
<div class="flex flex-col sm:flex-row justify-between items-center">
<p class="text-gray-400 text-sm mb-4 sm:mb-0">
&copy; 2025 Aperonight. Tous droits réservés.
</p>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-yellow-400 transition-colors text-sm">
Politique de confidentialité
</a>
<a href="#" class="text-gray-400 hover:text-yellow-400 transition-colors text-sm">
Conditions d'utilisation
</a>
<a href="#" class="text-gray-400 hover:text-yellow-400 transition-colors text-sm">
Mentions légales
</a>
</div>
</div>
</div>

View File

@@ -1,22 +1,28 @@
<header class="bg-neutral-800 border-b border-neutral-700">
<header class="bg-white shadow-lg border-b border-gray-200 sticky top-0 z-50">
<nav data-controller="header" class="container mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center h-16 justify-between">
<!-- Logo -->
<div class="flex-shrink-0 flex items-center">
<%= link_to Rails.application.config.app_name, current_user ? "/dashboard" : "/",
class: "text-xl font-bold text-white" %>
class: "text-2xl font-display font-bold text-gray-900 hover:text-brand-primary transition-colors" %>
</div>
<!-- Desktop Navigation -->
<div class="hidden sm:flex items-center space-x-6 w-full justify-start">
<%= link_to "Afterworks", events_path,
class: "mx-4 text-gray-100 hover:text-purple-200 py-2 rounded-md text-sm font-medium transition-colors duration-200" %>
<div class="hidden sm:flex items-center space-x-8 w-full justify-center">
<%= link_to events_path,
class: "text-gray-700 hover:text-brand-primary py-2 text-sm font-medium transition-colors duration-200 relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 hover:after:w-full after:bg-brand-primary after:transition-all after:duration-200" do %>
Événements
<% end %>
<%= link_to venements", "#",
class: "mx-4 text-gray-100 hover:text-purple-200 py-2 rounded-md text-sm font-medium transition-colors duration-200" %>
<%= link_to events_path,
class: "text-gray-700 hover:text-brand-primary py-2 text-sm font-medium transition-colors duration-200 relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 hover:after:w-full after:bg-brand-primary after:transition-all after:duration-200" do %>
Afterworks
<% end %>
<%= link_to "Concerts", "#",
class: "mx-4 text-gray-100 hover:text-purple-200 py-2 rounded-md text-sm font-medium transition-colors duration-200" %>
<%= link_to "#",
class: "text-gray-700 hover:text-brand-primary py-2 text-sm font-medium transition-colors duration-200 relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 hover:after:w-full after:bg-brand-primary after:transition-all after:duration-200" do %>
Concerts
<% end %>
</div>
<!-- Authentication -->
@@ -24,87 +30,119 @@
<% if user_signed_in? %>
<div class="relative" data-header-target="userMenuButton">
<button data-action="click->header#toggleUserMenu"
class="bg-purple-700 text-white border border-purple-800 font-medium py-2 px-4 rounded-lg hover:bg-purple-800 transition-colors duration-200 flex items-center space-x-2">
class="bg-gray-900 text-white font-medium py-2 px-4 rounded-full hover:bg-gray-800 transition-colors duration-200 flex items-center space-x-2">
<span><%= current_user.email.length > 20 ? current_user.email[0,20] + "..." : current_user.email %></span>
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
<i data-lucide="chevron-down" class="w-4 h-4"></i>
</button>
<!-- User Dropdown Menu -->
<div data-header-target="userMenu" class="hidden absolute right-0 mt-2 w-56 bg-white rounded-lg shadow-lg border border-gray-200 py-1 z-50">
<div class="px-4 py-2 text-sm text-gray-900 border-b border-gray-100">
<div class="font-medium"><%= current_user.first_name || current_user.email %></div>
<div data-header-target="userMenu" class="hidden absolute right-0 mt-2 w-56 bg-white rounded-2xl shadow-xl border border-gray-100 py-2 z-50">
<div class="px-4 py-3 text-sm text-gray-900 border-b border-gray-100">
<div class="font-semibold"><%= current_user.first_name || current_user.email %></div>
<div class="text-gray-500"><%= current_user.email %></div>
</div>
<%= link_to "Reservations", "#",
class: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 transition-colors duration-200" %>
<%= link_to "#",
class: "flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 transition-colors duration-200" do %>
<i data-lucide="calendar" class="w-4 h-4 mr-3"></i>
Réservations
<% end %>
<%= link_to edit_user_registration_path,
class: "flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 transition-colors duration-200" do %>
<i data-lucide="settings" class="w-4 h-4 mr-3"></i>
Sécurité
<% end %>
<div class="border-t border-gray-100">
<%= link_to "Sécurité", edit_user_registration_path,
class: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 transition-colors duration-200" %>
</div>
<div class="border-t border-gray-100">
<%= link_to "Sign out", destroy_user_session_path,
<%= link_to destroy_user_session_path,
data: { controller: "logout", action: "click->logout#signOut", logout_url_value: destroy_user_session_path, login_url_value: new_user_session_path, turbo: false },
class: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 transition-colors duration-200" %>
class: "flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 transition-colors duration-200" do %>
<i data-lucide="log-out" class="w-4 h-4 mr-3"></i>
Déconnexion
<% end %>
</div>
</div>
</div>
<% else %>
<%= link_to t("header.login"), new_user_session_path,
class: "text-gray-100 hover:text-purple-200 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200" %>
<%= link_to t("header.register"), new_user_registration_path,
class: "bg-purple-600 text-white font-medium py-2 px-4 rounded-lg hover:bg-purple-700 transition-colors duration-200" %>
<%= link_to new_user_session_path,
class: "text-gray-700 hover:text-brand-primary px-4 py-2 rounded-full text-sm font-medium transition-colors duration-200" do %>
Se connecter
<% end %>
<%= link_to new_user_registration_path,
class: "bg-gray-900 text-white font-semibold py-2 px-6 rounded-full hover:bg-gray-800 transition-colors duration-200 shadow-lg hover:shadow-xl" do %>
S'inscrire
<% end %>
<% end %>
</div>
<!-- Mobile menu button -->
<div class="flex-shrink-0 sm:hidden">
<button data-action="click->header#toggleMobileMenu" data-header-target="mobileMenuButton" class="p-2 rounded-md text-neutral-300 hover:text-white hover:bg-purple-700">
<svg data-menu-icon="open" class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
<svg data-menu-icon="close" class="h-6 w-6 hidden" stroke="currentColor" fill="none" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
<button data-action="click->header#toggleMobileMenu" data-header-target="mobileMenuButton" class="p-2 rounded-lg text-gray-600 hover:text-gray-900 hover:bg-gray-100">
<i data-menu-icon="open" data-lucide="menu" class="w-6 h-6"></i>
<i data-menu-icon="close" data-lucide="x" class="w-6 h-6 hidden"></i>
</button>
</div>
</div>
<!-- Mobile Menu -->
<div data-header-target="mobileMenu" class="hidden sm:hidden">
<div class="px-2 pt-2 pb-3 space-y-1">
<%= link_to t("header.parties"), events_path,
class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %>
<%= link_to t("header.concerts"), "#",
class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %>
<div data-header-target="mobileMenu" class="hidden sm:hidden border-t border-gray-200">
<div class="px-4 pt-4 pb-3 space-y-2">
<%= link_to events_path,
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
<i data-lucide="calendar" class="w-4 h-4 mr-3"></i>
Événements
<% end %>
<%= link_to events_path,
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
<i data-lucide="glass-water" class="w-4 h-4 mr-3"></i>
Afterworks
<% end %>
<%= link_to "#",
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
<i data-lucide="music" class="w-4 h-4 mr-3"></i>
Concerts
<% end %>
</div>
<div class="pt-4 pb-3 border-t border-gray-700">
<div class="pt-4 pb-4 border-t border-gray-200">
<% if user_signed_in? %>
<div class="px-4 mb-3">
<div class="text-base font-medium text-white">
<div class="text-base font-semibold text-gray-900">
<%= current_user.first_name || current_user.email %>
</div>
<div class="text-sm text-gray-500"><%= current_user.email %></div>
</div>
<div class="px-2 space-y-1">
<%= link_to "Réservations", "#",
class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %>
<%= link_to "Sécurité", edit_user_registration_path,
class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %>
<%= link_to "Déconnexion", destroy_user_session_path,
<div class="px-4 space-y-2">
<%= link_to "#",
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
<i data-lucide="calendar" class="w-4 h-4 mr-3"></i>
Réservations
<% end %>
<%= link_to edit_user_registration_path,
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
<i data-lucide="settings" class="w-4 h-4 mr-3"></i>
Sécurité
<% end %>
<%= link_to destroy_user_session_path,
data: { controller: "logout", action: "click->logout#signOut", logout_url_value: destroy_user_session_path, login_url_value: new_user_session_path, turbo: false },
class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %>
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
<i data-lucide="log-out" class="w-4 h-4 mr-3"></i>
Déconnexion
<% end %>
</div>
<% else %>
<div class="px-2 space-y-1">
<%= link_to t("header.login"), new_user_session_path,
class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %>
<%= link_to t("header.register"), new_user_registration_path,
class: "block px-3 py-2 rounded-md text-base font-medium bg-purple-600 text-white hover:bg-purple-700" %>
<div class="px-4 space-y-2">
<%= link_to new_user_session_path,
class: "flex items-center justify-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
<i data-lucide="log-in" class="w-4 h-4 mr-3"></i>
Se connecter
<% end %>
<%= link_to new_user_registration_path,
class: "flex items-center justify-center px-3 py-2 rounded-lg text-base font-semibold bg-gray-900 text-white hover:bg-gray-800" do %>
<i data-lucide="user-plus" class="w-4 h-4 mr-3"></i>
S'inscrire
<% end %>
</div>
<% end %>
</div>
</div>
</nav>
</header>
</header>

View File

@@ -16,16 +16,12 @@
<div class="<%= 'order-2 sm:order-1' unless sold_out %>">
<% if sold_out %>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">
<svg class="-ml-0.5 mr-1 h-2 w-2 text-red-400" fill="currentColor" viewBox="0 0 8 8">
<circle cx="4" cy="4" r="3" />
</svg>
<i data-lucide="x" class="w-2 h-2 mr-1 text-red-400"></i>
Épuisé
</span>
<% else %>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
<svg class="-ml-0.5 mr-1 h-2 w-2 text-green-400" fill="currentColor" viewBox="0 0 8 8">
<circle cx="4" cy="4" r="3" />
</svg>
<i data-lucide="check-circle" class="w-2 h-2 mr-1 text-green-400"></i>
<%= remaining %> disponibles
</span>
<% end %>
@@ -59,12 +55,10 @@
</div>
<% else %>
<div class="text-sm text-gray-500 font-medium order-1 sm:order-2">
<svg class="w-5 h-5 inline-block mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path>
</svg>
<i data-lucide="lock" class="w-5 h-5 inline-block mr-1"></i>
Indisponible
</div>
<% end %>
</div>
</div>
</div>
</div>