Skip to content
This repository was archived by the owner on May 31, 2026. It is now read-only.

Commit 9b5f536

Browse files
committed
fix: display of impact together
1 parent e5db7ee commit 9b5f536

2 files changed

Lines changed: 24 additions & 14 deletions

File tree

src/components/ui/StatsSection.astro

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,43 @@ const {
1717
stats,
1818
title,
1919
description,
20-
variant = "default",
21-
bgColor = "",
2220
} = Astro.props;
2321
24-
const wrapperClass =
25-
bgColor || (variant === "card" ? "bg-tuhura-gray rounded-xl p-8" : "");
22+
2623
---
2724

28-
<section class="py-20">
25+
<section class="mt-10 bg-tuhura-gray rounded-2xl p-8 md:p-12">
2926
<div class="container-custom">
3027
{title && (
3128
<div class="text-center max-w-3xl mx-auto mb-16">
3229
<h2 class="text-3xl md:text-4xl font-bold mb-6">{title}</h2>
3330
{description && <p class="text-xl text-gray-600">{description}</p>}
3431
</div>
3532
)}
36-
37-
<div class={wrapperClass}>
33+
34+
<div>
3835
<div class={`grid grid-cols-1 md:grid-cols-${stats.length} gap-6 text-center`}>
3936
{stats.map((stat) => (
4037
<div>
41-
<div class="text-3xl font-bold text-tuhura-green">{stat.value}</div>
42-
<p class="text-gray-600 mt-1">{stat.description}</p>
43-
{variant === "default" && <p class="text-sm text-gray-500 mt-1">{stat.title}</p>}
38+
<div class="text-4xl md:text-5xl font-bold text-tuhura-green mb-2">{stat.value}</div>
39+
<p class="text-gray-600 text-lg">{stat.description}</p>
40+
4441
</div>
4542
))}
4643
</div>
4744
</div>
4845
</div>
4946
</section>
47+
48+
49+
<!-- <div class="mt-20 bg-tuhura-gray rounded-2xl p-8 md:p-12">
50+
<h2 class="text-2xl md:text-3xl font-bold text-center mb-12">Our Impact Together</h2>
51+
<div class="grid grid-cols-2 md:grid-cols-4 gap-8">
52+
{impactStats.map((stat) => (
53+
<div class="text-center">
54+
<div class="text-4xl md:text-5xl font-bold text-tuhura-green mb-2">{stat.number}</div>
55+
<div class="text-gray-600 text-lg">{stat.label}</div>
56+
</div>
57+
))}
58+
</div>
59+
</div>-->

src/pages/support-us.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const donationImpact = [
107107
in breaking down barriers to technology education.
108108
</p>
109109
</div>
110-
110+
111111
<StatsSection
112112
title="Our Impact Together"
113113
stats={impactStats.map(stat => ({
@@ -120,10 +120,10 @@ const donationImpact = [
120120
</div>
121121
</section>
122122

123-
<Partners />
123+
124124

125125
<!-- Donation Impact -->
126-
<section class="py-20 bg-white">
126+
<section class="py-10 bg-white">
127127
<div class="container-custom">
128128
<div class="text-center max-w-4xl mx-auto mb-16">
129129
<h2 class="text-3xl md:text-4xl font-bold mb-6">Your Kōha Creates Real Impact</h2>
@@ -151,7 +151,7 @@ const donationImpact = [
151151
</div>
152152
</div>
153153
</section>
154-
154+
<Partners />
155155
<section class="py-20 bg-gray-50">
156156
<div class="container-custom">
157157
<div class="text-center max-w-4xl mx-auto mb-16">

0 commit comments

Comments
 (0)