Files
fivedevs.com/src/components/section-heading.tsx
Chris Smith a7c05104af flatten new-site/ to repo root and remove old hugo site
Moves the Next.js app's contents from new-site/ to the repository
root and deletes the previous Hugo site (assets/, content/, themes/,
hugo.toml, etc.). Also retires the AWS Amplify config and old
Netlify _redirects file — the new site deploys to Vercel.

Updates STRATEGY.md path references to drop the new-site/ prefix.
LICENSE preserved.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 13:14:01 +02:00

51 lines
987 B
TypeScript

import { cn } from "@/lib/cn";
import type { ReactNode } from "react";
export function Eyebrow({
children,
className,
}: {
children: ReactNode;
className?: string;
}) {
return (
<p
className={cn(
"text-xs font-medium uppercase tracking-[0.18em] text-accent",
className,
)}
>
{children}
</p>
);
}
export function SectionHeading({
eyebrow,
title,
subtitle,
align = "left",
}: {
eyebrow?: string;
title: ReactNode;
subtitle?: ReactNode;
align?: "left" | "center";
}) {
return (
<div
className={cn(
"max-w-2xl space-y-4",
align === "center" && "mx-auto text-center",
)}
>
{eyebrow ? <Eyebrow>{eyebrow}</Eyebrow> : null}
<h2 className="font-serif text-3xl font-semibold tracking-tight text-ink sm:text-4xl">
{title}
</h2>
{subtitle ? (
<p className="text-lg leading-relaxed text-ink-soft">{subtitle}</p>
) : null}
</div>
);
}