package web import ( "fmt" "github.com/a-h/templ" ) var timingColors = []string{"bg-ink/30", "bg-ink/45", "bg-ink/60", "bg-maintenance", "bg-up"} func timingColor(i int) string { return timingColors[i%len(timingColors)] } func widthStyle(percent float64) templ.SafeCSS { return templ.SafeCSS(fmt.Sprintf("width:%.2f%%", percent)) }