From 70ebc77f843207a1d4b46c8d960dafbff37e7e2e Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Fri, 17 Jan 2025 13:42:21 +0000
Subject: Initial commit

---
 pages/events.vue | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 pages/events.vue

(limited to 'pages/events.vue')

diff --git a/pages/events.vue b/pages/events.vue
new file mode 100644
index 0000000..33e6057
--- /dev/null
+++ b/pages/events.vue
@@ -0,0 +1,45 @@
+<script setup lang="ts">
+import { useScheduleStore } from '~/stores/schedule';
+
+const scheduleStore = useScheduleStore();
+
+</script>
+
+<template>
+  <Panel v-if="scheduleStore.schedule">
+    <h2 class="events-title">Events</h2>
+    <div v-for="[day, events] of Object.entries(scheduleStore.eventsPerDay)" :key="day">
+      <ul class="events-list">
+        <li 
+          v-for="event in events" 
+          :key="event.id" 
+          class="event-item"
+        >
+          <EventListing :event="event" />
+        </li>
+      </ul>
+    </div>
+  </Panel>
+</template>
+
+<style>
+.events-list {
+  list-style: none;
+  margin: 0;
+  padding: 0;
+  display: grid;
+}
+
+.event-item {
+  border-bottom: 1px solid var(--color-background-muted); 
+}
+
+.events-title {
+  margin-bottom: 1rem;
+}
+
+.event-item:last-child {
+  border-bottom: none; 
+}
+
+</style>
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

