Add toast to Public LDB suggesting registering

This commit is contained in:
Fred Boniface 2024-07-12 19:34:58 +01:00
parent f92f01af16
commit b6a8bd0461
1 changed files with 2 additions and 8 deletions

View File

@ -9,6 +9,7 @@
import { getApiUrl } from "$lib/scripts/upstream"; import { getApiUrl } from "$lib/scripts/upstream";
import TimeBar from "$lib/navigation/TimeBar.svelte"; import TimeBar from "$lib/navigation/TimeBar.svelte";
import { IconBus, IconSailboat } from "@tabler/icons-svelte"; import { IconBus, IconSailboat } from "@tabler/icons-svelte";
import toast from "svelte-french-toast";
let requestedStation; let requestedStation;
$: requestedStation = station; $: requestedStation = station;
@ -143,6 +144,7 @@
} }
onMount(() => { onMount(() => {
toast("Register for more detailed departure boards")
if (requestedStation && jsonData === null) { if (requestedStation && jsonData === null) {
fetchData(); fetchData();
} }
@ -363,11 +365,6 @@
{/if} {/if}
<style> <style>
#timestamp {
margin: auto;
text-align: left;
font-size: 14px;
}
.ldbTable { .ldbTable {
width: 100%; width: 100%;
min-width: 300px; min-width: 300px;
@ -402,9 +399,6 @@
.transport-mode { .transport-mode {
width: 50px; width: 50px;
} }
#timestamp {
font-size: 16px;
}
} }
@media (min-width: 1000px) { @media (min-width: 1000px) {
table { table {