Files
aia-website/www/src/components/PageHero.astro
T
DeCentN2Madness 36f82a9a76 feat(layout): add reusable page hero and services page shells
- replace bespoke page and library banners with PageHero.astro
- add ServicesPage.astro for the live-style English services landing page
- restyle shared hero/container measurements for the new layout shell
- add self-hosted services card images
2026-06-11 13:15:05 -07:00

19 lines
532 B
Plaintext

---
interface Props {
title: string;
image?: string;
eyebrow?: string;
constrain?: boolean;
}
const { title, image, eyebrow, constrain = false } = Astro.props;
---
<header class:list={['page-hero', { 'page-hero--image': image, 'page-hero--constrained': image && constrain }]} style={image ? `--hero-image: url("${image}")` : undefined}>
<div class="container">
{eyebrow
? <div class="page-hero__copy"><p class="script-label">{eyebrow}</p><h1>{title}</h1></div>
: <h1>{title}</h1>
}
</div>
</header>