30 lines
869 B
TypeScript
30 lines
869 B
TypeScript
import type { ReactNode } from "react";
|
|
|
|
export const Section = ({ id, children }: { id: string; children: ReactNode }) => (
|
|
<section id={id} className="mx-auto w-full max-w-6xl scroll-mt-24 px-4 py-24 sm:px-6">
|
|
{children}
|
|
</section>
|
|
);
|
|
|
|
export const SectionHeading = ({
|
|
eyebrow,
|
|
title,
|
|
subtitle,
|
|
}: {
|
|
eyebrow?: string;
|
|
title: string;
|
|
subtitle?: string;
|
|
}) => (
|
|
<div className="mb-12 flex flex-col gap-3" data-reveal>
|
|
{eyebrow ? (
|
|
<span className="font-display text-[0.625rem] font-semibold uppercase tracking-label text-accent-graphic">
|
|
{eyebrow}
|
|
</span>
|
|
) : null}
|
|
<h2 className="font-display text-3xl font-bold uppercase tracking-display sm:text-4xl">{title}</h2>
|
|
{subtitle ? (
|
|
<p className="max-w-2xl text-sm leading-relaxed text-muted-foreground sm:text-base">{subtitle}</p>
|
|
) : null}
|
|
</div>
|
|
);
|