diff --git a/src/lib/images/default_avatar.png b/src/lib/images/default_avatar.png new file mode 100644 index 00000000..26f4d5ed Binary files /dev/null and b/src/lib/images/default_avatar.png differ diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 86d750e0..4e27c0bc 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,25 +1,41 @@ - - - - - +
- - - - - -
- -
- + + {#if data?.user} + - {:else} - + {:else} + Login - {/if} - - -
-
-
- +
+
+ + + {#if Cookie && $showCookieConsent === true} + + {/if} +
+
-
-
- - - {#if Cookie && $showCookieConsent === true} - - {/if} -
-
- +
+
+ {#if !hideFooter} +
+ {/if}
-
- {#if !hideFooter} -
- {/if} -
- - - - - - diff --git a/src/routes/community/profile/+page.svelte b/src/routes/community/profile/+page.svelte index b9c6b10c..35225fcc 100644 --- a/src/routes/community/profile/+page.svelte +++ b/src/routes/community/profile/+page.svelte @@ -8,6 +8,7 @@ import { onMount, onDestroy } from 'svelte'; import {getImageURL, addDays } from '$lib/utils'; import {newAvatar, numberOfUnreadNotification, postIdDeleted } from '$lib/store'; + import defaultAvatar from "$lib/images/default_avatar.png"; import toast from 'svelte-french-toast'; import InfiniteLoading from '$lib/components/InfiniteLoading.svelte'; @@ -523,8 +524,8 @@ onDestroy(async () => { hidden on:change={showPreview} /> -