package main // featuresComponent renders a Gotham-styled feature cards grid. templ featuresComponent(data FeaturesData) {
if data.SectionTitle != "" {

{ data.SectionTitle }

}
for _, feature := range data.Features {
if feature.Icon != "" {
@iconSVG(feature.Icon)
}

{ feature.Title }

if feature.Description != "" {

{ feature.Description }

}
}
} // featureGridCols returns the appropriate grid column class. func featureGridCols(cols int) string { switch cols { case 1: return "grid-cols-1" case 2: return "grid-cols-1 md:grid-cols-2" case 4: return "grid-cols-1 md:grid-cols-2 lg:grid-cols-4" default: return "grid-cols-1 md:grid-cols-2 lg:grid-cols-3" } }