feat(portfolio sectioning): sectioning component of Portfolio.tsx

This commit is contained in:
2026-08-06 22:19:04 +02:00
parent 7668100fb6
commit 4a190627cb
@@ -0,0 +1,20 @@
import type { ReactElement, ReactNode } from "react";
interface PortfolioSectionProps {
title: string;
children: ReactNode;
}
export default function PortfolioSection({
title,
children,
}: PortfolioSectionProps): ReactElement {
return (
<section className="mb-10">
<h2 className="text-2xl font-bold text-ctp-lavender border-b border-ctp-green pb-2 mb-4">
{title}
</h2>
{children}
</section>
);
}