From 61bac5d88af6ad63d1e362264ff2e57ef84d2817 Mon Sep 17 00:00:00 2001 From: Krish Agarwal Date: Fri, 18 Jul 2025 17:01:52 +0530 Subject: [PATCH] style: change carousel positioning --- src/components/Sponsor.jsx | 20 +++++++------ src/components/Team.jsx | 57 ++++++++++++++++--------------------- src/components/sponsor.css | 25 ++++++++++++++++ src/pages/team/TeamPage.jsx | 17 +++-------- 4 files changed, 64 insertions(+), 55 deletions(-) diff --git a/src/components/Sponsor.jsx b/src/components/Sponsor.jsx index d48b46c..beed0ae 100644 --- a/src/components/Sponsor.jsx +++ b/src/components/Sponsor.jsx @@ -65,13 +65,15 @@ const SponsorsSection = () => { 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. +

+
{
diff --git a/src/components/Team.jsx b/src/components/Team.jsx index 144b337..23ee83a 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 = () => { @@ -45,16 +46,32 @@ const TeamSlider = () => {
-

Our team

-

+

Our team

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

-
+ + + +
{ ))}
- -
- - -
- -
- {Array.from({ length: pageCount }).map((_, idx) => ( - - ))} -
-
-

Join Us Today!

-

+

+

Join Us Today!

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

-
diff --git a/src/components/sponsor.css b/src/components/sponsor.css index 7613c95..a2b22d9 100644 --- a/src/components/sponsor.css +++ b/src/components/sponsor.css @@ -5,3 +5,28 @@ -ms-overflow-style: none; scrollbar-width: none; } +.carousel-arrow-btn { + width: 48px; + height: 48px; + display: flex; + align-items: center; + justify-content: center; + border: none; + border-radius: 50%; + background: linear-gradient(135deg, #112051 60%, #c7d2fe 100%); + box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15); + color: #fff; + cursor: pointer; + transition: + transform 0.2s, + box-shadow 0.2s, + background 0.2s; + font-size: 1.5rem; + margin-right: -5px; +} + +.carousel-arrow-btn:hover { + transform: scale(1.1); + background: linear-gradient(135deg, #2563eb 80%, #a5b4fc 100%); + box-shadow: 0 4px 16px rgba(30, 64, 175, 0.25); +} diff --git a/src/pages/team/TeamPage.jsx b/src/pages/team/TeamPage.jsx index 09270a7..25b1ea1 100644 --- a/src/pages/team/TeamPage.jsx +++ b/src/pages/team/TeamPage.jsx @@ -1,8 +1,9 @@ import { useState } from "react"; import { FaLinkedin, FaXTwitter } from "react-icons/fa6"; +import teamMembers from "../../config/teammate"; import container from "../../assets/Frame 142.png"; -const TeamPage = ({ teamMembers = [] }) => { +const TeamPage = () => { const [activeTeam, setActiveTeam] = useState("All"); const teams = ["All", "Team 1", "Team 2", "Team 3", "Team 4"]; @@ -14,24 +15,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) => (