This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
|
||||
@@ -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