diff --git a/index.html b/index.html index 78359a8..3b36bbc 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,19 @@ + + +
diff --git a/package-lock.json b/package-lock.json index 03e7fac..7e9cd2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,10 @@ "dependencies": { "@emailjs/browser": "^4.3.3", "@fortawesome/fontawesome-svg-core": "^6.5.2", + "@fortawesome/free-brands-svg-icons": "^6.5.2", + "@fortawesome/free-regular-svg-icons": "^6.5.2", "@fortawesome/free-solid-svg-icons": "^6.5.2", - "@fortawesome/react-fontawesome": "^0.2.0", + "@fortawesome/react-fontawesome": "^0.2.2", "@fullcalendar/core": "^6.1.13", "@fullcalendar/daygrid": "^6.1.13", "@fullcalendar/react": "^6.1.13", @@ -892,6 +894,33 @@ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.5.2.tgz", "integrity": "sha512-5CdaCBGl8Rh9ohNdxeeTMxIj8oc3KNBgIeLMvJosBMdslK/UnEB8rzyDRrbKdL1kDweqBPo4GT9wvnakHWucZw==", "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.5.2" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-brands-svg-icons": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.5.2.tgz", + "integrity": "sha512-zi5FNYdmKLnEc0jc0uuHH17kz/hfYTg4Uei0wMGzcoCL/4d3WM3u1VMc0iGGa31HuhV5i7ZK8ZlTCQrHqRHSGQ==", + "hasInstallScript": true, + "license": "(CC-BY-4.0 AND MIT)", + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.5.2" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-regular-svg-icons": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.5.2.tgz", + "integrity": "sha512-iabw/f5f8Uy2nTRtJ13XZTS1O5+t+anvlamJ3zJGLEVE2pKsAWhPv2lq01uQlfgCX7VaveT3EVs515cCN9jRbw==", + "hasInstallScript": true, + "license": "(CC-BY-4.0 AND MIT)", "dependencies": { "@fortawesome/fontawesome-common-types": "6.5.2" }, @@ -904,6 +933,7 @@ "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.5.2.tgz", "integrity": "sha512-QWFZYXFE7O1Gr1dTIp+D6UcFUF0qElOnZptpi7PBUMylJh+vFmIedVe1Ir6RM1t2tEQLLSV1k7bR4o92M+uqlw==", "hasInstallScript": true, + "license": "(CC-BY-4.0 AND MIT)", "dependencies": { "@fortawesome/fontawesome-common-types": "6.5.2" }, @@ -912,9 +942,10 @@ } }, "node_modules/@fortawesome/react-fontawesome": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.2.0.tgz", - "integrity": "sha512-uHg75Rb/XORTtVt7OS9WoK8uM276Ufi7gCzshVWkUJbHhh3svsUUeqXerrM96Wm7fRiDzfKRwSoahhMIkGAYHw==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.2.2.tgz", + "integrity": "sha512-EnkrprPNqI6SXJl//m29hpaNzOp1bruISWaOiRtkMi/xSvHJlzc2j2JAYS7egxt/EbjSNV/k6Xy0AQI6vB2+1g==", + "license": "MIT", "dependencies": { "prop-types": "^15.8.1" }, @@ -3509,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/package.json b/package.json index 5c5ecc7..5d80355 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,10 @@ "dependencies": { "@emailjs/browser": "^4.3.3", "@fortawesome/fontawesome-svg-core": "^6.5.2", + "@fortawesome/free-brands-svg-icons": "^6.5.2", + "@fortawesome/free-regular-svg-icons": "^6.5.2", "@fortawesome/free-solid-svg-icons": "^6.5.2", - "@fortawesome/react-fontawesome": "^0.2.0", + "@fortawesome/react-fontawesome": "^0.2.2", "@fullcalendar/core": "^6.1.13", "@fullcalendar/daygrid": "^6.1.13", "@fullcalendar/react": "^6.1.13", 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 61301c3..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"; @@ -10,11 +11,14 @@ import Akshat from "../assets/Akshat.jpg"; import Shreya from "../assets/Shreya.jpg"; import Naman from "../assets/Naman.jpg"; import Footer from './Footer'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faLinkedin, faGithub } from '@fortawesome/free-brands-svg-icons'; // import Tilty from "react-tilty"; import { particles } from "./Particles.jsx"; import BackToTop from "./BottomToTop"; const AboutUs = () => { + const [contributors, setContributors] = useState([]); useEffect(() => { initParticlesEngine(async (engine) => { @@ -22,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", @@ -58,16 +75,31 @@ const AboutUs = () => { bottomTxt: "Through our passion for exploration and discovery, we seek to inspire curiosity and ignite imaginations, inviting individuals to embark on a journey through time where they can uncover hidden treasures, explore diverse cultures, and witness the remarkable tapestry of human experience.", }; - + const handlehover=(e)=>{ + e.currentTarget.querySelector(".hovereffect").style.transform="scale(1)"; + } + const hanleleave=(e)=>{ + e.currentTarget.querySelector(".hovereffect").style.transform="scale(0)"; + } return ( -{about.topTxt}
@@ -75,26 +107,21 @@ const AboutUs = () => { {about.bottomTxt}@@ -115,12 +142,22 @@ const AboutUs = () => {
{member.memberName}
+ {contributor.login} +
+{ - - - const [footerStyle, setFooterStyle] = useState({ - color: 'black' + color: 'black' }); - const [quote, setQuote] = useState(quotes[Math.floor(Math.random() * quotes.length)]); - - let savedTheme; - + const [quote, setQuote] = useState(quotes[Math.floor(Math.random() * quotes.length)]); + useEffect(() => { - savedTheme = localStorage.getItem('theme') || 'light'; + let savedTheme = localStorage.getItem('theme') || 'light'; setFooterStyle({ color: savedTheme === 'light' ? 'white' : 'white', backgroundColor: savedTheme === 'light' ? '#0ea5e9' : '', @@ -39,8 +32,25 @@ const Footer = () => { }); }, 10000); // changes every 10 seconds + // Add Google Translate script + const addGoogleTranslateScript = () => { + const script = document.createElement('script'); + script.type = 'text/javascript'; + script.src = "//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"; + document.body.appendChild(script); + }; + + window.googleTranslateElementInit = () => { + new window.google.translate.TranslateElement( + { pageLanguage: 'en' }, + 'google_translate_element' + ); + }; + + addGoogleTranslateScript(); + return () => clearInterval(intervalId); // cleanup interval on component unmount - }, [savedTheme]); + }, []); return (
© 2024 TimeWarp. All rights reserved.
-© 2024 TimeWarp. All rights reserved.
+