Skip to content

Commit a528d29

Browse files
authored
Update donate.html
1 parent 9efa041 commit a528d29

File tree

1 file changed

+92
-1
lines changed

1 file changed

+92
-1
lines changed

donate.html

Lines changed: 92 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,95 @@
3131
</div>
3232
</header>
3333

34-
<!-- Main content
34+
<!-- Main content -->
35+
<main class="container section">
36+
<h2>Support Our Work</h2>
37+
<p class="lead">Choose a convenient method to give — Bank transfer, Mobile Money (MTN, Vodafone, etc.) or Card payments.</p>
38+
39+
<div class="donate-tabs">
40+
<button class="tab-btn active" data-tab="bank">Bank Transfer</button>
41+
<button class="tab-btn" data-tab="momo">Mobile Money (MoMo)</button>
42+
<button class="tab-btn" data-tab="card">Card / Online</button>
43+
</div>
44+
45+
<div class="tab-content" id="bank">
46+
<div class="card">
47+
<h4>Bank Details</h4>
48+
<p><strong>Bank:</strong> GCB Bank Ghana</p>
49+
<p><strong>Account Name:</strong> Pacesetters Foundation</p>
50+
<p><strong>Account Number:</strong> 1234567890</p>
51+
<p><strong>Branch:</strong> Accra Main</p>
52+
<p>Use your name as reference and email proof of payment to <a href="mailto:[email protected]">[email protected]</a></p>
53+
</div>
54+
</div>
55+
56+
<div class="tab-content hidden" id="momo">
57+
<div class="card">
58+
<h4>Mobile Money</h4>
59+
<p>Select your network to see the number to send to:</p>
60+
<select id="momoNetwork">
61+
<option value="">-- Select Network --</option>
62+
<option value="MTN">MTN Mobile Money</option>
63+
<option value="Vodafone">Vodafone Cash</option>
64+
<option value="AirtelTigo">AirtelTigo Money</option>
65+
</select>
66+
67+
<div id="momoDetails" style="margin-top:12px">
68+
<p class="muted">Pick a network to see the number and instructions.</p>
69+
</div>
70+
</div>
71+
</div>
72+
73+
<div class="tab-content hidden" id="card">
74+
<div class="card">
75+
<h4>Card / Online Payment</h4>
76+
<p>Use our secure online checkout to donate by Visa, Mastercard or mobile card.</p>
77+
<a id="payBtn" class="btn primary" href="#" target="_blank" rel="noopener">Donate Online (Paystack/Flutterwave)</a>
78+
</div>
79+
</div>
80+
</main>
81+
82+
<!-- Footer -->
83+
<footer class="footer">
84+
<div class="container footer-grid">
85+
<div><strong>Pacesetters Foundation</strong></div>
86+
<div><small class="muted">© 2025</small></div>
87+
</div>
88+
</footer>
89+
90+
<!-- Back-to-top button -->
91+
<button id="topBtn" title="Back to top"></button>
92+
93+
<script src="script.js"></script>
94+
95+
<script>
96+
// Tab functionality
97+
const tabBtns = document.querySelectorAll('.tab-btn');
98+
const tabContents = document.querySelectorAll('.tab-content');
99+
tabBtns.forEach(btn => btn.addEventListener('click', () => {
100+
tabBtns.forEach(b => b.classList.remove('active'));
101+
btn.classList.add('active');
102+
const tab = btn.dataset.tab;
103+
tabContents.forEach(c => c.id === tab ? c.classList.remove('hidden') : c.classList.add('hidden'));
104+
}));
105+
106+
// MoMo networks
107+
const momoData = {
108+
"MTN": {number:"+233 24 000 0001", name:"Pacesetters Foundation (MTN MoMo)"},
109+
"Vodafone": {number:"+233 20 000 0002", name:"Pacesetters Foundation (Vodafone Cash)"},
110+
"AirtelTigo": {number:"+233 24 000 0003", name:"Pacesetters Foundation (AirtelTigo Money)"}
111+
};
112+
const momoNetwork = document.getElementById('momoNetwork');
113+
const momoDetails = document.getElementById('momoDetails');
114+
momoNetwork.addEventListener('change', () => {
115+
const v = momoNetwork.value;
116+
if (!v) {
117+
momoDetails.innerHTML = '<p class="muted">Pick a network to see the number and instructions.</p>';
118+
return;
119+
}
120+
const data = momoData[v];
121+
momoDetails.innerHTML = `<p><strong>${data.name}</strong></p><p>Number: <strong>${data.number}</strong></p><p>Send your donation and SMS proof to <a href="mailto:[email protected]">[email protected]</a> or upload proof via our contact page.</p>`;
122+
});
123+
</script>
124+
</body>
125+
</html>

0 commit comments

Comments
 (0)