Files
baclight/app/views/employers/index.html.erb
T

21 lines
1.3 KiB
Plaintext
Raw Normal View History

<div class="bg-deepcove h-full w-full flex flex-col justify-start">
<h1 class="font-bold text-4xl text-platinum my-5">Employers</h1>
<% plan_colors = EmployerSetupPlansForm::PLAN_COLORS.push('copper', 'bronze').shuffle %>
<h2 class="font-bold text-3xl text-platinum my-5">In Process:</h2>
<% @employers.inactive.each_with_index do |es, index| %>
<% item_color_index = index == 0 ? 0 : index % plan_colors.length %>
<div class="w-1/2 flex text-2xl text-platinum font-bold px-4 py-4 ml-10 rounded-lg border-l-5 border-b-2 <%= "border-#{plan_colors[item_color_index]}" %>">
<%= link_to es.name, employer_path(es.slug), class: "hover:text-atmosphere" %>
</div>
<% end %>
<div class="w-1/2 flex text-2xl text-limegreen font-bold px-4 py-4 ml-10 rounded-lg border-l-5 border-b-2 border-platinum">
<%= link_to "New Employer", new_employer_path, class: "hover:text-verdigris" %>
</div>
<h2 class="font-bold text-3xl text-platinum my-5">Live:</h2>
<% @employers.active.each_with_index do |es, index| %>
<% item_color_index = index == 0 ? 0 : index % plan_colors.length %>
<div class="w-1/2 flex text-2xl text-platinum font-bold px-4 py-4 ml-10 rounded-lg border-l-5 border-b-2 <%= "border-#{plan_colors[item_color_index]}" %>">
<%= link_to es.name, employer_path(es.slug), class: "hover:text-atmosphere" %>
</div>
<% end %>
</div>