Skip to content

Commit 97638dd

Browse files
committed
fix articles design
1 parent 85e4e96 commit 97638dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/ArticleList.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const articlesWithExcerpts = await Promise.all(
5353
<a
5454
href={`/articles/${article.id}`}
5555
class:list={[
56-
"relative rounded-xl bg-gray-50 p-1 shadow-md grayscale-50 duration-300 hover:grayscale-0 active:top-0.5",
56+
"relative rounded-xl bg-gray-50 p-1 shadow-md hover:shadow-gray-400 hover:brightness-110 active:top-0.5",
5757
additionalProps.cellClassName,
5858
]}
5959
>

src/pages/articles/[article].astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if (article.data.author && !author)
3636
<Picture
3737
loading="eager"
3838
formats={["avif", "webp"]}
39-
class="mx-auto max-h-400 max-w-md lg:rounded-2xl"
39+
class="mx-auto md:max-w-xl md:rounded-2xl"
4040
alt="イメージ画像"
4141
src={article.data.image}
4242
/>
@@ -45,7 +45,7 @@ if (article.data.author && !author)
4545
}
4646
<div
4747
id="meta"
48-
class="mx-auto mt-4 flex max-w-xl flex-wrap justify-around px-4 align-middle sm:gap-8 lg:mt-24"
48+
class="mx-auto mt-4 flex max-w-xl flex-wrap justify-around px-4 align-middle sm:gap-8"
4949
>
5050
{
5151
author && (
@@ -74,7 +74,7 @@ if (article.data.author && !author)
7474
{format(article.data.date, "yyyy-MM-dd")}
7575
</time>
7676
</div>
77-
<main class="mx-auto lg:mt-12">
77+
<main class="mx-auto">
7878
<h1 class="mx-auto my-8 max-w-2xl px-8 text-center text-2xl lg:text-3xl">
7979
{article.data.title}
8080
</h1>

0 commit comments

Comments
 (0)