owlboard-svelte/src/routes/+page.svelte

39 lines
915 B
Svelte
Raw Normal View History

2023-06-12 19:16:39 +01:00
<script>
2023-07-07 11:27:28 +01:00
import Header from '$lib/navigation/header.svelte';
import Nav from '$lib/navigation/nav.svelte';
import InputIsland from '$lib/islands/input-island-form.svelte';
import QuickLinkIsland from '$lib/islands/quick-link-island.svelte';
import Welcome from '$lib/overlays/welcome.svelte';
2023-06-15 18:19:23 +01:00
2023-07-07 11:27:28 +01:00
const title = 'OwlBoard';
const inputIslands = [
2023-06-15 18:19:23 +01:00
{
2023-07-07 11:27:28 +01:00
title: 'Live Departure Boards',
action: '/ldb',
placeholder: 'Enter CRS/TIPLOC',
queryName: 'station'
2023-06-15 18:19:23 +01:00
},
{
2023-07-07 11:27:28 +01:00
title: 'Train Details & PIS',
action: '/train',
placeholder: 'Enter Headcode',
queryName: 'headcode'
2023-06-15 18:19:23 +01:00
}
2023-07-07 11:27:28 +01:00
];
2023-06-15 18:19:23 +01:00
2023-07-07 11:27:28 +01:00
const isWelcomed = 'false'; // Usually a bool - <Welcome /> is incomplete so should be hidden for now.
2023-06-12 19:16:39 +01:00
</script>
2023-06-12 21:50:47 +01:00
{#if !isWelcomed}
<Welcome />
{/if}
2023-06-14 11:02:46 +01:00
<Header {title} />
2023-06-15 18:19:23 +01:00
{#each inputIslands as variables}
2023-07-07 11:27:28 +01:00
<InputIsland {variables} />
2023-06-15 18:19:23 +01:00
{/each}
<QuickLinkIsland />
2023-06-13 13:38:59 +01:00
2023-07-07 11:27:28 +01:00
<Nav />