Skip to content

Commit

Permalink
Merge pull request #342 from Shariq2003/JSONEvents
Browse files Browse the repository at this point in the history
Adde Support to Events Page To Fetch Events From JSON Server | Issue #231
  • Loading branch information
rishicds authored Oct 31, 2024
2 parents c1f3aea + b080cce commit c2b0611
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 147 deletions.
30 changes: 27 additions & 3 deletions PROJECT_STRUCTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,20 @@
│ ├── exp6.jpeg
│ ├── exp7.jpeg
│ ├── goal.webp
│ ├── gro1.png
│ ├── gro2.png
│ ├── gro3.svg
│ ├── gro4.svg
│ ├── hack1.jpg
│ ├── img1.jpg
│ ├── inovate1.png
│ ├── inovate2.png
│ ├── inovate3.png
│ ├── mission.webp
│ ├── ser1.png
│ ├── ser2.png
│ ├── ser3.svg
│ ├── ser4.svg
│ ├── sopt4.jpg
│ ├── spot1.jpg
│ ├── spot2.jpg
Expand All @@ -62,6 +73,8 @@
│ ├── story5.png
│ ├── story6.png
│ ├── story7.png
│ ├── techeq1.webp
│ ├── techeq2.webp
│ └── vision.webp
├── repo_structure.txt
├── src/
Expand Down Expand Up @@ -151,6 +164,8 @@
│ │ │ │ └── page.jsx
│ │ │ ├── devStudent/
│ │ │ │ └── page.jsx
│ │ │ ├── devfest/
│ │ │ │ └── page.jsx
│ │ │ ├── devprod/
│ │ │ │ └── page.jsx
│ │ │ ├── expertdev/
Expand All @@ -159,24 +174,32 @@
│ │ │ │ └── page.jsx
│ │ │ ├── gitContributors/
│ │ │ │ └── page.jsx
│ │ │ ├── growth/
│ │ │ │ └── page.jsx
│ │ │ ├── helpCenter/
│ │ │ │ └── page.jsx
│ │ │ ├── how-apply/
│ │ │ │ └── page.jsx
│ │ │ ├── inovate/
│ │ │ │ └── page.jsx
│ │ │ ├── ioext/
│ │ │ │ └── page.jsx
│ │ │ ├── localdev/
│ │ │ │ └── page.jsx
│ │ │ ├── orginizer/
│ │ │ │ └── page.jsx
│ │ │ ├── participation-terms/
│ │ │ │ └── page.jsx
│ │ │ ├── participationterms/
│ │ │ │ └── page.jsx
│ │ │ ├── services/
│ │ │ │ └── page.jsx
│ │ │ ├── stories/
│ │ │ │ └── page.jsx
│ │ │ ├── student-challenge/
│ │ │ │ └── page.jsx
│ │ │ ├── sustainable/
│ │ │ │ └── page.jsx
│ │ │ ├── techequity/
│ │ │ │ └── page.jsx
│ │ │ ├── timeline/
│ │ │ │ └── page.jsx
│ │ │ ├── who-apply/
Expand Down Expand Up @@ -208,7 +231,8 @@
│ │ │ ├── Footer.jsx
│ │ │ ├── Header.jsx
│ │ │ ├── Hero.jsx
│ │ │ └── Navbar.jsx
│ │ │ ├── Navbar.jsx
│ │ │ └── ProductsNavbar.jsx
│ │ └── ui/
│ │ ├── aspect-ratio.jsx
│ │ ├── back2top.jsx
Expand Down
94 changes: 22 additions & 72 deletions data.json
Original file line number Diff line number Diff line change
Expand Up @@ -641,81 +641,31 @@
],
"events": [
{
"id": "1",
"title": "Tech for Good Hackathon",
"description": "A 48-hour hackathon focused on leveraging technology to address challenges in healthcare.",
"date": {
"start": "2024-11-01T09:00:00Z",
"end": "2024-11-03T17:00:00Z"
},
"location": "Online",
"status": "finished",
"prizes": [
{
"category": "Best Overall Project",
"amount": "$3,000"
},
{
"category": "Most Innovative Solution",
"amount": "$2,000"
}
],
"organizers": ["GDSC RCCIIT"],
"participants": 150
},
{
"id": "2",
"title": "Web Development Bootcamp",
"description": "A three-day intensive bootcamp to learn web development from scratch.",
"date": {
"start": "2024-09-10T09:00:00Z",
"end": "2024-09-12T17:00:00Z"
},
"location": "RCCIIT Campus",
"status": "finished",
"organizers": ["GDSC RCCIIT"],
"participants": 50
},
{
"id": "3",
"title": "AI & ML Workshop",
"description": "A hands-on workshop on artificial intelligence and machine learning concepts.",
"date": {
"start": "2024-10-15T09:00:00Z",
"end": "2024-10-30T17:00:00Z"
},
"location": "Online",
"status": "ongoing",
"organizers": ["GDSC RCCIIT"],
"participants": 80
"title": "GDSC RCCIIT Event : #1",
"date": "18 Jul 2024",
"heading": "Session Highlights",
"description1": "🔍 Live GitHub Profile Reviews: Get feedback on your GitHub profile.",
"description2": "💡 Tips to Enhance Your GitHub: Learn valuable tips and tricks to make your profile stand out.",
"videoSrc": "https://www.youtube.com/embed/H6sHvucuphU?si=qJoRcNyq2GcC2z3C",
"id": "scroll1"
},
{
"id": "4",
"title": "Cloud Computing Seminar",
"description": "An interactive seminar discussing cloud computing trends and best practices.",
"date": {
"start": "2024-11-05T14:00:00Z",
"end": "2024-11-05T16:00:00Z"
},
"location": "Online",
"status": "upcoming",
"registrationLink": "https://example.com/register-cloud-seminar",
"organizers": ["GDSC RCCIIT"],
"participants": 0
"title": "GDSC RCCIIT Event : #2",
"date": "18 Jul 2024",
"heading": "Session Highlights",
"description1": "🔍 Live GitHub Profile Reviews: Get feedback on your GitHub profile.",
"description2": "💡 Tips to Enhance Your GitHub: Learn valuable tips and tricks to make your profile stand out.",
"videoSrc": "https://www.youtube.com/embed/H6sHvucuphU?si=qJoRcNyq2GcC2z3C",
"id": "scroll2"
},
{
"id": "5",
"title": "Mobile App Development Workshop",
"description": "Learn to build mobile applications using Flutter in this hands-on workshop.",
"date": {
"start": "2024-11-15T10:00:00Z",
"end": "2024-11-17T17:00:00Z"
},
"location": "RCCIIT Campus",
"status": "upcoming",
"registrationLink": "https://example.com/register-mobile-workshop",
"organizers": ["GDSC RCCIIT"],
"participants": 0
"title": "GDSC RCCIIT Event : #3",
"date": "18 Jul 2024",
"heading": "Session Highlights",
"description1": "🔍 Live GitHub Profile Reviews: Get feedback on your GitHub profile.",
"description2": "💡 Tips to Enhance Your GitHub: Learn valuable tips and tricks to make your profile stand out.",
"videoSrc": "https://www.youtube.com/embed/H6sHvucuphU?si=qJoRcNyq2GcC2z3C",
"id": "scroll3"
}
]
]
}
30 changes: 27 additions & 3 deletions repo_structure.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,20 @@
│ ├── exp6.jpeg
│ ├── exp7.jpeg
│ ├── goal.webp
│ ├── gro1.png
│ ├── gro2.png
│ ├── gro3.svg
│ ├── gro4.svg
│ ├── hack1.jpg
│ ├── img1.jpg
│ ├── inovate1.png
│ ├── inovate2.png
│ ├── inovate3.png
│ ├── mission.webp
│ ├── ser1.png
│ ├── ser2.png
│ ├── ser3.svg
│ ├── ser4.svg
│ ├── sopt4.jpg
│ ├── spot1.jpg
│ ├── spot2.jpg
Expand All @@ -58,6 +69,8 @@
│ ├── story5.png
│ ├── story6.png
│ ├── story7.png
│ ├── techeq1.webp
│ ├── techeq2.webp
│ └── vision.webp
├── repo_structure.txt
├── src/
Expand Down Expand Up @@ -147,6 +160,8 @@
│ │ │ │ └── page.jsx
│ │ │ ├── devStudent/
│ │ │ │ └── page.jsx
│ │ │ ├── devfest/
│ │ │ │ └── page.jsx
│ │ │ ├── devprod/
│ │ │ │ └── page.jsx
│ │ │ ├── expertdev/
Expand All @@ -155,24 +170,32 @@
│ │ │ │ └── page.jsx
│ │ │ ├── gitContributors/
│ │ │ │ └── page.jsx
│ │ │ ├── growth/
│ │ │ │ └── page.jsx
│ │ │ ├── helpCenter/
│ │ │ │ └── page.jsx
│ │ │ ├── how-apply/
│ │ │ │ └── page.jsx
│ │ │ ├── inovate/
│ │ │ │ └── page.jsx
│ │ │ ├── ioext/
│ │ │ │ └── page.jsx
│ │ │ ├── localdev/
│ │ │ │ └── page.jsx
│ │ │ ├── orginizer/
│ │ │ │ └── page.jsx
│ │ │ ├── participation-terms/
│ │ │ │ └── page.jsx
│ │ │ ├── participationterms/
│ │ │ │ └── page.jsx
│ │ │ ├── services/
│ │ │ │ └── page.jsx
│ │ │ ├── stories/
│ │ │ │ └── page.jsx
│ │ │ ├── student-challenge/
│ │ │ │ └── page.jsx
│ │ │ ├── sustainable/
│ │ │ │ └── page.jsx
│ │ │ ├── techequity/
│ │ │ │ └── page.jsx
│ │ │ ├── timeline/
│ │ │ │ └── page.jsx
│ │ │ ├── who-apply/
Expand Down Expand Up @@ -204,7 +227,8 @@
│ │ │ ├── Footer.jsx
│ │ │ ├── Header.jsx
│ │ │ ├── Hero.jsx
│ │ │ └── Navbar.jsx
│ │ │ ├── Navbar.jsx
│ │ │ └── ProductsNavbar.jsx
│ │ └── ui/
│ │ ├── aspect-ratio.jsx
│ │ ├── back2top.jsx
Expand Down
6 changes: 4 additions & 2 deletions src/app/(pages)/Events/EventItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Link from 'next/link';
import React from 'react';

const EventItem = ({ title, date, description, videoSrc, id }) => {
const EventItem = ({ title, date, heading, description1, description2, videoSrc, id }) => {

return (
<div className="timeline-item" style={{ position: 'relative' }}>
Expand All @@ -18,7 +18,9 @@ const EventItem = ({ title, date, description, videoSrc, id }) => {
</div>
<h2 className="event-title">{title}</h2>
<p className="event-date">Date: {date}</p>
<p className="event-description">{description}</p>
<p className="event-description">{heading}</p>
<p className="event-description">{description1}</p>
<p className="event-description">{description2}</p>
<Link href={`/SingleEvent/${id}`} passHref className="event-link">
Learn More
</Link>
Expand Down
Loading

0 comments on commit c2b0611

Please sign in to comment.