Skip to content

Commit

Permalink
fix: blurred bg image cover on quib component
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Dec 29, 2024
1 parent 9caea8b commit 7be9d9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/lib/components/quib.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@
</p>
{:else}
<div
class="relative flex max-h-[20rem] cursor-pointer justify-center overflow-hidden rounded-2xl inner-border inner-border-base-content/15"
class="relative z-10 flex max-h-[25rem] cursor-pointer justify-center overflow-hidden rounded-2xl inner-border inner-border-base-content/15"
>
<!-- blurred img -->
<div
class="absolute inset-0 -z-10 scale-150 bg-cover bg-center opacity-50 blur-xl"
style="background-image: url({quib.cover});"
></div>
<img src={quib.cover} alt="" class="object-contain" />
</div>
{/if}
Expand Down

0 comments on commit 7be9d9d

Please sign in to comment.