Skip to content

Commit

Permalink
minor ui improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave-lab12 committed Sep 14, 2023
1 parent d7538f0 commit fa852b1
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,23 @@ const blogsWithoutFirstPost = blogs?.filter(

<Layout title="Blog">
<Hero {...firstPost} />
<ResponsiveCards gap="112px" width="580px">
{
blogsWithoutFirstPost?.map((blog) => {
const { description, id, photo_url, title, post_slug, created_at } =
blog;
return (
<BlogCard
title={title}
description={description}
image={photo_url}
url={id}
created_at={created_at}
/>
);
})
}
</ResponsiveCards>
<div class="pb-4">
<ResponsiveCards gap="112px" width="580px">
{
blogsWithoutFirstPost?.map((blog) => {
const { description, id, photo_url, title, post_slug, created_at } =
blog;
return (
<BlogCard
title={title}
description={description}
image={photo_url}
url={id}
created_at={created_at}
/>
);
})
}
</ResponsiveCards>
</div>
</Layout>

0 comments on commit fa852b1

Please sign in to comment.