From 664d19cde73403dd90de4a778b5aeeef613d3086 Mon Sep 17 00:00:00 2001 From: Collin Herber Date: Sun, 24 Nov 2024 13:09:54 -0500 Subject: [PATCH] feat: adding in the mob data route --- src/lib/components/FeatureCard.svelte | 6 ++++-- src/lib/components/Header.svelte | 4 ++++ src/routes/mod-data/+page.svelte | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 src/routes/mod-data/+page.svelte diff --git a/src/lib/components/FeatureCard.svelte b/src/lib/components/FeatureCard.svelte index 4ee9630..cfcaf54 100644 --- a/src/lib/components/FeatureCard.svelte +++ b/src/lib/components/FeatureCard.svelte @@ -2,8 +2,10 @@ import { Card, Button } from 'flowbite-svelte'; import { ArrowRightOutline } from 'flowbite-svelte-icons'; export let title: string = "title"; + export let target: string = "_blank"; export let description: string = "description"; export let link: string = "#"; + export let linkText: string = "Read more"; @@ -14,9 +16,9 @@ {description}

{#if link} - + {/if} diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 14191d1..85e71a3 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -19,6 +19,7 @@ import {UserService} from "$lib/services/user-service"; import SettingsModal from "$lib/components/SettingsModal.svelte"; let userService = new UserService(); + const isDebug = import.meta.env.VITE_DEBUG === 'true'; let currentUser: IUser; let settingsOpen = false; @@ -47,6 +48,9 @@ Home Leaderboards Wiki + {#if isDebug} + Mod Data + {/if}
diff --git a/src/routes/mod-data/+page.svelte b/src/routes/mod-data/+page.svelte new file mode 100644 index 0000000..b4b8108 --- /dev/null +++ b/src/routes/mod-data/+page.svelte @@ -0,0 +1,22 @@ + + +
+

Mod Data

+ +
+
+
+ +
+
+
+
\ No newline at end of file