Skip to content

Commit

Permalink
refactor(Team): to Volunteers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyogami committed May 8, 2024
1 parent e550d72 commit a9b0b6f
Show file tree
Hide file tree
Showing 53 changed files with 37 additions and 37 deletions.
File renamed without changes
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion public/data/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"date": "August 19th-20th, 2023",
"time": "8:00 AM - 6:00 PM",
"venue": "Conf center, Faculty of technology, University of Delhi",
"about": "ALiAS members attended the Pydelhi Conf'23 which is hosted annually by PyDelhi Community with an aim to promote Python programming language.",
"about": "ALiAS volunteers attended the Pydelhi Conf'23 which is hosted annually by PyDelhi Community with an aim to promote Python programming language.",
"gallery": "https://photos.app.goo.gl/aWZ3LVefPoKTEVu7A"
},
{
Expand Down
46 changes: 23 additions & 23 deletions public/data/members.json → public/data/volunteers.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"id": 1,
"image": "assets/images/members/shilpi-sharma.webp",
"image": "assets/images/volunteers/shilpi-sharma.webp",
"name": "Dr. Shilpi Sharma",
"role": "Faculty Coordinator",
"social": [
Expand All @@ -13,7 +13,7 @@
},
{
"id": 2,
"image": "assets/images/members/shivam-shandilya.webp",
"image": "assets/images/volunteers/shivam-shandilya.webp",
"name": "Shivam Shandilya",
"role": "Volunteer",
"social": [
Expand All @@ -29,7 +29,7 @@
},
{
"id": 3,
"image": "assets/images/members/vijit-chandna.webp",
"image": "assets/images/volunteers/vijit-chandna.webp",
"name": "Vijit Chandna",
"role": "Volunteer",
"social": [
Expand All @@ -45,7 +45,7 @@
},
{
"id": 4,
"image": "assets/images/members/shambhavi-mishra.webp",
"image": "assets/images/volunteers/shambhavi-mishra.webp",
"name": "Shambhavi Mishra",
"role": "Volunteer",
"social": [
Expand All @@ -61,7 +61,7 @@
},
{
"id": 5,
"image": "assets/images/members/bhavya-dang.webp",
"image": "assets/images/volunteers/bhavya-dang.webp",
"name": "Bhavya Dang",
"role": "Volunteer",
"social": [
Expand All @@ -77,7 +77,7 @@
},
{
"id": 6,
"image": "assets/images/members/sanya-saini.webp",
"image": "assets/images/volunteers/sanya-saini.webp",
"name": "Sanya Saini",
"role": "Volunteer",
"social": [
Expand All @@ -89,7 +89,7 @@
},
{
"id": 7,
"image": "assets/images/members/manik-rana.webp",
"image": "assets/images/volunteers/manik-rana.webp",
"name": "Manik Rana",
"role": "Volunteer",
"social": [
Expand All @@ -105,7 +105,7 @@
},
{
"id": 8,
"image": "assets/images/members/diya-bhandari.webp",
"image": "assets/images/volunteers/diya-bhandari.webp",
"name": "Diya Bhandari",
"role": "Volunteer",
"social": [
Expand All @@ -121,7 +121,7 @@
},
{
"id": 9,
"image": "assets/images/members/advik-singh.webp",
"image": "assets/images/volunteers/advik-singh.webp",
"name": "Advik Singh",
"role": "Volunteer",
"social": [
Expand All @@ -137,7 +137,7 @@
},
{
"id": 10,
"image": "assets/images/members/saumya-singh.webp",
"image": "assets/images/volunteers/saumya-singh.webp",
"name": "Saumya Singh",
"role": "Volunteer",
"social": [
Expand All @@ -153,7 +153,7 @@
},
{
"id": 11,
"image": "assets/images/members/manav-kumar-dubey.webp",
"image": "assets/images/volunteers/manav-kumar-dubey.webp",
"name": "Manav Kumar Dubey",
"role": "Volunteer",
"social": [
Expand All @@ -169,7 +169,7 @@
},
{
"id": 12,
"image": "assets/images/members/jayant-thakur.webp",
"image": "assets/images/volunteers/jayant-thakur.webp",
"name": "Jayant Thakur",
"role": "Volunteer",
"social": [
Expand All @@ -185,7 +185,7 @@
},
{
"id": 13,
"image": "assets/images/members/priyanshu-verma.webp",
"image": "assets/images/volunteers/priyanshu-verma.webp",
"name": "Priyanshu Verma",
"role": "Volunteer",
"social": [
Expand All @@ -201,7 +201,7 @@
},
{
"id": 14,
"image": "assets/images/members/ashwin-kumar-yadav.webp",
"image": "assets/images/volunteers/ashwin-kumar-yadav.webp",
"name": "Ashwin Kumar Yadav",
"role": "Volunteer",
"social": [
Expand All @@ -217,7 +217,7 @@
},
{
"id": 14,
"image": "assets/images/members/manan-nag.webp",
"image": "assets/images/volunteers/manan-nag.webp",
"name": "Manan Nag",
"role": "Volunteer",
"social": [
Expand All @@ -233,7 +233,7 @@
},
{
"id": 15,
"image": "assets/images/members/shubham-tiwari.webp",
"image": "assets/images/volunteers/shubham-tiwari.webp",
"name": "Shubham Tiwari",
"role": "Volunteer",
"social": [
Expand All @@ -249,7 +249,7 @@
},
{
"id": 16,
"image": "assets/images/members/chaitanya-gupta.webp",
"image": "assets/images/volunteers/chaitanya-gupta.webp",
"name": "Chaitanya Gupta",
"role": "Volunteer",
"social": [
Expand All @@ -265,7 +265,7 @@
},
{
"id": 17,
"image": "assets/images/members/rishab-parashar.webp",
"image": "assets/images/volunteers/rishab-parashar.webp",
"name": "Rishab Parashar",
"role": "Volunteer",
"social": [
Expand All @@ -281,7 +281,7 @@
},
{
"id": 18,
"image": "assets/images/members/tushar-bhatia.webp",
"image": "assets/images/volunteers/tushar-bhatia.webp",
"name": "Tushar Bhatia",
"role": "Volunteer",
"social": [
Expand All @@ -297,7 +297,7 @@
},
{
"id": 19,
"image": "assets/images/members/aryan-mahajan.webp",
"image": "assets/images/volunteers/aryan-mahajan.webp",
"name": "Aryan Mahajan",
"role": "Volunteer",
"social": [
Expand All @@ -313,7 +313,7 @@
},
{
"id": 20,
"image": "assets/images/members/ayushi.webp",
"image": "assets/images/volunteers/ayushi.webp",
"name": "Ayushi",
"role": "Volunteer",
"social": [
Expand All @@ -329,7 +329,7 @@
},
{
"id": 21,
"image": "assets/images/members/divyansh-yadav.webp",
"image": "assets/images/volunteers/divyansh-yadav.webp",
"name": "Divyansh Yadav",
"role": "Volunteer",
"social": [
Expand All @@ -349,7 +349,7 @@
},
{
"id": 22,
"image": "assets/images/members/nimish-chauhan.webp",
"image": "assets/images/volunteers/nimish-chauhan.webp",
"name": "Nimish Chauhan",
"role": "Volunteer",
"social": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react/prop-types */
import SocialRow from "../SocialRow/SocialRow"
import styles from "./TeamItem.module.css"
import styles from "./VolunteerItem.module.css"

/**
* Renders an individual team item component.
Expand All @@ -12,7 +12,7 @@ import styles from "./TeamItem.module.css"
* @param {Array} props.socials - An array of social media objects for the team member.
* @returns {JSX.Element} - The rendered team item component.
*/
const TeamItem = ({ image, name, role, socials }) => {
const VolunteerItem = ({ image, name, role, socials }) => {
return (
<div className={styles.team}>
<div className={styles.team__container}>
Expand All @@ -27,4 +27,4 @@ const TeamItem = ({ image, name, role, socials }) => {
)
}

export default TeamItem
export default VolunteerItem
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import { useState, useEffect } from "react"
import styles from "./Team.module.css"
import styles from "./Volunteers.module.css"
import Carousel from "../Reusables/Carousel/Carousel"
import TeamItem from "../Reusables/TeamItem/TeamItem"
import VolunteerItem from "../Reusables/VolunteerItem/VolunteerItem"

/**
* Fetches data from "/data/members.json" and sets the fetched data in the component's state.
* Fetches data from "/data/volunteers.json" and sets the fetched data in the component's state.
*
* @return {JSX.Element} The rendered Team component.
* @return {JSX.Element} The rendered Volunteers component.
*/
const Team = () => {
const Volunteers = () => {
const [data, setData] = useState([])

useEffect(() => {
fetchData()
}, [])

async function fetchData() {
const response = await fetch("data/members.json")
const response = await fetch("data/volunteers.json")
const data = await response.json()
setData(data)
}
Expand All @@ -31,7 +31,7 @@ const Team = () => {
id="team__carousel"
props={data.map((item) => {
return (
<TeamItem
<VolunteerItem
key={item.id}
image={item.image}
name={item.name}
Expand All @@ -45,4 +45,4 @@ const Team = () => {
)
}

export default Team
export default Volunteers
File renamed without changes.
4 changes: 2 additions & 2 deletions src/pages/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Contact from "../../components/Contact/Contact"
import Events from "../../components/Events/Events"
import Hero from "../../components/Hero/Hero"
import Navbar from "../../components/Navbar/Navbar"
import Team from "../../components/Team/Team"
import Volunteers from "../../components/Volunteers/Volunteers"
import Community from "../../components/Community/Community"

import styles from "./Home.module.css"
Expand All @@ -21,7 +21,7 @@ const Home = () => {
<Hero />
<AboutUs />
<Events />
<Team />
<Volunteers />
<Alumni />
<Community />
<Contact />
Expand Down

0 comments on commit a9b0b6f

Please sign in to comment.