From 6ddbdfa0258c2a912ce4e4340c6f11484c48a359 Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Fri, 14 Feb 2025 12:04:13 +0100
Subject: frontend: Show statistics spinner in the middle of the page

---
 frontend/src/routes/+page.svelte | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

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

diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte
index 57a7a44..d2a59c8 100644
--- a/frontend/src/routes/+page.svelte
+++ b/frontend/src/routes/+page.svelte
@@ -38,8 +38,8 @@
 
 <Head section="Home" />
 
-<div class="flex flex-col justify-center gap-16 xl:flex-row">
-	{#if $query.data}
+{#if $query.data}
+	<div class="flex flex-col justify-center gap-16 xl:flex-row">
 		<div class="flex flex-col items-center gap-1">
 			<img src={logo} width="512" height="512" class="min-w-[400px]" alt="" />
 			<h1 class="text-4xl font-medium">
@@ -71,7 +71,7 @@
 				</Carousel>
 			{/if}
 		</div>
-	{:else}
-		<Guard result={query} />
-	{/if}
-</div>
+	</div>
+{:else}
+	<Guard result={query} />
+{/if}
-- 
cgit v1.2.3-2-gb3c3

