add home structure

This commit is contained in:
Francesco De Carlo 2025-08-02 05:31:36 +02:00
parent 9faba7dbd3
commit 0066166765
3 changed files with 35 additions and 2 deletions

View file

@ -0,0 +1,17 @@
<script>
let name = "dio nastro";
let participants = 12;
let locked = true;
</script>
<div class="room bg-white rounded-lg shadow-md p-6 flex flex-col gap-2 items-start">
<h2 class="text-xl font-semibold flex items-center gap-2">
{name}
{#if locked}
<span class="text-gray-500">🔒</span>
{/if}
</h2>
<span class="text-gray-600 text-sm">
{participants} participant{participants === 1 ? '' : 's'}
</span>
</div>

View file

@ -1,8 +1,24 @@
<script lang="ts"> <script lang="ts">
import RoomList from "$lib/components/RoomList.svelte"
</script> </script>
<div class="flex h-full w-full items-center justify-center p-4"> <div class="h-full w-full flex-row justify-center p-4">
<div class=""> <div class="relative min-h-screen justify-center justify-items-center">
<h1>Scan your nearby rooms</h1> <h1>Scan your nearby rooms</h1>
<img src="/smerdoradar.gif" alt="radar" class="h-64 w-64" />
<div class="max-h-50 w-full overflow-y-auto">
<RoomList />
<RoomList />
<RoomList />
<RoomList />
<RoomList />
<RoomList />
<RoomList />
<RoomList />
<RoomList />
</div>
<div class="fixed bottom-0 right-0">
<button class="mt-4 justify-end rounded bg-blue-500 px-6 py-2 text-white transition-colors hover:bg-blue-600 active:bg-blue-700"> + </button>
</div>
</div> </div>
</div> </div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 KiB