This commit is contained in:
@@ -5,16 +5,22 @@ export function Section({
|
||||
eyebrow,
|
||||
title,
|
||||
lead,
|
||||
compactTop = false,
|
||||
children,
|
||||
}: {
|
||||
id: string;
|
||||
eyebrow: string;
|
||||
title: string;
|
||||
lead?: ReactNode;
|
||||
/** Trim the top padding when the section follows another one, so the gap between them isn't doubled. */
|
||||
compactTop?: boolean;
|
||||
children: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<section id={id} className="scroll-mt-16 py-16 sm:py-24">
|
||||
<section
|
||||
id={id}
|
||||
className={`scroll-mt-16 pb-16 sm:pb-24 ${compactTop ? "pt-2 sm:pt-4" : "pt-16 sm:pt-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}
|
||||
|
||||
Reference in New Issue
Block a user