init: initial commit

This commit is contained in:
2023-02-11 17:11:55 +01:00
commit 3b2b65447d
41 changed files with 5480 additions and 0 deletions

20
src/lib/Avatar.svelte Normal file
View File

@@ -0,0 +1,20 @@
<script lang="ts">
export let username: string = '';
export let avatar: string = '/troll_haz2.png';
export let color: string = 'var(--base-400)';
export let size: string = 'var(--avatar-size)';
</script>
<div class="avatar" style:--color="{color}" style:--size="{size}" on:click>
<img src="{avatar}" alt="{`${username}'s avatar`}">
</div>
<style>
.avatar, .avatar > img {
width: var(--size);
height: var(--size);
border-radius: 9999px;
overflow: hidden;
background-color: var(--color);
}
</style>