add personal address en mieux

This commit is contained in:
fabien committed 2026-08-19 00:08:58 +02:00
1 parent d2a153536f
commit 21e96702a0
15 files changed
+48 -29

No files matched your search

@@ -131,19 +131,22 @@
{#each addresses as address (address.id) }
<div class="m-2">
<div class="bg-stone-600 rounded flex inline px-2 py-1">
<span>{address.type} : </span>
<div class="dark:bg-stone-600 bg-stone-300 rounded flex inline px-2 py-1">
<span class="inline-block w-20">{address.type} : </span>
<span class="font-bold">{address.address}</span>
<button class="ml-4 pointer" onclick={()=>{handleDeleteAddress(address.id)}}>X</button>
<button class="ml-4 pointer" onclick={()=>{handleDeleteAddress(address.id)}}>
<i class="icon-cancel"></i>
</button>
</div>
</div>
{/each}
<div class="flex gap-2 mt-6">
<div>
<select bind:value={newAddress.type} class="textinput">
<option>Email</option>
<option>Telegram</option>
<option>Whatsapp</option>
<option value="email">Email</option>
<option value="signal">Signal</option>
<option value="telegram">Telegram</option>
<option value="whatsapp">Whatsapp</option>
</select>
</div>
<div class="flex-1">
+1 -1
View File
@@ -28,7 +28,7 @@ h2 {
@apply cursor-pointer;
}
.bt {
@apply cursor-pointer rounded bg-stone-200 px-4 py-1 hover:bg-stone-300 dark:bg-stone-800 dark:hover:bg-stone-700;
@apply cursor-pointer rounded bg-stone-300 px-4 py-1 font-bold hover:bg-stone-200 dark:bg-stone-800 dark:hover:bg-stone-700;
}
.menuitem {
@apply text-stone-800 text-stone-950 dark:text-stone-300 hover:dark:text-stone-50;