summit-painting-handyman/src/components/ui/SectionHeading.astro
Nicholai 8dcd6c09f3 refactor: overhaul project documentation and UI components
- Delete hidden fuse file
- Rewrite README with new branding, stack, and deployment instructions
- Update Marquee and SectionHeading Astro components
- Adjust contact page for new layout and content structure
2026-01-02 02:27:41 -07:00

24 lines
596 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>