Improve opacity on the software list again
Some checks failed
Deploy / Deploy Website (push) Failing after 31s

This commit is contained in:
Joshua Goins 2025-04-12 18:42:55 -04:00
parent 7ff52707cd
commit db5c13d388

View file

@ -91,11 +91,11 @@
{{ range .Data.Pages.ByDate.Reverse }} {{ range .Data.Pages.ByDate.Reverse }}
<div class="blurb"> <div class="blurb">
{{ $since_year := (sub now.Year (.Date.Year)) }} {{ $since_year := (sub now.Year (.Date.Year)) }}
{{ $zero_to_one := math.Div (float $since_year) 8.0 }} {{ $zero_to_one := math.Div (float $since_year) 6.0 }}
{{ $opacity := math.Sub 1.0 $zero_to_one }} {{ $opacity := math.Sub 1.0 $zero_to_one }}
{{ $opacity = math.Max $opacity 0.0 }} {{ $opacity = math.Max $opacity 0.0 }}
{{ $opacity_percentage := 0.0 }} {{ $opacity_percentage := 0.0 }}
{{ if gt $opacity 0.5 }} {{ if gt $opacity 0.49 }}
{{ $opacity_percentage = 100.0 }} {{ $opacity_percentage = 100.0 }}
{{ end }} {{ end }}