Basic post display

This commit is contained in:
2023-04-01 14:31:29 +02:00
parent dccb94a792
commit d2f2214d65
13 changed files with 4325 additions and 2891 deletions

View File

@ -0,0 +1,20 @@
<script lang="ts">
import type { Account } from '$lib/mastodon/response';
export let account: Account;
let avatarDescription: string;
$: avatarDescription = `Avatar for ${account.acct}`
</script>
<img src="{account.avatar}" alt={avatarDescription}/>
<style>
img {
max-width: 50px;
max-height: 50px;
width: auto;
height: auto;
object-fit: contain;
border-radius: 3px;;
}
</style>