From ed3faf85e6a6e8083128ec68894533738c762b04 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Fri, 24 Jan 2025 01:53:42 +0000
Subject: Add /live

---
 pages/index.vue | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

(limited to 'pages/index.vue')

diff --git a/pages/index.vue b/pages/index.vue
index 941a378..c455678 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,6 +1,22 @@
 <script setup lang="ts">
-navigateTo('/events');
+const scheduleStore = useScheduleStore();
+
+const destination = ref()
+
+if (scheduleStore.isConferenceOngoing()) {
+  destination.value = "/live";
+  navigateTo('/live');
+} else {
+  destination.value = "/events";
+  navigateTo('/events');
+}
 </script>
 
 <template>
+  <Panel kind="success">
+    <span class="text-icon">
+      <Spinner />
+      <span>Successfully logged in. Navigating to {{ destination }}...</span>
+    </span>
+  </Panel>
 </template>
-- 
cgit v1.2.3-70-g09d2

