CI/CD (dev on branch, prod on tag) / build-and-deploy (push) Successful in 20m35s
31 lines
761 B
TypeScript
31 lines
761 B
TypeScript
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>
|
|
);
|
|
}
|