Consolidates and renames the app title
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
2
src/lib/config.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
// If you change this, also change it in `index.html`
|
||||
export const APP_NAME = 'Scrounge Quest'
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user