|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <meta name="viewport" content="width=device-width,initial-scale=1" /> |
| 6 | + <title>Donate — Pacesetters Foundation</title> |
| 7 | + <link rel="stylesheet" href="style.css"> |
| 8 | +</head> |
| 9 | +<body> |
| 10 | + <header class="site-header"> |
| 11 | + <div class="container header-row"> |
| 12 | + <div class="brand"><div class="logo">PF</div><div><h1 class="org-name">Pacesetters Foundation</h1></div></div> |
| 13 | + <nav class="nav"><a href="index.html">Home</a><a href="donate.html" class="btn small">Donate</a><a href="contact.html">Contact</a></nav> |
| 14 | + <button class="nav-toggle">☰</button> |
| 15 | + </div> |
| 16 | + </header> |
| 17 | + |
| 18 | + <main class="container section"> |
| 19 | + <h2>Support Our Work</h2> |
| 20 | + <p class="lead">Choose a convenient method to give — Bank transfer, Mobile Money (MTN, Vodafone, etc.) or Card payments.</p> |
| 21 | + |
| 22 | + <div class="donate-tabs"> |
| 23 | + <button class="tab-btn active" data-tab="bank">Bank Transfer</button> |
| 24 | + <button class="tab-btn" data-tab="momo">Mobile Money (MoMo)</button> |
| 25 | + <button class="tab-btn" data-tab="card">Card / Online</button> |
| 26 | + </div> |
| 27 | + |
| 28 | + <div class="tab-content" id="bank"> |
| 29 | + <div class="card"> |
| 30 | + <h4>Bank Details</h4> |
| 31 | + <p><strong>Bank:</strong> GCB Bank Ghana</p> |
| 32 | + <p><strong>Account Name:</strong> Pacesetters Foundation</p> |
| 33 | + <p><strong>Account Number:</strong> 1234567890</p> |
| 34 | + <p><strong>Branch:</strong> Accra Main</p> |
| 35 | + <p>Use your name as reference and email proof of payment to <a href=" mailto:[email protected]" >[email protected]</a></p> |
| 36 | + </div> |
| 37 | + </div> |
| 38 | + |
| 39 | + <div class="tab-content hidden" id="momo"> |
| 40 | + <div class="card"> |
| 41 | + <h4>Mobile Money</h4> |
| 42 | + <p>Select your network to see the number to send to:</p> |
| 43 | + <select id="momoNetwork"> |
| 44 | + <option value="">-- Select Network --</option> |
| 45 | + <option value="MTN">MTN Mobile Money</option> |
| 46 | + <option value="Vodafone">Vodafone Cash</option> |
| 47 | + <option value="AirtelTigo">AirtelTigo Money</option> |
| 48 | + </select> |
| 49 | + |
| 50 | + <div id="momoDetails" style="margin-top:12px"> |
| 51 | + <!-- Will be populated by JS --> |
| 52 | + <p class="muted">Pick a network to see the number and instructions.</p> |
| 53 | + </div> |
| 54 | + </div> |
| 55 | + </div> |
| 56 | + |
| 57 | + <div class="tab-content hidden" id="card"> |
| 58 | + <div class="card"> |
| 59 | + <h4>Card / Online Payment</h4> |
| 60 | + <p>Use our secure online checkout to donate by Visa, Mastercard or mobile card.</p> |
| 61 | + <!-- EDIT: Replace the href with your Paystack/Flutterwave checkout URL --> |
| 62 | + <a id="payBtn" class="btn primary" href="#" target="_blank" rel="noopener">Donate Online (Paystack/Flutterwave)</a> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + </main> |
| 66 | + |
| 67 | + <footer class="footer"><div class="container footer-grid"><div><strong>Pacesetters Foundation</strong></div><div><small class="muted">© 2025</small></div></div></footer> |
| 68 | + |
| 69 | + <button id="topBtn" title="Back to top">↑</button> |
| 70 | + <script src="script.js"></script> |
| 71 | + |
| 72 | + <script> |
| 73 | + // Simple tab logic (also in script.js but keep local to ensure immediate functionality) |
| 74 | + const tabBtns = document.querySelectorAll('.tab-btn'); |
| 75 | + const tabContents = document.querySelectorAll('.tab-content'); |
| 76 | + tabBtns.forEach(btn => btn.addEventListener('click', () => { |
| 77 | + tabBtns.forEach(b => b.classList.remove('active')); |
| 78 | + btn.classList.add('active'); |
| 79 | + const tab = btn.dataset.tab; |
| 80 | + tabContents.forEach(c => c.id === tab ? c.classList.remove('hidden') : c.classList.add('hidden')); |
| 81 | + })); |
| 82 | + |
| 83 | + // MoMo networks data |
| 84 | + const momoData = { |
| 85 | + "MTN": {number:"+233 24 000 0001", name:"Pacesetters Foundation (MTN MoMo)"}, |
| 86 | + "Vodafone": {number:"+233 20 000 0002", name:"Pacesetters Foundation (Vodafone Cash)"}, |
| 87 | + "AirtelTigo": {number:"+233 24 000 0003", name:"Pacesetters Foundation (AirtelTigo Money)"} |
| 88 | + }; |
| 89 | + |
| 90 | + const momoNetwork = document.getElementById('momoNetwork'); |
| 91 | + const momoDetails = document.getElementById('momoDetails'); |
| 92 | + momoNetwork.addEventListener('change', () => { |
| 93 | + const v = momoNetwork.value; |
| 94 | + if (!v) { momoDetails.innerHTML = '<p class="muted">Pick a network to see the number and instructions.</p>'; return; } |
| 95 | + const data = momoData[v]; |
| 96 | + 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>`; |
| 97 | + }); |
| 98 | + </script> |
| 99 | +</body> |
| 100 | +</html> |
0 commit comments