This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user