feat: add list/upload flag UI

This commit is contained in:
Sam 2023-05-29 00:18:02 +02:00
parent a4698e179a
commit 8b03521382
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
10 changed files with 223 additions and 12 deletions

View file

@ -0,0 +1,20 @@
<script lang="ts">
import { flagURL, type PrideFlag } from "$lib/api/entities";
import { Button } from "sveltestrap";
export let flag: PrideFlag;
</script>
<Button outline class="m-1">
<img class="flag" src={flagURL(flag)} alt={flag.description ?? flag.name} />
{flag.name}
</Button>
<style>
.flag {
height: 2rem;
max-width: 200px;
border-radius: 3px;
margin-left: -5px;
}
</style>