From bef3da2a567e3804e12355d9c3d5c09439dbe2ea Mon Sep 17 00:00:00 2001
From: Joel Klinghed <the_jk@spawned.biz>
Date: Thu, 17 Jul 2025 23:42:55 +0200
Subject: Humble beginnings

Redirect to login if not logged in, on login session cookie is set
and projects or reviews are listed.
---
 client/src/routes/(app)/+page.svelte | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 client/src/routes/(app)/+page.svelte

(limited to 'client/src/routes/(app)/+page.svelte')

diff --git a/client/src/routes/(app)/+page.svelte b/client/src/routes/(app)/+page.svelte
new file mode 100644
index 0000000..945945e
--- /dev/null
+++ b/client/src/routes/(app)/+page.svelte
@@ -0,0 +1,25 @@
+<script lang="ts">
+  import type { PageProps } from './$types';
+  import ListPrevNext from '$lib/ListPrevNext.svelte';
+  let { data }: PageProps = $props();
+</script>
+
+<h1>Reviews</h1>
+
+{#if data.reviews === undefined}
+  Select active project
+
+  <ul>
+    {#each data.projects!!.projects as { id, title } (id)}
+      <li>{title}</li>
+    {/each}
+  </ul>
+  <ListPrevNext list={data.projects} query_offset="project_offset" />
+{:else}
+  <ul>
+    {#each data.reviews.reviews as { id, title } (id)}
+      <li>{title}</li>
+    {/each}
+  </ul>
+  <ListPrevNext list={data.reviews} />
+{/if}
-- 
cgit v1.2.3-70-g09d2

