project pages created and populated automatically

This commit is contained in:
2026-04-16 10:15:14 +02:00
parent 82e6e3dc01
commit 5e1368f790
17 changed files with 2320 additions and 101 deletions
+31
View File
@@ -0,0 +1,31 @@
type PreviewItem = {
title: string;
image: string;
};
type props = {
items?: PreviewItem[];
};
export function ProjectPreviewGrid({ items = [] }: props) {
return (
<div className="grid gap-6 md:grid-cols-2">
{items.map((item) => (
<div
key={item.title}
className="rounded-2xl overflow-hidden bg-[#2b160f] text-white min-h-[260px] flex items-center justify-center"
>
{item.image ? (
<img
src={item.image}
alt={item.title}
className="h-full w-full object-cover"
/>
) : (
<span className="text-2xl">{item.title}</span>
)}
</div>
))}
</div>
);
}