Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/bluesky-home. flo-bit.dev/bluesky-home
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536---import FormattedDate from "./FormattedDate.astro";
const { post } = Astro.props;
console.log(post);---
<article class="relative isolate flex flex-col gap-8 md:flex-row group"> <div> <div class={"flex items-center gap-x-4 text-xs"}> <time datetime={post.createdAt} class="text-base-500 shrink-0"> <FormattedDate date={post.createdAt} /> </time> </div> <div class="max-w-xl"> <div class="mt-3 text-lg font-semibold leading-6 text-base-900 dark:text-base-50" > <a href={`/blog/posts/${post.title?.replaceAll(" ", "-")}/`}> <span class="absolute inset-0"></span> {post.title} </a>
<div class="absolute -inset-2 md:-inset-4 rounded-2xl opacity-0 group-hover:opacity-100 scale-95 group-hover:scale-100 bg-base-200/30 dark:bg-base-800/30 -z-10 transition-all duration-150" > </div> </div> <p class="mt-5 text-sm leading-6 text-base-600 dark:text-base-400"> {post.description} </p> </div> </div></article>