33 * Hero Content Column - Default Variant
44 */
55import Sprite from ' @components/Sprite/index.astro'
6- import type { ContentProps as Props } from ' @components/Hero/@types/content'
76
8- export type { Props }
7+ export interface Props {
8+ pretitle? : string
9+ title? : string
10+ benefits? : Array <{
11+ text: string
12+ highlight: string
13+ }>
14+ primaryLink? : {
15+ href: string
16+ text: string
17+ }
18+ secondaryLink? : {
19+ href: string
20+ text: string
21+ }
22+ }
923
10- const { pretitle, title, benefits, primaryLink, secondaryLink } = Astro .props
24+ const { pretitle, title, benefits, primaryLink, secondaryLink } = Astro .props as Props
1125---
1226
1327{ /* Content Column */ }
1428<div class =" order-2 lg:order-1 space-y-6" >
1529 { /* Pretitle */ }
1630 <span
17- class =" inline-block text-sm md:text-base font-bold tracking-wide text-[var(--color- primary)] uppercase"
31+ class =" inline-block text-sm md:text-base font-bold tracking-wide text-primary uppercase"
1832 >
1933 { pretitle }
2034 </span >
2135
2236 { /* Main Title */ }
2337 <h1
24- class =" text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-[var(--color- text)] leading-tight"
38+ class =" text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-text leading-tight"
2539 >
2640 { title }
2741 </h1 >
2842
2943 { /* Benefits Section */ }
3044 {
3145 benefits && benefits .length > 0 && (
32- <div class = " bg-[var(--color- bg-offset)] rounded-2xl p-6 md:p-8 border border-[var(--color- border)] " >
33- <div class = " text-sm font-semibold text-[var(--color- text-offset)] mb-4 uppercase tracking-wide" >
46+ <div class = " bg-bg-offset rounded-2xl p-6 md:p-8 border border-border" >
47+ <div class = " text-sm font-semibold text-text-offset mb-4 uppercase tracking-wide" >
3448 Up to:
3549 </div >
3650 <ul class = " space-y-4" >
3751 { benefits .map (benefit => (
3852 <li class = " flex items-start gap-3" >
39- <span class = " flex- shrink-0 w-6 h-6 text-[var(--color- success)] [&_.icon]:w-6 [&_.icon]:h-6 [&_.icon]:stroke-current" >
53+ <span class = " shrink-0 w-6 h-6 text-success [&_.icon]:w-6 [&_.icon]:h-6 [&_.icon]:stroke-current" >
4054 <Sprite name = " check" />
4155 </span >
42- <span class = " text-base md:text-lg text-[var(--color- text)] " >
43- <strong class = " font-bold text-[var(--color- primary)] " >{ benefit .highlight } </strong >{ ' ' }
56+ <span class = " text-base md:text-lg text-text" >
57+ <strong class = " font-bold text-primary" >{ benefit .highlight } </strong >{ ' ' }
4458 { benefit .text }
4559 </span >
4660 </li >
@@ -56,7 +70,7 @@ const { pretitle, title, benefits, primaryLink, secondaryLink } = Astro.props
5670 primaryLink && (
5771 <a
5872 href = { primaryLink .href }
59- class = " group inline-block px-8 py-4 bg-[var(--color- primary)] hover:bg-[var(--color- primary-hover)] text-white font-semibold rounded-xl transition-all duration-200 hover:shadow-lg hover:-translate-y-0.5 text-center"
73+ class = " group inline-block px-8 py-4 bg-primary hover:bg-primary-hover text-white font-semibold rounded-xl transition-all duration-200 hover:shadow-lg hover:-translate-y-0.5 text-center"
6074 >
6175 { primaryLink .text }
6276 <svg
@@ -79,7 +93,7 @@ const { pretitle, title, benefits, primaryLink, secondaryLink } = Astro.props
7993 secondaryLink && (
8094 <a
8195 href = { secondaryLink .href }
82- class = " group inline-block px-8 py-4 bg-transparent border-2 border-[var(--color- border)] hover:border-[var(--color- primary)] text-[var(--color- text)] hover:text-[var(--color- primary)] font-semibold rounded-xl transition-all duration-200 text-center"
96+ class = " group inline-block px-8 py-4 bg-transparent border-2 border-border hover:border-primary text-text hover:text-primary font-semibold rounded-xl transition-all duration-200 text-center"
8397 >
8498 { secondaryLink .text }
8599 <svg
0 commit comments