This commit is contained in:
2025-05-21 01:16:40 +09:00
parent 09ed1c493a
commit 59678cf8b9
7 changed files with 75 additions and 4 deletions
+2 -3
View File
@@ -21,15 +21,14 @@ const HomePage = () => {
return (
<div className="flex flex-wrap gap-4 p-4">
{posts.map((post) => (
{posts.map (post => (
<Link
to={`/posts/${post.id}`}
key={post.id}
className="w-40 h-40 overflow-hidden rounded-lg shadow-md hover:shadow-lg"
>
<img
src={post.image_url}
alt={post.title}
src={post.thumbnail}
className="object-cover w-full h-full"
/>
</Link>