Skip to content

Commit 40a0572

Browse files
committed
style: apply format
1 parent 377e6ee commit 40a0572

File tree

5 files changed

+21
-27
lines changed

5 files changed

+21
-27
lines changed

2025/src/components/Schedule/TimeTable.astro

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,24 @@ const [cardClass, Icon] = getScheduleCardStyle(title);
1919
<Card class=`p-2 mb-5 ${cardClass}`>
2020
<div class="p-4">
2121
<div class="space-y-2">
22-
<div class="flex text-sm items-center">
22+
<div class="flex items-center text-sm">
2323
<Clock class="mr-2 h-4 w-4 flex-shrink-0 text-green-900" />
2424
<span class="font-bold text-gray-800"
2525
>{formatTime(start_at)} - {formatTime(end_at)}</span
2626
>
27-
{speaker_name && (
28-
<div class="flex items-center ml-5">
29-
<User class="h-4 w-4 mr-2 text-gray-600" />
30-
<span class="text-gray-600">{speaker_name}</span>
31-
</div>
32-
)}
27+
{
28+
speaker_name && (
29+
<div class="ml-5 flex items-center">
30+
<User class="mr-2 h-4 w-4 text-gray-600" />
31+
<span class="text-gray-600">{speaker_name}</span>
32+
</div>
33+
)
34+
}
3335
</div><div class="flex items-center">
34-
<Icon class="mr-3 flex-shrink-0 text-gray-900 h-4 w-4" />
35-
<h3 class="min-w-0 flex-1 text-base leading-tight font-semibold">
36-
{title}
37-
</h3>
36+
<Icon class="mr-3 h-4 w-4 flex-shrink-0 text-gray-900" />
37+
<h3 class="min-w-0 flex-1 text-base leading-tight font-semibold">
38+
{title}
39+
</h3>
3840
</div>
3941
</div>
4042
</div>

2025/src/components/Schedule/index.astro

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ const timetable = await getCollection("timetable");
77
---
88

99
<section id="schedule" class="bg-white py-10 md:py-16">
10-
<div class="container mx-auto px-4 max-w-4xl">
10+
<div class="container mx-auto max-w-4xl px-4">
1111
<Heading>スケジュール</Heading>
12-
{
13-
timetable
14-
.shift()
15-
?.data.map((schedule) => <TimeTable {...schedule} />)
16-
}
12+
{timetable.shift()?.data.map((schedule) => <TimeTable {...schedule} />)}
1713
</div>
1814
</section>

2025/src/components/Schedule/logic.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ export const getScheduleCardStyle = (title: string) => {
1111
}
1212

1313
const isOtherEvent = ["Opening", "Closing", "After party"].includes(title);
14-
if(isOtherEvent) {
15-
return ["bg-blue-50 border-blue-200", MicVocal]
14+
if (isOtherEvent) {
15+
return ["bg-blue-50 border-blue-200", MicVocal];
1616
}
1717

18-
1918
return ["bg-green-50", MicVocal];
2019
};
2120

2025/src/components/Sponsors/Companies.astro

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ const rankNameMap = {
3434
};
3535
3636
const getGridClasses = (rank: string, count: number) => {
37-
const baseClasses = [
38-
"mb-8",
39-
"grid",
40-
"place-items-center",
41-
"gap-4",
42-
];
37+
const baseClasses = ["mb-8", "grid", "place-items-center", "gap-4"];
4338
4439
if (rank === "platinum") {
4540
return [...baseClasses, "grid-cols-1"];

2025/src/components/Sponsors/Company.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ const { rank, name, url, image } = props.sponsor;
1313
1414
let imageUrl = "";
1515
try {
16-
const module = await import(/* @vite-ignore */ `../../assets/sponsors/${image}?url`);
16+
const module = await import(
17+
/* @vite-ignore */ `../../assets/sponsors/${image}?url`
18+
);
1719
imageUrl = module.default;
1820
} catch (e) {
1921
console.error(`Icon not found: ${image}`);

0 commit comments

Comments
 (0)