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

Commit 287c4e2

Browse files
committed
feat: improve support us
1 parent 7a2b979 commit 287c4e2

2 files changed

Lines changed: 13 additions & 30 deletions

File tree

src/components/ui/ProgramCards.astro

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ interface Program {
77
subtitle?: string;
88
description: string;
99
icon: string;
10-
href?: string;
11-
button?: {
10+
cta?: {
1211
text: string;
13-
onclick?: string;
12+
href: string;
1413
};
1514
features: string[];
1615
}
@@ -84,20 +83,10 @@ const gridCols = {
8483
iconColor="text-tuhura-green"
8584
/>
8685
</div>
87-
{program.href && (
88-
<div class="font-medium text-tuhura-green group-hover:underline">
89-
Learn More →
90-
</div>
91-
)}
92-
{program.button && (
93-
<div class="mt-4">
94-
<button
95-
class="btn btn-primary"
96-
onclick={program.button.onclick}
97-
>
98-
{program.button.text}
99-
</button>
100-
</div>
86+
{program.cta && (
87+
<a href={program.cta.href} class="font-medium text-tuhura-green group-hover:underline">
88+
{program.cta.text}
89+
</a>
10190
)}
10291
</Element>
10392
);

src/pages/support-us.astro

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ const supportTypes = [
1717
features: [
1818
"$20 funds one rangatahi for a 2-hour session",
1919
"$800 supports one rangatahi for a full year",
20-
"$10,000 funds an entire session location for a year",
20+
"$12,000 funds an entire session location for a year",
2121
"One-off or recurring monthly donations",
2222
"Tax-deductible charitable giving receipts",
2323
],
2424
icon: "heroicons:heart",
2525
cta: {
26-
type: "button",
26+
type: "link",
2727
text: "Make a Kōha",
28-
onclick: "demo.showModal()",
28+
onclick: "https://donate.tuhuratech.org.nz",
2929
},
3030
},
3131
{
@@ -91,14 +91,14 @@ const donationImpact = [
9191
---
9292

9393
<Layout
94-
title="Support Us | Tautoko"
94+
title="Support Us"
9595
description="Support Tūhura Tech and help grow our impact providing free technology education for rangatahi across Aotearoa."
9696
>
9797
<section class="pt-20 pb-16 md:pt-28 md:pb-24">
9898
<div class="container-custom">
9999
<div class="mx-auto max-w-4xl text-center">
100100
<h1 class="mb-6 text-4xl leading-tight font-bold md:text-5xl">
101-
<span class="gradient-text">Tautoko (Support Us)</span>
101+
<span class="gradient-text">Support Us</span>
102102
</h1>
103103
<p class="text-xl leading-relaxed text-gray-600 md:text-2xl">
104104
Join our mission to empower the next generation of rangatahi through
@@ -172,7 +172,7 @@ const donationImpact = [
172172
<div class="container-custom">
173173
<div class="mx-auto mb-16 max-w-4xl text-center">
174174
<h2 class="mb-6 text-3xl font-bold md:text-4xl">
175-
Ways to Tautoko (Support)
175+
Ways to Support
176176
</h2>
177177
<p class="text-xl leading-relaxed text-gray-600 md:text-2xl">
178178
Choose the way that works best for you to help create opportunities
@@ -186,13 +186,7 @@ const donationImpact = [
186186
description: type.description,
187187
icon: type.icon,
188188
features: type.features,
189-
...(type.cta.type === "link" && { href: type.cta.href }),
190-
...(type.cta.type === "button" && {
191-
button: {
192-
text: type.cta.text,
193-
onclick: type.cta.onclick,
194-
},
195-
}),
189+
cta: type.cta
196190
}))}
197191
columns="3"
198192
/>

0 commit comments

Comments
 (0)