package main // bigCTAComponent renders the oversized pill CTA. templ bigCTAComponent(data BigCTAData) {
if data.Label != "" { { data.Label } } else { Add a label and link to publish this call-to-action. }
} // ctaColorClass picks the modifier class for the four-color CTA variants. func ctaColorClass(variant string) string { switch variant { case "red": return "kg-pill-red" case "blue": return "kg-pill-blue" case "green": return "kg-pill-green" default: return "kg-pill-yellow" } }