Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt
2023-05-19 13:06:28 +02:00
parent 3aacabbb2c
commit 1645190643
2 changed files with 36 additions and 4 deletions

View File

@ -24,7 +24,7 @@ const posts = await getPosts();
<div class="flex gap-4 mt-3 flex-wrap">
{
posts.length > 0 ? (
posts.reverse().map((post) => (
posts.map((post) => (
<a href={`/posts/${post.id}`}>
<article class="text-gray bg-gray-light px-5 py-3 rounded-md shadow-md w-64 text-center hover:-translate-y-1 transition-transform">
<h3>{post.title}</h3>