package main // scifiHeadingBaseClass returns level-specific tracking + weight classes. func scifiHeadingBaseClass(level int) string { switch level { case 1: return "scifi-h1 text-4xl md:text-5xl font-medium tracking-tight" case 2: return "scifi-h2 text-3xl font-medium tracking-tight" case 3: return "scifi-h3 text-2xl font-medium" case 4: return "scifi-h4 text-xl font-medium" case 5: return "scifi-h4 text-lg font-medium" case 6: return "scifi-h4 text-base font-medium uppercase tracking-widest" default: return "scifi-h2 text-3xl font-medium tracking-tight" } } // scifiHeadingComponent renders a heading with an optional mono kicker rail. templ scifiHeadingComponent(level int, text, textClass, kicker string) {
if kicker != "" {
{ kicker }
} switch level { case 1:

{ text }

case 2:

{ text }

case 3:

{ text }

case 4:

{ text }

case 5:
{ text }
case 6:
{ text }
default:

{ text }

}
}