made thoughts distinct from blog posts

This commit is contained in:
2026-11-10 13:52:11 +00:00
parent ff839c5077
commit 5e3b5200e3

View File

@@ -100,7 +100,11 @@
<div bind:this={cardElements[index]} class="min-w-0"> <div bind:this={cardElements[index]} class="min-w-0">
<a <a
href={item.link} 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" class="group dynamic-container flex bg-ctp-surface1 p-3 pl-2"
> >
{#if item.image} {#if item.image}
@@ -109,9 +113,19 @@
</div> </div>
{/if} {/if}
<div style:padding-left={!item.image ? '4px' : 0}> <div style:padding-left={!item.image ? '4px' : 0}>
<p class="font-medium group-hover:text-ctp-mauve group-hover:underline"> {#if item.type == 2}
{item.title} <p
</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} {#if item.description != item.title}
<p class="text-muted-foreground mt-1 line-clamp-2 text-sm"> <p class="text-muted-foreground mt-1 line-clamp-2 text-sm">