Skip to content

Commit a9b0b6f

Browse files
committed
refactor(Team): to Volunteers
1 parent e550d72 commit a9b0b6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+37
-37
lines changed

public/data/events.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"date": "August 19th-20th, 2023",
6464
"time": "8:00 AM - 6:00 PM",
6565
"venue": "Conf center, Faculty of technology, University of Delhi",
66-
"about": "ALiAS members attended the Pydelhi Conf'23 which is hosted annually by PyDelhi Community with an aim to promote Python programming language.",
66+
"about": "ALiAS volunteers attended the Pydelhi Conf'23 which is hosted annually by PyDelhi Community with an aim to promote Python programming language.",
6767
"gallery": "https://photos.app.goo.gl/aWZ3LVefPoKTEVu7A"
6868
},
6969
{

public/data/members.json public/data/volunteers.json

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"id": 1,
4-
"image": "assets/images/members/shilpi-sharma.webp",
4+
"image": "assets/images/volunteers/shilpi-sharma.webp",
55
"name": "Dr. Shilpi Sharma",
66
"role": "Faculty Coordinator",
77
"social": [
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"id": 2,
16-
"image": "assets/images/members/shivam-shandilya.webp",
16+
"image": "assets/images/volunteers/shivam-shandilya.webp",
1717
"name": "Shivam Shandilya",
1818
"role": "Volunteer",
1919
"social": [
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"id": 3,
32-
"image": "assets/images/members/vijit-chandna.webp",
32+
"image": "assets/images/volunteers/vijit-chandna.webp",
3333
"name": "Vijit Chandna",
3434
"role": "Volunteer",
3535
"social": [
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"id": 4,
48-
"image": "assets/images/members/shambhavi-mishra.webp",
48+
"image": "assets/images/volunteers/shambhavi-mishra.webp",
4949
"name": "Shambhavi Mishra",
5050
"role": "Volunteer",
5151
"social": [
@@ -61,7 +61,7 @@
6161
},
6262
{
6363
"id": 5,
64-
"image": "assets/images/members/bhavya-dang.webp",
64+
"image": "assets/images/volunteers/bhavya-dang.webp",
6565
"name": "Bhavya Dang",
6666
"role": "Volunteer",
6767
"social": [
@@ -77,7 +77,7 @@
7777
},
7878
{
7979
"id": 6,
80-
"image": "assets/images/members/sanya-saini.webp",
80+
"image": "assets/images/volunteers/sanya-saini.webp",
8181
"name": "Sanya Saini",
8282
"role": "Volunteer",
8383
"social": [
@@ -89,7 +89,7 @@
8989
},
9090
{
9191
"id": 7,
92-
"image": "assets/images/members/manik-rana.webp",
92+
"image": "assets/images/volunteers/manik-rana.webp",
9393
"name": "Manik Rana",
9494
"role": "Volunteer",
9595
"social": [
@@ -105,7 +105,7 @@
105105
},
106106
{
107107
"id": 8,
108-
"image": "assets/images/members/diya-bhandari.webp",
108+
"image": "assets/images/volunteers/diya-bhandari.webp",
109109
"name": "Diya Bhandari",
110110
"role": "Volunteer",
111111
"social": [
@@ -121,7 +121,7 @@
121121
},
122122
{
123123
"id": 9,
124-
"image": "assets/images/members/advik-singh.webp",
124+
"image": "assets/images/volunteers/advik-singh.webp",
125125
"name": "Advik Singh",
126126
"role": "Volunteer",
127127
"social": [
@@ -137,7 +137,7 @@
137137
},
138138
{
139139
"id": 10,
140-
"image": "assets/images/members/saumya-singh.webp",
140+
"image": "assets/images/volunteers/saumya-singh.webp",
141141
"name": "Saumya Singh",
142142
"role": "Volunteer",
143143
"social": [
@@ -153,7 +153,7 @@
153153
},
154154
{
155155
"id": 11,
156-
"image": "assets/images/members/manav-kumar-dubey.webp",
156+
"image": "assets/images/volunteers/manav-kumar-dubey.webp",
157157
"name": "Manav Kumar Dubey",
158158
"role": "Volunteer",
159159
"social": [
@@ -169,7 +169,7 @@
169169
},
170170
{
171171
"id": 12,
172-
"image": "assets/images/members/jayant-thakur.webp",
172+
"image": "assets/images/volunteers/jayant-thakur.webp",
173173
"name": "Jayant Thakur",
174174
"role": "Volunteer",
175175
"social": [
@@ -185,7 +185,7 @@
185185
},
186186
{
187187
"id": 13,
188-
"image": "assets/images/members/priyanshu-verma.webp",
188+
"image": "assets/images/volunteers/priyanshu-verma.webp",
189189
"name": "Priyanshu Verma",
190190
"role": "Volunteer",
191191
"social": [
@@ -201,7 +201,7 @@
201201
},
202202
{
203203
"id": 14,
204-
"image": "assets/images/members/ashwin-kumar-yadav.webp",
204+
"image": "assets/images/volunteers/ashwin-kumar-yadav.webp",
205205
"name": "Ashwin Kumar Yadav",
206206
"role": "Volunteer",
207207
"social": [
@@ -217,7 +217,7 @@
217217
},
218218
{
219219
"id": 14,
220-
"image": "assets/images/members/manan-nag.webp",
220+
"image": "assets/images/volunteers/manan-nag.webp",
221221
"name": "Manan Nag",
222222
"role": "Volunteer",
223223
"social": [
@@ -233,7 +233,7 @@
233233
},
234234
{
235235
"id": 15,
236-
"image": "assets/images/members/shubham-tiwari.webp",
236+
"image": "assets/images/volunteers/shubham-tiwari.webp",
237237
"name": "Shubham Tiwari",
238238
"role": "Volunteer",
239239
"social": [
@@ -249,7 +249,7 @@
249249
},
250250
{
251251
"id": 16,
252-
"image": "assets/images/members/chaitanya-gupta.webp",
252+
"image": "assets/images/volunteers/chaitanya-gupta.webp",
253253
"name": "Chaitanya Gupta",
254254
"role": "Volunteer",
255255
"social": [
@@ -265,7 +265,7 @@
265265
},
266266
{
267267
"id": 17,
268-
"image": "assets/images/members/rishab-parashar.webp",
268+
"image": "assets/images/volunteers/rishab-parashar.webp",
269269
"name": "Rishab Parashar",
270270
"role": "Volunteer",
271271
"social": [
@@ -281,7 +281,7 @@
281281
},
282282
{
283283
"id": 18,
284-
"image": "assets/images/members/tushar-bhatia.webp",
284+
"image": "assets/images/volunteers/tushar-bhatia.webp",
285285
"name": "Tushar Bhatia",
286286
"role": "Volunteer",
287287
"social": [
@@ -297,7 +297,7 @@
297297
},
298298
{
299299
"id": 19,
300-
"image": "assets/images/members/aryan-mahajan.webp",
300+
"image": "assets/images/volunteers/aryan-mahajan.webp",
301301
"name": "Aryan Mahajan",
302302
"role": "Volunteer",
303303
"social": [
@@ -313,7 +313,7 @@
313313
},
314314
{
315315
"id": 20,
316-
"image": "assets/images/members/ayushi.webp",
316+
"image": "assets/images/volunteers/ayushi.webp",
317317
"name": "Ayushi",
318318
"role": "Volunteer",
319319
"social": [
@@ -329,7 +329,7 @@
329329
},
330330
{
331331
"id": 21,
332-
"image": "assets/images/members/divyansh-yadav.webp",
332+
"image": "assets/images/volunteers/divyansh-yadav.webp",
333333
"name": "Divyansh Yadav",
334334
"role": "Volunteer",
335335
"social": [
@@ -349,7 +349,7 @@
349349
},
350350
{
351351
"id": 22,
352-
"image": "assets/images/members/nimish-chauhan.webp",
352+
"image": "assets/images/volunteers/nimish-chauhan.webp",
353353
"name": "Nimish Chauhan",
354354
"role": "Volunteer",
355355
"social": [

src/components/Reusables/TeamItem/TeamItem.jsx src/components/Reusables/VolunteerItem/VolunteerItem.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable react/prop-types */
22
import SocialRow from "../SocialRow/SocialRow"
3-
import styles from "./TeamItem.module.css"
3+
import styles from "./VolunteerItem.module.css"
44

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

30-
export default TeamItem
30+
export default VolunteerItem

src/components/Team/Team.jsx src/components/Volunteers/Volunteers.jsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import { useState, useEffect } from "react"
2-
import styles from "./Team.module.css"
2+
import styles from "./Volunteers.module.css"
33
import Carousel from "../Reusables/Carousel/Carousel"
4-
import TeamItem from "../Reusables/TeamItem/TeamItem"
4+
import VolunteerItem from "../Reusables/VolunteerItem/VolunteerItem"
55

66
/**
7-
* Fetches data from "/data/members.json" and sets the fetched data in the component's state.
7+
* Fetches data from "/data/volunteers.json" and sets the fetched data in the component's state.
88
*
9-
* @return {JSX.Element} The rendered Team component.
9+
* @return {JSX.Element} The rendered Volunteers component.
1010
*/
11-
const Team = () => {
11+
const Volunteers = () => {
1212
const [data, setData] = useState([])
1313

1414
useEffect(() => {
1515
fetchData()
1616
}, [])
1717

1818
async function fetchData() {
19-
const response = await fetch("data/members.json")
19+
const response = await fetch("data/volunteers.json")
2020
const data = await response.json()
2121
setData(data)
2222
}
@@ -31,7 +31,7 @@ const Team = () => {
3131
id="team__carousel"
3232
props={data.map((item) => {
3333
return (
34-
<TeamItem
34+
<VolunteerItem
3535
key={item.id}
3636
image={item.image}
3737
name={item.name}
@@ -45,4 +45,4 @@ const Team = () => {
4545
)
4646
}
4747

48-
export default Team
48+
export default Volunteers

src/pages/Home/Home.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Contact from "../../components/Contact/Contact"
44
import Events from "../../components/Events/Events"
55
import Hero from "../../components/Hero/Hero"
66
import Navbar from "../../components/Navbar/Navbar"
7-
import Team from "../../components/Team/Team"
7+
import Volunteers from "../../components/Volunteers/Volunteers"
88
import Community from "../../components/Community/Community"
99

1010
import styles from "./Home.module.css"
@@ -21,7 +21,7 @@ const Home = () => {
2121
<Hero />
2222
<AboutUs />
2323
<Events />
24-
<Team />
24+
<Volunteers />
2525
<Alumni />
2626
<Community />
2727
<Contact />

0 commit comments

Comments
 (0)