diff --git a/src/lib/components/ui/TimezoneWarning.svelte b/src/lib/components/ui/TimezoneWarning.svelte new file mode 100644 index 0000000..c2ebf57 --- /dev/null +++ b/src/lib/components/ui/TimezoneWarning.svelte @@ -0,0 +1,42 @@ + + +{#if isNotLondon} +

+ All times are shown in {londonZone} +

+{/if} + + \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 79d6f94..6be2492 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -6,6 +6,8 @@ import { LOCATIONS } from '$lib/locations-object.svelte'; import { nearestStationsState } from '$lib/geohash.svelte'; + import TimezoneWarning from '$lib/components/ui/TimezoneWarning.svelte'; + import '$lib/global.css'; import logoText from '$lib/assets/round-logo-text.svg'; @@ -78,6 +80,7 @@
+ {@render children()}