Dashboard

This commit is contained in:
Jens Cornelsen
2025-04-12 19:22:19 +02:00
parent 43d2c114f4
commit 40df8c7104
2 changed files with 41 additions and 38 deletions

View File

@@ -21,12 +21,13 @@
dropdownOpen = !dropdownOpen;
}
</script>
<h1>{objekt.adresse}, {objekt.plz} {objekt.ort}</h1>
<hr>
<div class="relative mb-6">
<div class="justify-between flex flex-row items-center">
<h2 class="text-2xl font-semibold">{aufnahme.name}</h2>
{#if aufnahme.ausweis_pruefen}
<AusweisPruefenNotification {aufnahme} {benutzer}></AusweisPruefenNotification>
{/if}
<div>{objekt.adresse}, {objekt.plz} {objekt.ort}</div>
<div class="relative">
<button class="button flex flex-row rounded-lg gap-2 bg-secondary text-white text-center" on:click={toggleDropdown}>
Ausweis erstellen +
</button>
@@ -40,6 +41,8 @@
</div>
{/if}
</div>
</div>
<hr>
<div class="my-4 grid grid-cols-1 md:grid-cols-1 lg:grid-cols-1 gap-2">
@@ -47,7 +50,7 @@
{#if aufnahme.bilder.length > 0}
<Carousel perPage={3}>
{#each aufnahme.bilder as bild, i (i)}
<img src="/bilder/{bild.id}.jpg" alt={bild.kategorie} class="max-h-[25vh] h-full w-full object-contain">
<img src="/bilder/{bild.id}.jpg" alt={bild.kategorie} class="max-h-[15vh] h-full w-full object-contain">
{/each}
<span slot="left-control" class="p-2.5 bg-opacity-50 bg-white block rounded-full"><ChevronLeft size={24}></ChevronLeft></span>
<span slot="right-control" class="p-2.5 bg-opacity-50 bg-white block rounded-full"><ChevronRight size={24}></ChevronRight></span>