Add loading state (initial)

Add rollover actions on train service
Add some additional toc styles
This commit is contained in:
2026-04-30 01:26:29 +01:00
parent a746a1eac2
commit 26e40c5bf6
5 changed files with 97 additions and 2 deletions

View File

@@ -2,10 +2,11 @@
import { page } from '$app/state';
import { slide, fade } from 'svelte/transition';
import { onMount } from 'svelte';
import { navigating } from '$app/state';
import { LOCATIONS } from '$lib/locations-object.svelte';
import { nearestStationsState } from '$lib/geohash.svelte';
import Loading from '$lib/components/ui/Loading.svelte';
import TimezoneWarning from '$lib/components/ui/TimezoneWarning.svelte';
import '$lib/global.css';
@@ -81,7 +82,12 @@
<main>
<TimezoneWarning />
{@render children()}
{#if navigating && navigating.to}
<Loading />
{:else}
{@render children()}
{/if}
</main>
<nav bind:clientWidth={navWidth}>

View File

@@ -2,8 +2,11 @@
import NoResults from '$lib/components/ui/NoResults.svelte';
import TrainService from '$lib/components/ui/TrainService.svelte';
let { data } = $props();
</script>
{#if data.results.length === 0}
<NoResults
message={"No trains found on this date with this headcode."}