Initial styling of blog homepage

This commit is contained in:
SkyfallWasTaken 2024-07-07 20:48:38 +01:00
parent e8abbd26f8
commit f554e37acf

View file

@ -20,7 +20,7 @@ const posts = (await getCollection("blog")).sort(
<Header />
<main>
<section>
<ul>
<ul class="container grid grid-cols-3 gap-6 m-4 text-text">
{
posts.map((post) => (
<li>
@ -29,10 +29,11 @@ const posts = (await getCollection("blog")).sort(
width={720}
height={360}
src={post.data.heroImage}
class="rounded-md mb-3"
alt=""
/>
<h4 class="title">{post.data.title}</h4>
<p class="date">
<h4 class="text-2xl font-bold">{post.data.title}</h4>
<p>
<FormattedDate date={post.data.pubDate} />
</p>
</a>