Skip to content

Commit

Permalink
add event hash
Browse files Browse the repository at this point in the history
  • Loading branch information
itskdhere committed Nov 4, 2024
1 parent c16e489 commit c1b4e23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Events/Events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ const Events = () => {
>
{upcomingEvents.map((event, index) => {
return (
<Card key={index} p="md" radius="md" className={classes.card}>
<Card
p="md"
radius="md"
className={classes.card}
id={`${event.hash}`}
key={index}
>
<AspectRatio ratio="1">
<Image radius={5} src={event.banner} alt="Event Poster" />
</AspectRatio>
Expand Down
5 changes: 5 additions & 0 deletions src/config/events.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const upcomingEvents = [
{
name: "403: Permission Denied",
hash: "event-403-permission-denied",
date: "9th November, 2024",
time: "1:00 PM IST",
mode: "Offline",
Expand All @@ -9,6 +10,7 @@ const upcomingEvents = [
},
{
name: "Team: Blue",
hash: "event-team-blue",
date: "23rd October, 2024",
time: "7:00 PM IST",
mode: "Online",
Expand All @@ -17,6 +19,7 @@ const upcomingEvents = [
},
{
name: "Cyber Security Technology",
hash: "event-cyber-security-technology",
date: "5th September, 2024",
time: "3:30 PM IST",
mode: "Offline",
Expand All @@ -25,6 +28,7 @@ const upcomingEvents = [
},
{
name: "Cyber Security & Cloud",
hash: "event-cyber-security-and-cloud-2",
date: "22nd August, 2024",
time: "8:00 PM IST",
mode: "Online",
Expand All @@ -33,6 +37,7 @@ const upcomingEvents = [
},
{
name: "Cyber Security & Cloud",
hash: "event-cyber-security-and-cloud-1",
date: "14th August, 2024",
time: "7:00 PM IST",
mode: "Online",
Expand Down

0 comments on commit c1b4e23

Please sign in to comment.