This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
export function Section({
|
||||
id,
|
||||
eyebrow,
|
||||
title,
|
||||
lead,
|
||||
children,
|
||||
}: {
|
||||
id: string;
|
||||
eyebrow: string;
|
||||
title: string;
|
||||
lead?: ReactNode;
|
||||
children: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<section id={id} className="scroll-mt-16 py-16 sm:py-24">
|
||||
<div className="mx-auto w-full max-w-6xl px-6">
|
||||
<p className="text-sm font-semibold tracking-widest text-sky-400 uppercase">
|
||||
{eyebrow}
|
||||
</p>
|
||||
<h2 className="mt-2 text-3xl font-bold tracking-tight text-white sm:text-4xl">
|
||||
{title}
|
||||
</h2>
|
||||
{lead && <div className="mt-4 max-w-3xl text-base leading-7 text-slate-300">{lead}</div>}
|
||||
<div className="mt-10">{children}</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user