+
{dict.homePage.projects.title}
+
{dict.homePage.projects.description}
{categories.length > 0 ? (
categories.map((category, index) => (
- setSelectedCategory(category.label)}
- className={`select-none whitespace-nowrap rounded-md border border-[#545454] bg-[#F8F8F8] p-2 text-[14px] md:text-[18px] font-[600] hover:cursor-pointer hover:border-[#FD6F00] capitalize ${
- selectedCategory === category.label
- ? "bg-[#FD6F00] text-[#FFFFFF]"
- : "text-[#000]"
+ className={`select-none whitespace-nowrap rounded-md border border-[#545454] bg-[#F8F8F8] p-2 text-[14px] font-[600] capitalize hover:cursor-pointer hover:border-[#FD6F00] md:text-[18px] ${
+ selectedCategory === category.label ? "bg-[#FD6F00] text-[#FFFFFF]" : "text-[#000]"
}`}
>
{category.label}
))
) : (
-
-
-
-
-
-
+ renderSkeletons(4) // Adjust the count as needed
)}
{filteredProjects.length > 0 ? (
filteredProjects.map((project, index) => (
-
+
{project.images.map((image, idx) => (

))}
-
- {project.category}
-
-
- {project.title}
-
+
{project.category}
+
{project.title}
))
) : (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ renderSkeletons(3) // Adjust the count as needed
)}
diff --git a/src/app/types/types.ts b/src/app/types/types.ts
index a184ca7..a3b0caf 100644
--- a/src/app/types/types.ts
+++ b/src/app/types/types.ts
@@ -200,3 +200,17 @@ export type Service = {
imageSrc: string;
altText: string;
};
+
+export type ProjectCategory = {
+ label: string;
+ active: boolean;
+};
+
+export type Project = {
+ id: number;
+ title: string;
+ category: string;
+ images: { src: string; position: string; zIndex: number }[];
+ created_at: string;
+ updated_at: string;
+};