From 0f64596d2b17ad13b3b20de6e1af1ccc84e01861 Mon Sep 17 00:00:00 2001 From: Nabeel Boda Date: Wed, 21 Feb 2024 22:31:21 +0530 Subject: [PATCH] Updated about section --- ui/src/components/Gallery.jsx | 163 +++++++++------------------------- ui/src/constants.js | 21 ++--- ui/src/pages/about.js | 2 +- 3 files changed, 53 insertions(+), 133 deletions(-) diff --git a/ui/src/components/Gallery.jsx b/ui/src/components/Gallery.jsx index dcce727..7015882 100644 --- a/ui/src/components/Gallery.jsx +++ b/ui/src/components/Gallery.jsx @@ -8,132 +8,51 @@ import Image from "next/image"; import React, { useEffect, useRef, useState } from "react"; export default function Gallery() { - const carouselRef = useRef(null); - const [activeIndex, setActiveIndex] = useState(0); - - useEffect(() => { - const handleScroll = () => { - const carousel = carouselRef.current; - const scrollPosition = carousel.scrollTop; - const itemHeight = carousel.clientHeight; - const newIndex = Math.round(scrollPosition / itemHeight); - setActiveIndex(newIndex); - }; - const carousel = carouselRef.current; - carousel.addEventListener("scroll", handleScroll); - - return () => { - carousel.removeEventListener("scroll", handleScroll); - }; - }, []); - return ( - <> -
-
- {[1, 2, 3].map((index) => ( - - ))} -
- +
+ {TEAM.map((element, index) => (
- {TEAM.map((element, index) => ( -
-
- -
- -
- ))} -
-
-
- {TEAM.map((element, index) => ( -
-
- {`Picture -
-
-

{element.name}

-

{element.description}

- + {`Picture +
+

{element.name}

+

+ {element.description} +

+
- ))} -
- + + ))} +
); } diff --git a/ui/src/constants.js b/ui/src/constants.js index fb3a5c6..2ec8ced 100644 --- a/ui/src/constants.js +++ b/ui/src/constants.js @@ -16,31 +16,32 @@ export const SOURCE_LANGUAGES = [ export const TEAM = [ { - name: "Kurain Benoy", - img: "/kurain.jpg", + name: "Aldrin", + img: "/aldrin.jpeg", description: `Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni blanditiis voluptate repellendus unde, tempora perferendis quisquam quidem, saepe at autem harum maxime sequi praesentium aliquam dignissimos quasi nemo nam obcaecati ratione porro? Doloremque commodi, facilis ratione amet qui recusandae? Illo nostrum esse tenetur.`, - github: "https://github.com/kurianbenoy", - linkedin: "https://www.linkedin.com/in/kurianbenoy/", - twitter: "https://twitter.com/kurianbenoy2", + github: "https://github.com/aldrinjenson", + linkedin: "https://www.linkedin.com/in/aldrinjenson/", + twitter: "https://twitter.com/aldrinjenson", }, { - name: "Aldrin", - img: "/aldrin.jpeg", + name: "Kurain Benoy", + img: "/kurain.jpg", description: `Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni blanditiis voluptate repellendus unde, tempora perferendis quisquam quidem, saepe at autem harum maxime sequi praesentium aliquam dignissimos quasi nemo nam obcaecati ratione porro? Doloremque commodi, facilis ratione amet qui recusandae? Illo nostrum esse tenetur.`, - github: "https://github.com/aldrinjenson", - linkedin: "https://www.linkedin.com/in/aldrinjenson/", - twitter: "https://twitter.com/aldrinjenson", + github: "https://github.com/kurianbenoy", + linkedin: "https://www.linkedin.com/in/kurianbenoy/", + twitter: "https://twitter.com/kurianbenoy2", }, + { name: "Nabeel Boda", img: "/nabeel.jpeg", diff --git a/ui/src/pages/about.js b/ui/src/pages/about.js index 85d0c44..673ef92 100644 --- a/ui/src/pages/about.js +++ b/ui/src/pages/about.js @@ -2,7 +2,7 @@ import Gallery from "@components/components/Gallery"; function About() { return ( -
+

Meet Our Team