Skip to content

Commit

Permalink
Add hall of fame header
Browse files Browse the repository at this point in the history
  • Loading branch information
ger619 committed Apr 8, 2024
1 parent ae4569b commit 4e27806
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/views/hall_of_fames/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
<div class="p-6 bg-[#FAE115] font-bold uppercase lg:text-5xl md:text-4xl text-3xl flex justify-between">
Hall of Fame
<div>
<% if current_user %>
<%=link_to "Add News", new_news_path, class: "normal-case border-2 border-[#fff] hover:bg-[#fff] font-normal lg:text-2xl md:text-xl sm:text-sm sm:text-xl text-white hover:text-[#FAE115] p-2 rounded-full mb-2" %>
<%=link_to "Add Advert", new_advert_path, class: "normal-case border-2 border-[#fff] hover:bg-[#fff] font-normal lg:text-2xl md:text-xl sm:text-sm sm:text-xl text-white hover:text-[#FAE115] p-2 rounded-full mb-2" %>
<% end %>
</div>
</div>
<div class="w-full">
<% if notice.present? %>
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p>
<% end %>

<div class="flex justify-between items-center">
<h1 class="font-bold text-4xl">Hall of fames</h1>
<% if current_user %>
<%= link_to "New hall of fame", new_hall_of_fame_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %>
<% end %>
Expand Down

0 comments on commit 4e27806

Please sign in to comment.