feat: recolor ui

This commit is contained in:
Mat12143 2025-08-02 10:50:35 +02:00
parent 795a5a3a19
commit 3ee764ad03
3 changed files with 18 additions and 15 deletions

View file

@ -12,14 +12,16 @@
<div class="flex h-full w-full flex-col items-center gap-2 overflow-y-auto">
{#if suggestions.length == 0}
<p>No suggestions yet! Try to add a new one using the <b>Add</b> button</p>
<p>No suggestions yet! Try to add a new one using the Add button</p>
{/if}
{#each suggestions as sug, idx}
<div class="flex h-[80px] w-full flex-row gap-2 rounded border-2 border-indigo-600 bg-indigo-500 p-2 shadow-md duration-100 hover:bg-indigo-400">
<div class="flex w-3/4 flex-row gap-2 items-center">
<div
class="flex h-[80px] w-full flex-row gap-2 rounded-md border-dark-pine-muted bg-light-pine-overlay p-2 shadow-md duration-100 hover:bg-dark-pine-base/20 dark:bg-dark-pine-overlay hover:dark:bg-light-pine-base/20"
>
<div class="flex w-3/4 flex-row items-center gap-2">
<img class="w-[60px] min-w-[60px] rounded" src={`https://lastfm.freetls.fastly.net/i/u/174s/${sug.image_id}.png`} alt="Song cover" />
<div class="text-white flex-col w-fit h-fit">
<div class="h-fit w-fit flex-col text-white">
<b>{sug.title}</b>
<p>{sug.artist}</p>
</div>
@ -27,15 +29,15 @@
<div class="flex w-1/4 flex-row items-center justify-center gap-2">
<button
class="text-green-500"
onclick={() => {
vote(idx, 1, sug.uuid)
onclick={async () => {
await vote(idx, 1, sug.uuid)
}}><ThumbsUp /></button
>
<p class="font-semibold text-white">{sug.upvote}</p>
<button
class="duration-100 hover:scale-150 text-red-500"
onclick={() => {
vote(idx, -1, sug.uuid)
class="text-red-500 duration-100 hover:scale-150"
onclick={async () => {
await vote(idx, -1, sug.uuid)
}}><ThumbsDown /></button
>
</div>