- {teamMembers.map((member) => (
+ {teamMembers2.map((member) => (
-
+
-
- {member.socials.map((link, index) => (
-
-
-
- ))}
-
-
{member.role}
-
-
+
+
{member.name}
-
+
+ {/*
{member.role}
*/}
+
+
+
diff --git a/components/homes/home-1/Team2.jsx b/components/homes/home-1/Team2.jsx
new file mode 100644
index 0000000..a3da599
--- /dev/null
+++ b/components/homes/home-1/Team2.jsx
@@ -0,0 +1,66 @@
+import { teamMembers } from "@/data/team";
+import React from "react";
+import Link from "next/link";
+import Image from "next/image";
+import AnimatedText from "@/components/common/AnimatedText";
+export default function Team() {
+ return (
+
+
+
+
+
+ our team
+
+
+
+
+
+
+
+
+
+ {teamMembers.map((member) => (
+
+
+
+
+
+ {member.socials.map((link, index) => (
+
+
+
+ ))}
+
+
+
+ {member.role}
+
+
+ {member.name}
+
+
+
+
+
+ ))}
+
+
+
+ );
+}
diff --git a/components/project/Projects2.jsx b/components/project/Projects2.jsx
index c4dc6f9..2989fe5 100644
--- a/components/project/Projects2.jsx
+++ b/components/project/Projects2.jsx
@@ -4,6 +4,8 @@ import { projectsData } from "@/data/projects";
import React from "react";
import Image from "next/image";
import AnimatedText from "../common/AnimatedText";
+import Lightbox from "yet-another-react-lightbox";
+import "yet-another-react-lightbox/styles.css";
const tabOptions = [
{ key: "desiccated", label: "Coconut Milk Extraction" },
@@ -13,25 +15,45 @@ const tabOptions = [
export default function ProjectsData() {
const [activeTab, setActiveTab] = useState("desiccated");
+ const [lightboxOpen, setLightboxOpen] = useState(false);
+ const [lightboxImages, setLightboxImages] = useState([]);
+ const [currentImageIndex, setCurrentImageIndex] = useState(0);
+ // Filtered projects based on active tab
const filteredProjects = projectsData.filter(
(project) =>
project.category &&
project.category.toLowerCase().includes(activeTab)
);
+ // Collect unique images from filtered projects
+ const displayedImages = Array.from(
+ new Set(
+ filteredProjects.map((project) => project.images[0]) // Only first image
+ )
+ );
+
+ // Open lightbox
+ const handleImageClick = (imageSrc) => {
+ const index = displayedImages.findIndex((img) => img === imageSrc);
+ const slides = displayedImages.map((img) => ({ src: img }));
+ setLightboxImages(slides);
+ setCurrentImageIndex(index >= 0 ? index : 0);
+ setLightboxOpen(true);
+ };
return (
-
+
Our Global Footprint
-
-
+
+
+
@@ -41,8 +63,7 @@ export default function ProjectsData() {