made thoughts distinct from blog posts
This commit is contained in:
@@ -100,7 +100,11 @@
|
||||
<div bind:this={cardElements[index]} class="min-w-0">
|
||||
<a
|
||||
href={item.link}
|
||||
style:--container-color={item.type == 0 ? 'var(--ctp-red)' : 'var(--ctp-lavender)'}
|
||||
style:--container-color={item.type == 0
|
||||
? 'var(--ctp-red)'
|
||||
: item.type == 2
|
||||
? 'var(--ctp-pink)'
|
||||
: 'var(--ctp-lavender)'}
|
||||
class="group dynamic-container flex bg-ctp-surface1 p-3 pl-2"
|
||||
>
|
||||
{#if item.image}
|
||||
@@ -109,9 +113,19 @@
|
||||
</div>
|
||||
{/if}
|
||||
<div style:padding-left={!item.image ? '4px' : 0}>
|
||||
<p class="font-medium group-hover:text-ctp-mauve group-hover:underline">
|
||||
{item.title}
|
||||
</p>
|
||||
{#if item.type == 2}
|
||||
<p
|
||||
class="line-clamp-3 font-medium italic group-hover:text-ctp-mauve group-hover:underline"
|
||||
>
|
||||
{item.title}
|
||||
</p>
|
||||
{:else}
|
||||
<p
|
||||
class="line-clamp-2 font-medium group-hover:text-ctp-mauve group-hover:underline"
|
||||
>
|
||||
{item.title}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{#if item.description != item.title}
|
||||
<p class="text-muted-foreground mt-1 line-clamp-2 text-sm">
|
||||
|
||||
Reference in New Issue
Block a user