diff --git a/app/views/components/_header.html.erb b/app/views/components/_header.html.erb index 329b0bb..5c87f7e 100644 --- a/app/views/components/_header.html.erb +++ b/app/views/components/_header.html.erb @@ -1,118 +1,122 @@ - - - - - - - - <%= link_to Rails.application.config.app_name, "/", class: "text-xl font-bold text-white" %> - + + + + + + + + + + <%= link_to Rails.application.config.app_name, "/", class: "text-xl font-bold text-white" %> + - - - <%= link_to "Soirées et afterworks", "#", class: "text-white hover:text-purple-200 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200" %> - <%= link_to "Concerts", "#", class: "text-white hover:text-purple-200 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200" %> - - - - - <% if user_signed_in? %> - - - - - - <%= current_user.email %> - - - - + + + <%= link_to "Soirées et afterworks", "#", class: "text-white hover:text-purple-200 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200" %> + <%= link_to "Concerts", "#", class: "text-white hover:text-purple-200 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200" %> - - - - <%= link_to "Mon profil", edit_user_registration_path, class: "block w-full px-4 py-2 text-start text-sm leading-5 text-white hover:bg-purple-700" %> - <%= link_to "Mes réservations", "#", class: "block w-full px-4 py-2 text-start text-sm leading-5 text-white hover:bg-purple-700" %> + + <% if user_signed_in? %> + + + + + + <%= current_user.email %> + + + + + + + + + + + <%= link_to "Mon profil", edit_user_registration_path, class: "block w-full px-4 py-2 text-start text-sm leading-5 text-white hover:bg-purple-700" %> + <%= link_to "Mes réservations", "#", class: "block w-full px-4 py-2 text-start text-sm leading-5 text-white hover:bg-purple-700" %> + + <%= link_to "Déconnexion", 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 w-full px-4 py-2 text-start text-sm leading-5 text-white hover:bg-purple-700" %> + + + + + <% else %> + + + <%= link_to "S'inscrire", new_user_registration_path, class: "text-white hover:text-purple-200 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200" %> + <%= link_to "Se connecter", new_user_session_path, class: "bg-white text-purple-600 font-medium py-2 px-4 rounded-lg shadow-sm hover:bg-purple-100 transition-all duration-200" %> + + <% end %> + + + + + + + + + + + + + + + + + <%= link_to "Soirées et afterworks", "#", class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> + <%= link_to "Concerts", "#", class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> + + + + + <% if user_signed_in? %> + + <%= current_user.email %> + <%= current_user.email %> + + + + <%= link_to "Mon profil", edit_user_registration_path, class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> + <%= link_to "Mes réservations", "#", class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> <%= link_to "Déconnexion", 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 + controller: "logout", + action: "click->logout#signOut", + logout_url_value: destroy_user_session_path, + login_url_value: new_user_session_path, + turbo: false }, - class: "block w-full px-4 py-2 text-start text-sm leading-5 text-white hover:bg-purple-700" %> + class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> - + <% else %> + + <%= link_to "S'inscrire", new_user_registration_path, class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> + <%= link_to "Se connecter", new_user_session_path, class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> + + <% end %> - <% else %> - - - <%= link_to "S'inscrire", new_user_registration_path, class: "text-white hover:text-purple-200 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200" %> - <%= link_to "Se connecter", new_user_session_path, class: "bg-white text-purple-600 font-medium py-2 px-4 rounded-lg shadow-sm hover:bg-purple-100 transition-all duration-200" %> - - <% end %> - - - - - - - - - - + - - - - - - <%= link_to "Soirées et afterworks", "#", class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> - <%= link_to "Concerts", "#", class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> - - - - - <% if user_signed_in? %> - - <%= current_user.email %> - <%= current_user.email %> - - - - <%= link_to "Mon profil", edit_user_registration_path, class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> - <%= link_to "Mes réservations", "#", class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> - - <%= link_to "Déconnexion", 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-white hover:text-purple-200 hover:bg-purple-700" %> - - <% else %> - - <%= link_to "S'inscrire", new_user_registration_path, class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> - <%= link_to "Se connecter", new_user_session_path, class: "block px-3 py-2 rounded-md text-base font-medium text-white hover:text-purple-200 hover:bg-purple-700" %> - - <% end %> - - - + diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 71f7476..c78f65a 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -25,11 +25,7 @@ - - - <%= render "components/header" %> - - + <%= render "components/header" %> <%= yield %> diff --git a/app/views/pages/home.html.erb b/app/views/pages/home.html.erb index 032ca65..6dc15b2 100644 --- a/app/views/pages/home.html.erb +++ b/app/views/pages/home.html.erb @@ -1,5 +1,5 @@ - + @@ -88,21 +88,21 @@ Taux de remplissage - + 0 Arrondissements - + 0 Établissements partenaires - + 0% @@ -118,13 +118,13 @@ Trouvez votre prochaine soirée - + Quand ? - + Type d'événement @@ -135,7 +135,7 @@ Événements VIP - + Genre musical @@ -147,7 +147,7 @@ Électro - + Rechercher
Taux de remplissage
Arrondissements
Établissements partenaires