mirror of
https://git.aramjonghu.dev/AramJonghu/aramjonghu-site.git
synced 2026-09-10 00:33:30 +02:00
feat(portfolio sectioning): sectioning component of Portfolio.tsx
This commit is contained in:
@@ -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>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user