Skip to content

Commit 5bbad2e

Browse files
added event
1 parent a818067 commit 5bbad2e

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

pages/events/_id.vue

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<div v-if="event" class="center-mount">
44
<h2>{{ event.title }}</h2>
55
<img :src="event.img" :alt="event.title" class="event-image" />
6+
<p><span class="text-bold"></span> {{ event.details }}</p>
67
<p><span class="text-bold">Date:</span> {{ event.date }}</p>
78
<p><span class="text-bold">Location:</span> {{ event.location }}</p>
89
<p><span class="text-bold">Time:</span> {{ event.time }}</p>
@@ -70,6 +71,18 @@ export default {
7071
"status" : "Completed",
7172
"time": "TBC"
7273
},
74+
{
75+
"id": 6,
76+
"img": "/movie.png",
77+
"title": "Movie Night",
78+
"details": `Get ready for an epic night with @CompSoc! 🎬 🍿
79+
This Thursday, we’re screening the mind-bending film Ex Machina!
80+
Join us for an evening of tech, AI, and a whole lot of thrills. 🤖`,
81+
"date": "17/10/2024",
82+
"location": "LTL",
83+
"status" : "Upcoming",
84+
"time": "18:00 - 21:00"
85+
},
7386
],
7487
event: null // This will store the matched event
7588
}
@@ -84,8 +97,8 @@ export default {
8497

8598
<style scoped>
8699
.event-image {
87-
width: 200px;
88-
height: 200px;
100+
width: 500px;
101+
height: 500px;
89102
object-fit: cover;
90103
margin-bottom: 20px;
91104
border-radius: 10%;

pages/events/index.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ export default {
7272
"status" : "Completed",
7373
"time": "TBC"
7474
},
75+
{
76+
"id": 6,
77+
"img": "/movie.png",
78+
"title": "Movie Night",
79+
"date": "17/10/2024",
80+
"location": "LTL",
81+
"status" : "Upcoming",
82+
"time": "18:00 - 21:00"
83+
},
7584
]
7685
}
7786
}

static/movie.png

89.5 KB
Loading

0 commit comments

Comments
 (0)