From d760dbf46c412d1045cb51895150650093dd2652 Mon Sep 17 00:00:00 2001 From: yyasha Date: Wed, 15 Nov 2023 11:09:34 +0300 Subject: [PATCH] add error loading page --- Makefile | 2 + src/lib/ErrorLoading.svelte | 8 +++ src/lib/LoadingScreen.svelte | 9 ++++ src/routes/+layout.svelte | 16 +++--- src/routes/+page.svelte | 18 +++---- src/routes/Header.svelte | 3 +- src/routes/categories/[category]/+page.svelte | 46 +++++++++--------- src/routes/recipe/[recipeid]/+page.svelte | 16 +++--- static/favicon.png | Bin 1571 -> 13289 bytes static/logo2.png | Bin 83186 -> 0 bytes static/logo3.png | Bin 57363 -> 0 bytes 11 files changed, 64 insertions(+), 54 deletions(-) create mode 100644 Makefile create mode 100644 src/lib/ErrorLoading.svelte create mode 100644 src/lib/LoadingScreen.svelte delete mode 100644 static/logo2.png delete mode 100644 static/logo3.png diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c57902b --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +run: + npm run dev -- --host diff --git a/src/lib/ErrorLoading.svelte b/src/lib/ErrorLoading.svelte new file mode 100644 index 0000000..1951961 --- /dev/null +++ b/src/lib/ErrorLoading.svelte @@ -0,0 +1,8 @@ +
+
+ + + +

Ошибка при загрузке

+
+
\ No newline at end of file diff --git a/src/lib/LoadingScreen.svelte b/src/lib/LoadingScreen.svelte new file mode 100644 index 0000000..a3a58d1 --- /dev/null +++ b/src/lib/LoadingScreen.svelte @@ -0,0 +1,9 @@ +
+
+ + Loading... +
+
\ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 855a7b0..a74cad3 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,15 +1,17 @@
- +{#if $page.status == 200} + +{:else} + +{/if} -