design: blur embed cards
This commit is contained in:
1 parent
54f358649d
commit
2683c3fa2d
1 file changed
+12
-2
@@ -30,10 +30,20 @@
|
|||||||
-->
|
-->
|
||||||
{#if embed_title && view != 'compact'}
|
{#if embed_title && view != 'compact'}
|
||||||
<Material
|
<Material
|
||||||
|
style="--img-url: {thumbnail_url}"
|
||||||
color="distinct"
|
color="distinct"
|
||||||
class="flex flex-col-reverse sm:flex-row overflow-hidden gap-4"
|
class="flex flex-col-reverse sm:flex-row
|
||||||
rounding="lg"
|
overflow-hidden gap-4 embed-card z-0 relative
|
||||||
|
dark:border-t-zinc-800"
|
||||||
|
rounding="xl"
|
||||||
>
|
>
|
||||||
|
{#if thumbnail_url}
|
||||||
|
<img
|
||||||
|
src={optimizeImageURL(thumbnail_url, 64)}
|
||||||
|
alt=""
|
||||||
|
class="-z-10 absolute top-0 left-0 w-full object-cover h-full opacity-10 brightness-150 dark:brightness-90 dark:opacity-20 blur-2xl"
|
||||||
|
/>
|
||||||
|
{/if}
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
{#if richURL}
|
{#if richURL}
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
Reference in new issue
Block a user