feat: implement gallery page with category filtering and lightbox functionality

This commit is contained in:
Poyraz Avsever
2026-04-10 10:50:54 +03:00
parent ee3bd56093
commit 83e192ebd6
6 changed files with 279 additions and 0 deletions
+45
View File
@@ -481,4 +481,49 @@ export const COLLECTION_CONFIGS = {
meta: [],
}),
},
gallery: {
label: "Gallery",
itemLabel: "Gallery Item",
fileName: "gallery.ts",
exportName: "GALLERY_ITEMS",
fields: [
{
key: "id",
label: "ID",
required: true,
placeholder: "gallery-1",
},
{
key: "title",
label: "Title",
required: true,
placeholder: "Project Mockup",
},
{
key: "category",
label: "Category",
required: true,
placeholder: "UI Design",
},
{
key: "image",
label: "Image URL",
required: true,
type: "url",
placeholder: "/gallery/mockup.png",
},
{
key: "description",
label: "Description",
type: "textarea",
full: true,
placeholder: "Detail about visual...",
},
],
card: (item) => ({
title: item.title || item.id || "Untitled",
meta: [item.category],
footer: item.description,
}),
},
};
+7
View File
@@ -103,6 +103,13 @@
>
YouTube
</button>
<button
class="tab-btn"
data-tab="collection"
data-collection-key="gallery"
>
Gallery
</button>
<button class="tab-btn" data-tab="media">Media</button>
<button class="tab-btn" data-tab="publish">Publish</button>
</nav>