From 70347722fa1f959a5b224ed43b6b64bf289f36cf Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 2 Oct 2022 17:35:06 +0800 Subject: feat/refactor: Initial surroundings for (app) and normalise icon names --- apps/kit/src/routes/(main)/+layout.svelte | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'apps/kit/src/routes/(main)/+layout.svelte') diff --git a/apps/kit/src/routes/(main)/+layout.svelte b/apps/kit/src/routes/(main)/+layout.svelte index 9787e17..5354f02 100644 --- a/apps/kit/src/routes/(main)/+layout.svelte +++ b/apps/kit/src/routes/(main)/+layout.svelte @@ -3,9 +3,35 @@ import { setLocale } from "$lib/i18n/i18n-svelte"; import type { LayoutData } from "./$types"; + let online = true; export let data: LayoutData; setLocale(data.locale); + +{#if !online} +
+
+
+ +
+
+

You seem to be offline, please check your internet connection.

+
+
+
+{/if} -- cgit v1.3