24 lines
705 B
Svelte
24 lines
705 B
Svelte
<script lang="ts">
|
|
import { BenutzerClient, ObjektKomplettClient } from "#components/Ausweis/types.js";
|
|
import DashboardAusweis from "#components/Dashboard/DashboardAusweis.svelte";
|
|
import DashboardObjekt from "#components/Dashboard/DashboardObjekt.svelte";
|
|
|
|
export let user: BenutzerClient;
|
|
export let objekte: ObjektKomplettClient[];
|
|
</script>
|
|
|
|
<h1>Gebäudeübersicht</h1>
|
|
|
|
<hr>
|
|
|
|
<div class="relative mb-6">
|
|
<button class="button flex flex-row rounded-lg gap-2 bg-secondary text-white text-center">
|
|
Gebäude anlegen +
|
|
</button>
|
|
</div>
|
|
|
|
<div class="columns columns-1 md:columns-2 lg:columns-3 gap-4">
|
|
{#each objekte as objekt}
|
|
<DashboardObjekt {objekt}></DashboardObjekt>
|
|
{/each}
|
|
</div> |