feat(frontend): replace placeholder avatar with identicons

i don't actually know what the license on the kitten image is, and while
it's very unlikely, i don't want to get into legal trouble. it was only
ever supposed to be a temporary image, too.

identicons aren't the prettiest but at least they have a clear license
:3
This commit is contained in:
sam 2024-12-03 15:19:52 +01:00
parent 71d3b42330
commit 74222ead45
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
10 changed files with 37 additions and 6 deletions

View file

@ -7,12 +7,13 @@
import ShortNoscriptWarning from "./ShortNoscriptWarning.svelte";
type Props = {
name: string;
current: string | null;
alt: string;
update: (avatar: string) => Promise<void>;
updated: boolean;
};
let { current, alt, update: onclick, updated }: Props = $props();
let { name, current, alt, update: onclick, updated }: Props = $props();
const MAX_AVATAR_BYTES = 1_000_000;
@ -40,7 +41,7 @@
</script>
<p class="text-center">
<Avatar url={avatarExists ? avatar : current} {alt} />
<Avatar {name} url={avatarExists ? avatar : current} {alt} />
</p>
<InputGroup class="mb-2">