From 42e6ce5668199416064de0d069b0ff1d8c3c900b Mon Sep 17 00:00:00 2001 From: Carter <35710697+cmintey@users.noreply.github.com> Date: Sat, 21 Oct 2023 23:34:32 -0500 Subject: [PATCH] add some images to error pages (#63) --- src/lib/assets/error.svg | 1 + src/lib/assets/no_claims.svg | 1 + src/lib/assets/no_group.svg | 1 + src/lib/assets/no_wishes.svg | 1 + src/lib/assets/not_found.svg | 1 + src/routes/+error.svelte | 27 ++++++++++++++++++++ src/routes/claims/+page.svelte | 6 +++-- src/routes/group-error/+page.svelte | 10 +++++--- src/routes/wishlists/[username]/+page.svelte | 6 +++-- 9 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 src/lib/assets/error.svg create mode 100644 src/lib/assets/no_claims.svg create mode 100644 src/lib/assets/no_group.svg create mode 100644 src/lib/assets/no_wishes.svg create mode 100644 src/lib/assets/not_found.svg create mode 100644 src/routes/+error.svelte diff --git a/src/lib/assets/error.svg b/src/lib/assets/error.svg new file mode 100644 index 0000000..d84f0f1 --- /dev/null +++ b/src/lib/assets/error.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/lib/assets/no_claims.svg b/src/lib/assets/no_claims.svg new file mode 100644 index 0000000..092b3b2 --- /dev/null +++ b/src/lib/assets/no_claims.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/lib/assets/no_group.svg b/src/lib/assets/no_group.svg new file mode 100644 index 0000000..0511dfe --- /dev/null +++ b/src/lib/assets/no_group.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/lib/assets/no_wishes.svg b/src/lib/assets/no_wishes.svg new file mode 100644 index 0000000..960f705 --- /dev/null +++ b/src/lib/assets/no_wishes.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/lib/assets/not_found.svg b/src/lib/assets/not_found.svg new file mode 100644 index 0000000..52aa4f2 --- /dev/null +++ b/src/lib/assets/not_found.svg @@ -0,0 +1 @@ +void \ No newline at end of file diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte new file mode 100644 index 0000000..c224688 --- /dev/null +++ b/src/routes/+error.svelte @@ -0,0 +1,27 @@ + + +
+

{$page.status}

+ {errors[$page.status].message} +

{errors[$page.status].message}

+
diff --git a/src/routes/claims/+page.svelte b/src/routes/claims/+page.svelte index 05e50f2..8383f12 100644 --- a/src/routes/claims/+page.svelte +++ b/src/routes/claims/+page.svelte @@ -4,6 +4,7 @@ import { flip } from "svelte/animate"; import type { PageData } from "./$types"; import ItemCard from "$lib/components/wishlists/ItemCard.svelte"; + import noClaims from "$lib/assets/no_claims.svg"; export let data: PageData; @@ -29,8 +30,9 @@ {#if data.items.length === 0} -
-

No items yet

+
+ A person looking at an empty board +

Nothing claimed yet

{:else}
diff --git a/src/routes/group-error/+page.svelte b/src/routes/group-error/+page.svelte index 507bc6e..6f8d497 100644 --- a/src/routes/group-error/+page.svelte +++ b/src/routes/group-error/+page.svelte @@ -1,7 +1,11 @@ -
-

No Group Found

+ -

+

+

Can't find your group!

+ A person looking at an empty board +

If you're seeing this page, it's because you aren't in a group yet! Either request a group to join, or create your own.

diff --git a/src/routes/wishlists/[username]/+page.svelte b/src/routes/wishlists/[username]/+page.svelte index cbe771b..acae9a1 100644 --- a/src/routes/wishlists/[username]/+page.svelte +++ b/src/routes/wishlists/[username]/+page.svelte @@ -10,6 +10,7 @@ import { quintOut } from "svelte/easing"; import { crossfade } from "svelte/transition"; import { isInstalled } from "$lib/stores/is-installed"; + import empty from "$lib/assets/no_wishes.svg"; export let data: PageData; @@ -78,8 +79,9 @@ {/if} {#if data.items.length === 0} -
-

No items yet

+
+ Two people looking in an empty box +

No wishes yet

{:else} {#if !data.listOwner.isMe}