diff --git a/index.html b/index.html index 0604148..6991089 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,8 @@ - Scavenger Hunt + + Scrounge Quest
diff --git a/src/lib/components/TopBar.svelte b/src/lib/components/TopBar.svelte index 86bb193..e97826d 100644 --- a/src/lib/components/TopBar.svelte +++ b/src/lib/components/TopBar.svelte @@ -2,8 +2,9 @@ import {push} from 'svelte-spa-router' import {auth, clearTokens} from '../stores/auth.svelte' import {apiLogout} from '../api/index' + import {APP_NAME} from '../config' - let { title = 'Scavenger Hunt' }: { title?: string } = $props() + let { title = APP_NAME }: { title?: string } = $props() async function handleLogout() { try { diff --git a/src/lib/config.ts b/src/lib/config.ts new file mode 100644 index 0000000..fe16023 --- /dev/null +++ b/src/lib/config.ts @@ -0,0 +1,2 @@ +// If you change this, also change it in `index.html` +export const APP_NAME = 'Scrounge Quest' diff --git a/src/routes/Login.svelte b/src/routes/Login.svelte index 59694d2..dfbd79e 100644 --- a/src/routes/Login.svelte +++ b/src/routes/Login.svelte @@ -2,6 +2,7 @@ import {push} from 'svelte-spa-router' import {apiLogin} from '../lib/api/index' import {auth, setTokens} from '../lib/stores/auth.svelte' + import {APP_NAME} from '../lib/config' let email = $state('') let password = $state('') @@ -32,7 +33,7 @@
-

Scavenger Hunt

+

{APP_NAME}

Sign in to play