Files
CoHaiSe/frontend/web/src/components/Section.tsx
T
Esiah 858d862fed
deploy / deploy (push) Canceled after 0s
feat: init repo
2026-11-10 19:56:03 +01:00

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