diff --git a/package-lock.json b/package-lock.json index 330f64e..599afce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3540,6 +3540,7 @@ "version": "1.7.2", "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz", "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==", + "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", diff --git a/src/components/AboutUs.css b/src/components/AboutUs.css index c659652..93a4168 100644 --- a/src/components/AboutUs.css +++ b/src/components/AboutUs.css @@ -224,3 +224,22 @@ h1::before { } +.marquee { + overflow: hidden; + white-space: nowrap; + } + + .marquee-content { + display: flex; + animation: marquee 15s linear infinite; + } + + @keyframes marquee { + from { + transform: translateX(100%); + } + to { + transform: translateX(-100%); + } + } + \ No newline at end of file diff --git a/src/components/AboutUs.jsx b/src/components/AboutUs.jsx index 565c2ad..9bc605a 100644 --- a/src/components/AboutUs.jsx +++ b/src/components/AboutUs.jsx @@ -1,4 +1,5 @@ -import React, { useEffect, useMemo } from "react"; +import React, { useEffect, useState, useMemo } from "react"; +import axios from "axios"; import Particles, { initParticlesEngine } from "@tsparticles/react"; import { loadFull } from "tsparticles"; import Tilty from "react-tilty"; @@ -17,6 +18,7 @@ import { particles } from "./Particles.jsx"; import BackToTop from "./BottomToTop"; const AboutUs = () => { + const [contributors, setContributors] = useState([]); useEffect(() => { initParticlesEngine(async (engine) => { @@ -24,6 +26,19 @@ const AboutUs = () => { }); }, []); + useEffect(() => { + const fetchContributors = async () => { + try { + const response = await axios.get('https://api.github.com/repos/Akshatchaube01/TimeWarp/contributors'); + setContributors(response.data); + } catch (error) { + console.error("Error fetching contributors:", error); + } + }; + + fetchContributors(); + }, []); + const teamMembers = [ { memberName: "Akshat Chaube", @@ -67,14 +82,24 @@ const AboutUs = () => { e.currentTarget.querySelector(".hovereffect").style.transform="scale(0)"; } return ( -
{about.topTxt}
@@ -82,26 +107,21 @@ const AboutUs = () => { {about.bottomTxt}@@ -145,6 +165,43 @@ const AboutUs = () => {
+ {contributor.login} +
+{ return ( @@ -32,20 +33,24 @@ const Privacy = () => {