diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 38861af..18182e2 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/components/EventsPanel.vue b/components/EventsPanel.vue index 5763e36..c2717e4 100644 --- a/components/EventsPanel.vue +++ b/components/EventsPanel.vue @@ -1,11 +1,14 @@ @@ -15,20 +18,35 @@ export default { props: { events: { type: Array, - required: true - } + required: true, + }, }, computed: { reversedEvents() { return this.events.slice().reverse(); }, }, -} + methods: { + getStatusClass(status) { + switch (status) { + case 'Completed': + return 'status-completed'; + case 'Ongoing': + return 'status-ongoing'; + case 'Upcoming': + return 'status-upcoming'; + default: + return ''; + } + }, + }, +}; diff --git a/pages/events.vue b/pages/events.vue deleted file mode 100644 index 974f3a0..0000000 --- a/pages/events.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/pages/events/_id.vue b/pages/events/_id.vue new file mode 100644 index 0000000..4a95a72 --- /dev/null +++ b/pages/events/_id.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/pages/events/index.vue b/pages/events/index.vue new file mode 100644 index 0000000..07df1ba --- /dev/null +++ b/pages/events/index.vue @@ -0,0 +1,89 @@ + + + + +