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
+1 -1
View File
@@ -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" />
+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>