diff --git a/app/views/static_pages/_activity_graph.html.erb b/app/views/static_pages/_activity_graph.html.erb index 52a58d6..a18d748 100644 --- a/app/views/static_pages/_activity_graph.html.erb +++ b/app/views/static_pages/_activity_graph.html.erb @@ -9,15 +9,15 @@ <% bg_class = "bg-[#151b23]" %> <% else %> <% ratio = duration.to_f / length_of_busiest_day %> - <% level, bg_class = + <% bg_class = if ratio >= 0.8 - [4, "bg-[#56d364]"] + "bg-[#56d364]" elsif ratio >= 0.5 - [3, "bg-[#2ea043]"] + "bg-[#2ea043]" elsif ratio >= 0.2 - [2, "bg-[#196c2e]"] + "bg-[#196c2e]" else - [1, "bg-[#033a16]"] + "bg-[#033a16]" end %> <% end %>