File: src/blocks/hero/Hero04.astro
Centered hero like Hero 03, with review avatars / stars / count instead of an eyebrow.
Config (blocks.ts → hero04)
hero04: {
width: "standard",
heading: "I build websites that work as hard as you do!",
subheading:
"Full-stack web development for brands that need speed, clarity, and craft. Astro, React, headless CMS, and everything in between.",
primaryCta: "View my work",
primaryCtaUrl: "/work/",
secondaryCta: "Get in touch",
secondaryCtaUrl: "/contact/",
rating: 5,
reviewCount: 128,
reviewAvatars: [
{ src: photos.karla, alt: "Sarah Chen" },
{ src: photos.edgar, alt: "Marcus Webb" },
{ initials: "ER", alt: "Elena Ruiz" },
],
padding: "lg",
borderBottom: false,
borderThickness: "sm",
borderColor: "soft",
},
Add to a page
---
import Hero04 from "@/blocks/hero/Hero04.astro";
---
<Hero04 />
Props override matching keys from config:
<Hero04
width="wide"
heading="Custom headline"
padding="md"
/>
Props
| Prop | Config key | Type / values | Default / notes |
|---|---|---|---|
width |
hero04.width |
standard | narrow | wide |
Wrapper max-width |
heading |
hero04.heading |
string |
— |
subheading |
hero04.subheading |
string |
— |
primaryCta |
hero04.primaryCta |
string |
— |
primaryCtaUrl |
hero04.primaryCtaUrl |
string |
— |
secondaryCta |
hero04.secondaryCta |
string |
— |
secondaryCtaUrl |
hero04.secondaryCtaUrl |
string |
— |
reviewAvatars |
hero04.reviewAvatars |
Array of { src?: LocalImageSource, initials?: string, alt: string } |
— |
reviewCount |
hero04.reviewCount |
number | string |
Shown as “from {reviewCount} reviews” |
rating |
hero04.rating |
number |
Star rating out of 5 |
padding |
hero04.padding |
none | sm | md | lg | xl |
Vertical section padding |
borderBottom |
hero04.borderBottom |
boolean |
Show a bottom border under the section |
borderThickness |
hero04.borderThickness |
sm (1px) | md (2px) | lg (4px) |
— |
borderColor |
hero04.borderColor |
soft | medium | hard |
— |

