diff --git a/src/components/Sponsor.jsx b/src/components/Sponsor.jsx index d48b46c..fb986ad 100644 --- a/src/components/Sponsor.jsx +++ b/src/components/Sponsor.jsx @@ -35,15 +35,6 @@ const SponsorsSection = () => { return Math.ceil(sponsors.length / visibleCount); }; - const autoScroll = () => { - const container = scrollRef.current; - if (!container) return; - - const pages = totalPages(); - pageIndex.current = (pageIndex.current + 1) % pages; - scrollToPage(pageIndex.current); - }; - const handleManualScroll = (direction) => { const pages = totalPages(); if (direction === "left") { @@ -56,28 +47,48 @@ const SponsorsSection = () => { }; useEffect(() => { + const autoScroll = () => { + const container = scrollRef.current; + if (!container) return; + + const pages = totalPages(); + pageIndex.current = (pageIndex.current + 1) % pages; + scrollToPage(pageIndex.current); + }; + let interval; if (!isHovered) { - interval = setInterval(autoScroll, 3000); + interval = setInterval(autoScroll, 5000); } return () => clearInterval(interval); }, [isHovered, visibleCount]); return (
-
-

- Our Sponsors and Partners -

-

- We are proudly supported by our amazing sponsors and partners. -

+
+
+

+ Our Sponsors and Partners +

+

+ We are proudly supported by our amazing sponsors and partners. +

+
setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} > + {/* Left Arrow */} + + + {/* Sponsor Scroll Area */}
{ className="flex-shrink-0 px-2 box-border" style={{ width: `${100 / visibleCount}%` }} > -
+
{sponsor.name}
))}
-
- - -
+
diff --git a/src/components/Team.jsx b/src/components/Team.jsx index 144b337..234b345 100644 --- a/src/components/Team.jsx +++ b/src/components/Team.jsx @@ -1,5 +1,6 @@ import { useState, useEffect } from "react"; import teamMembers from "../config/teammate"; +import { ArrowLeft, ArrowRight } from "lucide-react"; import { FaLinkedin, FaXTwitter } from "react-icons/fa6"; const TeamSlider = () => { @@ -38,23 +39,36 @@ const TeamSlider = () => { setCurrentIndex((prev) => Math.max(prev - visibleCount, 0)); }; - const pageCount = Math.ceil(teamMembers.length / visibleCount); - const activeDot = Math.round(currentIndex / visibleCount); - return (
-

Our team

-

+

Our team

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

-
+ + + +
{ {member.name}

{member.name}

@@ -103,40 +117,14 @@ const TeamSlider = () => { ))}
- -
- - -
- -
- {Array.from({ length: pageCount }).map((_, idx) => ( - - ))} -
-
-

Join Us Today!

-

+

+

Join Us Today!

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

-
diff --git a/src/pages/team/TeamPage.jsx b/src/pages/team/TeamPage.jsx index 09270a7..83d9795 100644 --- a/src/pages/team/TeamPage.jsx +++ b/src/pages/team/TeamPage.jsx @@ -1,8 +1,8 @@ import { useState } from "react"; import { FaLinkedin, FaXTwitter } from "react-icons/fa6"; -import container from "../../assets/Frame 142.png"; +import teamMembers from "../../config/teammate"; -const TeamPage = ({ teamMembers = [] }) => { +const TeamPage = () => { const [activeTeam, setActiveTeam] = useState("All"); const teams = ["All", "Team 1", "Team 2", "Team 3", "Team 4"]; @@ -14,24 +14,15 @@ const TeamPage = ({ teamMembers = [] }) => { return (
-
- Team Cover -
- -
+

Meet Our Team

-

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit...

- {/* Tabs */}
{teams.map((team) => (
- {/* Team Cards */}
{filteredMembers.map((member, index) => (