package main // mascotHeroComponent renders the mascot hero panel. templ mascotHeroComponent(data MascotHeroData) {
if data.Headline != "" {

{ data.Headline }

} else {

Welcome!

} if data.Tagline != "" {

{ data.Tagline }

} if data.CTALabel != "" && data.CTAHref != "" { }
@mascotSVG(data.Mascot)
} // mascotSVG renders a primitive, license-free mascot illustration. // The SVGs intentionally use `currentColor` (and the theme primary) so they // inherit colorways from the active preset. templ mascotSVG(name string) { switch name { case "blocks": A B C case "star": case "balloon": default: } }