Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added all contributors #312

Merged
merged 2 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions src/components/AboutUs.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
}
}

100 changes: 83 additions & 17 deletions src/components/AboutUs.jsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -9,19 +10,32 @@ import Himank from "../assets/Himank.jpg";
import Akshat from "../assets/Akshat.jpg";
import Shreya from "../assets/Shreya.jpg";
import Naman from "../assets/Naman.jpg";
import Footer from './Footer';
// import Tilty from "react-tilty";
import Footer from "./Footer";
import { particles } from "./Particles.jsx";
import BackToTop from "./BottomToTop";

const AboutUs = () => {
const [contributors, setContributors] = useState([]);

useEffect(() => {
initParticlesEngine(async (engine) => {
await loadFull(engine);
});
}, []);

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",
Expand Down Expand Up @@ -76,25 +90,28 @@ const AboutUs = () => {
</p>
</div>
<div className="image-container image-container-one mr-8">
<Tilty> <img
src={aboutImage}
alt="About us"
className="ml-8 shadow-sm shadow-sky-600 about-image w-[500px] rounded-full hover:scale-[1.1] transition"
/>
<Tilty>
<img
src={aboutImage}
alt="About us"
className="ml-8 shadow-sm shadow-sky-600 about-image w-[500px] rounded-full hover:scale-[1.1] transition"
/>
</Tilty>
</div>
</div>

<div className="our-vision flex mb-28">
<div className="image-container image-container-two">
<Tilty><img
src={carImage}
alt="About us"
className=" shadow-sm shadow-sky-600 about-image w-[500px] rounded-full hover:scale-[1.1] transition"
/></Tilty>
<Tilty>
<img
src={carImage}
alt="About us"
className="shadow-sm shadow-sky-600 about-image w-[500px] rounded-full hover:scale-[1.1] transition"
/>
</Tilty>
</div>
<div className="text-container mx-auto flex-1 text-left">
<h1 className="about-title rounded-md text-4xl text-center italic font-bold p-2 mb-8 bg-gradient-to-l from-sky-500">
<h1 className="about-title rounded-md text-4xl text-center italic font-bold p-2 mb-8 bg-gradient-to-l from-sky-500">
Our Vision
</h1>
<p className="about-text italic text-lg font-light text-justify">
Expand All @@ -115,19 +132,68 @@ const AboutUs = () => {
</div>
<div className="grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3 ">
{teamMembers.map((member, index) => (
<Tilty key={index} className="w-full bg-sky-900/50 backdrop-blur-sm shadow-sky-100 rounded-lg shadow-lg p-12 flex flex-col justify-center items-center" glare scale={1.05} maxGlare={0.5}>
<Tilty
key={index}
className="w-full bg-sky-900/50 backdrop-blur-sm shadow-sky-100 rounded-lg shadow-lg p-12 flex flex-col justify-center items-center"
glare
scale={1.05}
maxGlare={0.5}
>
<div className="mb-8">
<img className="object-center object-cover rounded-full h-36 w-36" src={member.imgSrc} alt={member.alt} />
<img
className="object-center object-cover rounded-full h-36 w-36"
src={member.imgSrc}
alt={member.alt}
/>
</div>
<div className="text-center">
<p className="text-xl text-white font-bold mb-2">{member.memberName}</p>
<p className="text-xl text-white font-bold mb-2">
{member.memberName}
</p>
</div>
</Tilty>
))}
</div>
</section>
</div>

{/* OUR CONTRIBUTORS */}
<div className="w-full">
<section className="our-team-section max-w-6xl mx-auto px-4 sm:px-6 lg:px-4 py-12">
<div className="rounded-md about-title text-4xl text-center italic font-bold p-2 mb-[5%] mt-[100px] bg-gradient-to-r from-sky-500 ">
<h1 className="our-team-heading font-bold text-3xl md:text-4xl lg:text-5xl font-heading text-white">
Our Contributors
</h1>
</div>
<div className="marquee">
<div className="marquee-content">
{contributors.map((contributor, index) => (
<Tilty
key={index}
className="inline-block bg-sky-900/50 backdrop-blur-sm shadow-sky-100 rounded-lg shadow-lg p-12 flex flex-col justify-center items-center m-2"
glare
scale={1.05}
maxGlare={0.5}
>
<div className="mb-8">
<img
className="object-center object-cover rounded-full h-36 w-36"
src={contributor.avatar_url}
alt={contributor.login}
/>
</div>
<div className="text-center">
<p className="text-xl text-white font-bold mb-2">
{contributor.login}
</p>
</div>
</Tilty>
))}
</div>
</div>
</section>
</div>

<Footer />
</div>
);
Expand Down