summit-painting-handyman/src/components/ui/SectionHeading.astro
Nicholai 0cda5c0497 feat: overhaul homepage layout, add contact page, refactor components
- Add new media assets for hero, mosaic, service area, etc.
- Create Astro components: Nav, Footer, Button, Container, Section, SectionHeading, Hero, ExpertiseMosaic, ServiceList, WhyUs, ServiceArea.
- Refactor src/pages/index.astro into reusable components.
- Add src/pages/contact.astro with contact form and info.
- Fix dead navigation links and service links.
- Implement mobile navigation using details/summary.
- Apply strict 12‑column grid and 1140px container.
- Add scroll‑triggered reveal animations and sticky hero background.
2025-12-27 09:12:19 -07:00

23 lines
595 B
Plaintext

---
interface Props {
title: string;
subtitle?: string;
centered?: boolean;
class?: string;
}
const { title, subtitle, centered = false, class: className = "" } = Astro.props;
---
<div class:list={[centered && "text-center", "mb-12 md:mb-16", className]}>
<h2 class="text-3xl md:text-5xl font-serif font-medium tracking-tight text-brand-dark mb-4">
<Fragment set:html={title} />
</h2>
{subtitle && (
<p class="text-lg text-stone-500 leading-relaxed max-w-2xl" class:list={[centered && "mx-auto"]}>
{subtitle}
</p>
)}
</div>