Skip to content

Commit b3a75ba

Browse files
committed
feat(Sponsors): 両端のpaddingを追加
1 parent 8a631cf commit b3a75ba

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

2025/src/components/Sponsors/Companies.astro

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,26 @@ const getGridClasses = (rank: string, count: number) => {
7777
---
7878

7979
<Heading>企業スポンサー</Heading>
80-
{
81-
rankOrder.map(
82-
(rank) =>
83-
sponsorsByRank[rank] && (
84-
<>
85-
<h4 class="mb-6 text-center text-2xl font-bold text-gray-800">
86-
{rankNameMap[rank]}
87-
</h4>
88-
<div
89-
class={getGridClasses(rank, sponsorsByRank[rank].length).join(" ")}
90-
>
91-
{sponsorsByRank[rank].sort().map((sponsor) => (
92-
<Company {sponsor} />
93-
))}
94-
</div>
95-
</>
96-
),
97-
)
98-
}
80+
<div class="container mx-auto px-4">
81+
{
82+
rankOrder.map(
83+
(rank) =>
84+
sponsorsByRank[rank] && (
85+
<>
86+
<h4 class="mb-6 text-center text-2xl font-bold text-gray-800">
87+
{rankNameMap[rank]}
88+
</h4>
89+
<div
90+
class={getGridClasses(rank, sponsorsByRank[rank].length).join(
91+
" ",
92+
)}
93+
>
94+
{sponsorsByRank[rank].sort().map((sponsor) => (
95+
<Company {sponsor} />
96+
))}
97+
</div>
98+
</>
99+
),
100+
)
101+
}
102+
</div>

0 commit comments

Comments
 (0)