mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
we dont even need that johnson anymore
This commit is contained in:
@@ -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 %>
|
||||
<a class="day transition-all duration-75 w-3 h-3 rounded-sm hover:scale-110 hover:z-10 hover:shadow-md <%= bg_class %>"
|
||||
|
||||
Reference in New Issue
Block a user