Consolidates and renames the app title

This commit is contained in:
2026-05-18 17:28:39 -05:00
parent 86866f4db7
commit aae0c3ff8d
4 changed files with 8 additions and 3 deletions

View File

@@ -4,7 +4,8 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Scavenger Hunt</title>
<!-- App name is defined in src/lib/config.ts — keep in sync -->
<title>Scrounge Quest</title>
</head>
<body>
<div id="app"></div>

View File

@@ -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 {

2
src/lib/config.ts Normal file
View File

@@ -0,0 +1,2 @@
// If you change this, also change it in `index.html`
export const APP_NAME = 'Scrounge Quest'

View File

@@ -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 @@
<div class="card bg-base-100 shadow-xl w-full max-w-sm">
<div class="card-body gap-4">
<div class="text-center mb-2">
<h1 class="text-3xl font-extrabold text-primary">Scavenger Hunt</h1>
<h1 class="text-3xl font-extrabold text-primary">{APP_NAME}</h1>
<p class="text-base-content/60 mt-1">Sign in to play</p>
</div>