Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 2x | import type { ReactNode } from "react";
export function SectionHeading({
id,
title,
children,
}: {
id: string;
title: string;
children?: ReactNode;
}) {
return (
<div className="mb-10 grid gap-4 md:grid-cols-12 md:items-end">
<h2 id={id} className="display text-6xl sm:text-7xl md:col-span-6">
{title}
</h2>
{children && <div className="prose-measure text-muted md:col-span-6 md:pb-2">{children}</div>}
</div>
);
}
|