package main // statsGridColumns returns the tailwind grid-column class for n stats. func statsGridColumns(n int) string { switch n { case 0, 1: return "grid-cols-1" case 2: return "grid-cols-1 sm:grid-cols-2" case 3: return "grid-cols-1 sm:grid-cols-3" default: return "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4" } } // statsGlowComponent renders the cyberpunk:stats_glow block. templ statsGlowComponent(items []StatGlowItem) {
if len(items) == 0 {
{ "// add items to render stats" }
} else {
for _, stat := range items {
{ stat.Value } if stat.Suffix != "" { { stat.Suffix } }
{ stat.Label }
}
}
}