mirror of
https://github.com/SkyfallWasTaken/skyfalldev.git
synced 2024-11-10 04:09:38 +00:00
Initial styling of blog homepage
This commit is contained in:
parent
e8abbd26f8
commit
f554e37acf
1 changed files with 4 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue