package main // watercolorHeroComponent renders the watercolor hero with inline SVG blobs. // Path fill colors come from hsl(var(--primary)) / hsl(var(--accent)) so they // follow whatever preset is active. A scrim under the headline keeps text // readable when an image is provided. templ watercolorHeroComponent(data WatercolorHeroData) {
// Decorative watercolor blobs. Inline SVG so fills can reference theme tokens.
if data.Eyebrow != "" {

{ data.Eyebrow }

}

@templ.Raw(data.Headline)

if data.Body != "" {
@templ.Raw(data.Body)
} if data.CTAText != "" { { data.CTAText } }
if data.Image != "" {
} else { }
}