mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-23 21:59:28 -05:00
28c2bdedf3
* update formbricks logo * update colors Co-authored-by: knugget <johannes@knugget.de>
26 lines
1011 B
TypeScript
26 lines
1011 B
TypeScript
interface Props {
|
|
headingPt1: string;
|
|
headingTeal?: string;
|
|
headingPt2?: string;
|
|
subheading?: string;
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
export default function HeroTitle({ headingPt1, headingTeal, headingPt2, subheading, children }: Props) {
|
|
return (
|
|
<div className="px-4 py-20 text-center sm:px-6 lg:px-8 lg:py-28">
|
|
<h1 className="text-3xl font-bold tracking-tight text-slate-800 dark:text-slate-200 sm:text-4xl md:text-5xl">
|
|
<span className="xl:inline">{headingPt1}</span>{" "}
|
|
<span className="from-brand-light to-brand-dark bg-gradient-to-b bg-clip-text text-transparent xl:inline">
|
|
{headingTeal}
|
|
</span>{" "}
|
|
<span className="inline ">{headingPt2}</span>
|
|
</h1>
|
|
<p className="mx-auto mt-3 max-w-md text-base text-slate-500 dark:text-slate-300 sm:text-lg md:mt-5 md:max-w-2xl md:text-xl">
|
|
{subheading}
|
|
</p>
|
|
<div className="mx-auto mt-5 max-w-md sm:flex sm:justify-center md:mt-8">{children}</div>
|
|
</div>
|
|
);
|
|
}
|