Files
portal/components/Section.tsx
T
Tom Chien (IQ-AS) 1988c635fe
CI/CD (dev on branch, prod on tag) / build-and-deploy (push) Successful in 20m35s
upload
2026-11-18 14:26:36 +08:00

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>
);
}