Files
wr.do/components/shared/header-section.tsx
2024-07-26 22:08:57 +08:00

26 lines
641 B
TypeScript

interface HeaderSectionProps {
label?: string;
title: string;
subtitle?: string;
}
export function HeaderSection({ label, title, subtitle }: HeaderSectionProps) {
return (
<div className="flex flex-col items-center text-center">
{label ? (
<div className="text-gradient_indigo-purple mb-4 font-semibold">
{label}
</div>
) : null}
<h2 className="font-heading text-3xl md:text-4xl lg:text-[40px]">
{title}
</h2>
{subtitle ? (
<p className="mt-6 text-balance text-lg text-muted-foreground">
{subtitle}
</p>
) : null}
</div>
);
}