troylusty.com/src/components/ShowcasePost.astro

29 lines
715 B
Text
Raw Normal View History

---
import FormattedDate from "@components/FormattedDate.astro";
type Props = {
collection: any;
};
const { collection } = Astro.props;
---
<li>
<a
2024-12-28 16:19:26 +00:00
class="group bg-none hover:bg-tertiary/30"
href={`/${collection.collection}/${collection.slug}`}
>
<article class="flex flex-col">
2025-01-17 22:16:14 +00:00
<h3 class="mb-1 text-balance font-semibold">
<span class="text-secondary">{collection.data.title}</span><span
2024-12-28 16:19:26 +00:00
class="ml-2 text-tertiary transition-colors group-hover:text-accent"
>{collection.data.description}</span
>
</h3>
<time class="block text-sm text-accent"
><FormattedDate date={collection.data.date} /></time
>
</article>
</a>
</li>