Skip to content

Commit 634a9d1

Browse files
committed
画像がない場合の表示を単色に
1 parent 9a4b1d3 commit 634a9d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/common/ProjectList.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const { projects, variant = "full" } = props;
3939
}}
4040
/>
4141
:
42-
<div class="aspect-5/3 w-full skeleton" />
42+
<div class="aspect-5/3 w-full bg-gray-100" />
4343
}
4444
<div class="p-4">
4545
<h3 class="text-xl font-bold text-gray-800">

src/pages/projects/[...id].astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if (project.data.status !== "dead") {
4141
title={project.data.app.name}
4242
description={project.data.app.description}
4343
focus={Focus.projects}
44-
image={project.data.thumbnail?.src}
44+
image={project.data.thumbnail?.src ?? null}
4545
>
4646
<main>
4747
<div
@@ -67,7 +67,7 @@ if (project.data.status !== "dead") {
6767
}}
6868
/>
6969
:
70-
<div class="aspect-5/3 w-full lg:w-150 lg:rounded-2xl skeleton" />
70+
<div class="aspect-5/3 w-full lg:w-150 lg:rounded-2xl bg-gray-100" />
7171
}
7272
<div class="container mx-auto mt-8 px-4 lg:mx-0 lg:flex-1">
7373
<p class="flex items-center gap-1 text-gray-600">

0 commit comments

Comments
 (0)