mirror of
https://github.com/oiov/wr.do.git
synced 2026-05-13 00:46:17 +08:00
26 lines
641 B
TypeScript
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>
|
|
);
|
|
}
|