From f6675bd5e4afb6a2336d7f182c9631bfe480978e Mon Sep 17 00:00:00 2001 From: Kevin BATAILLE Date: Thu, 28 Aug 2025 14:33:34 +0200 Subject: [PATCH] clean header --- .../stylesheets/application.postcss.css | 11 -- app/views/components/_auth_links.html.erb | 53 ------- app/views/components/_header.html.erb | 130 ------------------ app/views/components/_nav_links.html.erb | 6 - 4 files changed, 200 deletions(-) delete mode 100755 app/views/components/_auth_links.html.erb delete mode 100755 app/views/components/_nav_links.html.erb diff --git a/app/assets/stylesheets/application.postcss.css b/app/assets/stylesheets/application.postcss.css index 834b52c..384cd2f 100755 --- a/app/assets/stylesheets/application.postcss.css +++ b/app/assets/stylesheets/application.postcss.css @@ -3,18 +3,7 @@ /* Import Tailwind using PostCSS */ @import "tailwindcss"; -/* Import our custom theme */ -@import "theme"; -/* Import components */ -@import "components/hero"; -@import "components/flash"; -@import "components/footer"; -@import "components/event-finder"; -@import "components/header"; - -/* Import pages */ -@import "pages/home"; /* Base styles */ body { diff --git a/app/views/components/_auth_links.html.erb b/app/views/components/_auth_links.html.erb deleted file mode 100755 index df09d4c..0000000 --- a/app/views/components/_auth_links.html.erb +++ /dev/null @@ -1,53 +0,0 @@ -<% if user_signed_in? %> - - - -
-
- <% if current_user.first_name %> -
<%= current_user.first_name %>
- <% else %> -
<%= current_user.email.length > 20 ? current_user.email[0,20] + "..." : current_user.email %>
- <% end %> -
-
- <%= link_to t('header.profile'), edit_user_registration_path, class: "block px-3 py-2 rounded-md text-base font-medium text-neutral-100 hover:text-primary-200 hover:bg-primary-700" %> - <%= link_to t('header.reservations'), "#", class: "block px-3 py-2 rounded-md text-base font-medium text-neutral-100 hover:text-primary-200 hover:bg-primary-700" %> - <%= link_to t('header.logout'), 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-neutral-100 hover:text-primary-200 hover:bg-primary-700" %> -
-
-<% else %> - -
- <%= link_to t('header.login'), new_user_session_path, class: "text-neutral-100 hover:text-primary-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-primary-50 text-primary-600 font-medium py-2 px-4 rounded-lg shadow-sm hover:bg-primary-100 transition-all duration-200" %> -
- -
- <%= link_to t('header.register'), new_user_registration_path, class: "block px-3 py-2 rounded-md text-base font-medium text-neutral-100 hover:text-primary-200 hover:bg-primary-700" %> - <%= link_to t('header.login'), new_user_session_path, class: "block px-3 py-2 rounded-md text-base font-medium text-neutral-100 hover:text-primary-200 hover:bg-primary-700" %> -
-<% end %> \ No newline at end of file diff --git a/app/views/components/_header.html.erb b/app/views/components/_header.html.erb index 982d5bd..e69de29 100755 --- a/app/views/components/_header.html.erb +++ b/app/views/components/_header.html.erb @@ -1,130 +0,0 @@ -
-
- -
-
diff --git a/app/views/components/_nav_links.html.erb b/app/views/components/_nav_links.html.erb deleted file mode 100755 index ccba3a4..0000000 --- a/app/views/components/_nav_links.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<%= link_to "Évenements", events_path, - class: "text-neutral-100 hover:text-primary-200 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200" - %> -<%= link_to t('header.concerts'), "#" , - class: "text-neutral-100 hover:text-primary-200 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200" - %> \ No newline at end of file