From 486c01a572f50c6db925ca74600ba5d4984752df Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 25 Dec 2023 00:46:05 -0800 Subject: feat(routes): route-specific head title --- src/routes/tools/+page.svelte | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) (limited to 'src/routes/tools') diff --git a/src/routes/tools/+page.svelte b/src/routes/tools/+page.svelte index 8a500d41..a6a33aa4 100644 --- a/src/routes/tools/+page.svelte +++ b/src/routes/tools/+page.svelte @@ -7,6 +7,7 @@ import { page } from '$app/stores'; import SequelSpy from '$lib/Tools/SequelSpy.svelte'; import { closest } from '$lib/Error/path'; + import HeadTitle from '$lib/HeadTitle.svelte'; export let data; @@ -14,7 +15,7 @@ let tool = browser && urlParameters?.size !== 0 ? urlParameters?.get('tool') || 'default' : 'default'; const tools: { [key: string]: string } = { - default: 'Default', + default: 'Tools', todays_character_birthdays: "Today's Character Birthdays", activity_history: 'Activity History', wrapped: 'Wrapped', @@ -43,6 +44,8 @@ {#if !Object.keys(tools).includes(tool)} + +

Tool not found.

@@ -53,16 +56,20 @@ {suggestion === '...' ? '...' : tools[suggestion]}"?
-{:else if tool === 'default'} - Select a tool to continue. -{:else if tool === 'activity_history'} - -{:else if tool === 'wrapped'} - -{:else if tool === 'episode_discussion_collector'} - -{:else if tool === 'todays_character_birthdays'} - -{:else if tool === 'sequel_spy'} - +{:else} + + + {#if tool === 'default'} + Select a tool to continue. + {:else if tool === 'activity_history'} + + {:else if tool === 'wrapped'} + + {:else if tool === 'episode_discussion_collector'} + + {:else if tool === 'todays_character_birthdays'} + + {:else if tool === 'sequel_spy'} + + {/if} {/if} -- cgit v1.2.3