package main // impactMetricsComponent renders a row of impact metrics with optional botanical illustration. templ impactMetricsComponent(data ImpactMetricsData) {
if data.Title != "" {

{ data.Title }

} if data.Illustration != "" {
} else if data.Title != "" || len(data.Metrics) > 0 {
@botanicalGlyph("fern", 64)
} if len(data.Metrics) > 0 {
for _, m := range data.Metrics {
{ m.Value }{ m.Suffix }
{ m.Label }
}
} else {

Add impact metrics to bring this section to life.

}
} // metricGridCols returns the responsive grid class for metric count. func metricGridCols(count int) string { switch count { case 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-2 lg:grid-cols-4" } } // resolveMedia rewrites a media reference to its served URL. The wave-1 // implementation passes the path through verbatim and is wired so admins // can drop in their own media adapter later without touching templates. func resolveMedia(path string) string { if path == "" { return "" } return path }