package main // cyberpunkCardComponent renders the override for the built-in card block: // dashed neon border, hover-lift with chromatic-aberration shadow. templ cyberpunkCardComponent(title, body, href, media string) { if href != "" { @cyberpunkCardInner(title, body, media) } else {
@cyberpunkCardInner(title, body, media)
} } // cyberpunkCardInner renders the shared card body markup. templ cyberpunkCardInner(title, body, media string) { if media != "" { } if title != "" {

{ title }

} if body != "" {
@templ.Raw(body)
} }