Skip to content

Commit 68040fe

Browse files
committed
feat: Cardコンポーネントを使用する
1 parent 4f311f3 commit 68040fe

File tree

5 files changed

+15
-21
lines changed

5 files changed

+15
-21
lines changed

2025/src/components/KeynoteSpeakers.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import { Users } from "@lucide/astro";
3+
import Card from "./Card.astro";
34
---
45

56
<section
@@ -13,9 +14,7 @@ import { Users } from "@lucide/astro";
1314
</h2>
1415
<div class="mx-auto h-1 w-16 bg-emerald-500"></div>
1516
</div>
16-
<div
17-
class="mx-auto max-w-2xl rounded-lg border border-emerald-100 bg-card p-8 text-center"
18-
>
17+
<Card class="mx-auto max-w-2xl p-8 text-center">
1918
<Users class="mx-auto mb-4 h-12 w-12 text-emerald-600 md:h-16 md:w-16" />
2019

2120
<h3 class="mx-auto text-center text-lg font-semibold md:text-xl">
@@ -26,6 +25,6 @@ import { Users } from "@lucide/astro";
2625
>
2726
基調講演者は近日公開予定です。お楽しみに!
2827
</p>
29-
</div>
28+
</Card>
3029
</div>
3130
</section>

2025/src/components/Schedule.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Card from "./Card.astro";
23
import { CalendarClock } from "@lucide/astro";
34
---
45

@@ -10,9 +11,7 @@ import { CalendarClock } from "@lucide/astro";
1011
</h2>
1112
<div class="mx-auto h-1 w-16 bg-emerald-500"></div>
1213
</div>
13-
<div
14-
class="mx-auto max-w-2xl border border-emerald-100 bg-card p-8 text-center text-card-foreground shadow-sm"
15-
>
14+
<Card class="mx-auto max-w-2xl p-8">
1615
<CalendarClock
1716
class="mx-auto mb-4 h-12 w-12 text-emerald-600 md:h-16 md:w-16"
1817
/>
@@ -24,6 +23,6 @@ import { CalendarClock } from "@lucide/astro";
2423
>
2524
カンファレンスの詳細なスケジュールは近日公開されます
2625
</p>
27-
</div>
26+
</Card>
2827
</div>
2928
</section>

2025/src/components/Sponsors/index.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Card from "../Card.astro";
23
import {
34
Heart,
45
Calendar,
@@ -19,9 +20,7 @@ import {
1920
</div>
2021

2122
<div class="mx-auto mb-12 max-w-4xl">
22-
<div
23-
class="mb-8 rounded-lg border border-emerald-100 bg-card text-card-foreground shadow-sm"
24-
>
23+
<Card class="mb-8">
2524
<div class="p-6 md:p-8">
2625
<div class="mb-6">
2726
<h3
@@ -105,7 +104,7 @@ import {
105104
</p>
106105
</div>
107106
</div>
108-
</div>
107+
</Card>
109108
</div>
110109
</div>
111110
</section>

2025/src/components/Staff/StaffCard.astro

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Card from "../Card.astro";
23
import GithubIcon from "@/assets/github-icon.png?url";
34
import XIcon from "@/assets/x-icon.png?url";
45
import BlueSkyIcon from "@/assets/bluesky.jpg?url";
@@ -14,10 +15,7 @@ type Props = {
1415
const { name, alsoKnownAs, image, github, x, bluesky }: Props = Astro.props;
1516
---
1617

17-
<div
18-
class="rounded-lg border border-emerald-100 bg-card text-card-foreground shadow-sm transition-shadow hover:shadow-md"
19-
data-v0-t="card"
20-
>
18+
<Card class="transition-shadow hover:shadow-md">
2119
<div class="grid grid-cols-1 gap-2 p-3">
2220
<div class="grid place-items-center">
2321
<span
@@ -85,4 +83,4 @@ const { name, alsoKnownAs, image, github, x, bluesky }: Props = Astro.props;
8583
}
8684
</div>
8785
</div>
88-
</div>
86+
</Card>

2025/src/components/Venue.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import VenueMap from "@/components/VenueMap.astro";
3+
import Card from "./Card.astro";
34
import { MapPin, Calendar, Clock } from "@lucide/astro";
45
---
56

@@ -10,9 +11,7 @@ import { MapPin, Calendar, Clock } from "@lucide/astro";
1011
<div class="mx-auto h-1 w-16 bg-emerald-500"></div>
1112
</div>
1213
<div class="grid items-center gap-6 md:grid-cols-2">
13-
<div
14-
class="rounded-lg border border-emerald-100 bg-card text-card-foreground shadow-sm"
15-
>
14+
<Card>
1615
<div class="p-4">
1716
<h3 class="mb-3 text-lg font-semibold md:text-xl">
1817
アキバプラザ・アキバホール
@@ -32,7 +31,7 @@ import { MapPin, Calendar, Clock } from "@lucide/astro";
3231
</div>
3332
</div>
3433
</div>
35-
</div>
34+
</Card>
3635
<div class="h-64 overflow-hidden rounded-lg bg-gray-200 md:h-80">
3736
<VenueMap />
3837
</div>

0 commit comments

Comments
 (0)