Skip to content

Commit e0748e1

Browse files
authored
Merge pull request #184 from OUCC/workshop-flex-to-grid
講習会ページのレイアウトをflexからgridへ更新
2 parents 614f1b6 + feff331 commit e0748e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/workshop/Workshop2025Section.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const dateFormat = new Intl.DateTimeFormat('ja-JP', {
7979
2025年度の講習会について情報をまとめています。開始時刻や開催場所などの詳細や他の講習会については随時更新します。是非お気軽にご参加ください!
8080
</p>
8181
<p>各回1~3時間程度の予定となっています。途中退室も可能です。</p>
82-
<ul class="flex flex-wrap gap-5">
82+
<ul class="grid grid-cols-[repeat(auto-fit,minmax(18rem,1fr))] gap-5">
8383
{
8484
items.map(({ date, ...item }) => (
8585
<WorkshopCard {...item} date={dateFormat.format(date)} />

src/components/workshop/WorkshopCard.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { title, date, description, place } = Astro.props
1111
---
1212

1313
<li
14-
class="flex min-w-[18rem] flex-1 flex-col gap-2 rounded-xl border border-slate-300 bg-white p-5 drop-shadow"
14+
class="flex flex-1 flex-col gap-2 rounded-xl border border-slate-300 bg-white p-5 drop-shadow"
1515
>
1616
<h2 class="text-xl font-bold">{title}</h2>
1717
<p class="flex items-center gap-2 text-slate-600">

0 commit comments

Comments
 (0)