-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdonate.html
More file actions
165 lines (149 loc) · 6.26 KB
/
donate.html
File metadata and controls
165 lines (149 loc) · 6.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Donate — Pacesetters Foundation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- ===== HEADER ===== -->
<header class="header">
<div class="container header-flex">
<a href="index.html" class="brand">
<div class="logo">PF</div>
<div>
<h1 class="title">Pacesetters Foundation</h1>
<small class="tagline">Empowering communities across Ghana</small>
</div>
</a>
<nav class="nav">
<a href="index.html">Home</a>
<a href="programs.html">Programs</a>
<a href="donate.html" class="active">Donate</a>
</nav>
<button class="nav-toggle" aria-label="Menu">☰</button>
</div>
</header>
<!-- ===== HERO ===== -->
<section class="hero small">
<img src="images/hero-donate.jpg" alt="Donation banner" class="hero-img">
<div class="overlay">
<h2>Support Our Mission</h2>
<p>Your contribution helps us educate, empower, and transform communities across Ghana.</p>
</div>
</section>
<!-- ===== DONATION OPTIONS ===== -->
<section class="section container">
<h3 class="section-title">Ways to Donate</h3>
<p class="intro">Select your preferred method below — every donation counts.</p>
<div class="donate-tabs reveal">
<div class="tab-buttons">
<button class="tab-btn active" data-tab="bank">🏦 Bank</button>
<button class="tab-btn" data-tab="momo">📱 MoMo</button>
<button class="tab-btn" data-tab="visa">💳 Card / Online</button>
</div>
<div class="tab-content active" id="bank">
<h4>Bank Transfer</h4>
<p><strong>Bank Name:</strong> GCB Bank</p>
<p><strong>Account Name:</strong> Pacesetters Foundation</p>
<p><strong>Account Number:</strong> 0123456789</p>
<p><strong>Branch:</strong> Accra Main</p>
<p>Please include your name as a reference when transferring.</p>
</div>
<div class="tab-content" id="momo">
<h4>Mobile Money (MoMo)</h4>
<label for="momo-select">Select Network:</label>
<select id="momo-select">
<option value="mtn">MTN MoMo</option>
<option value="vodafone">Vodafone Cash</option>
<option value="airteltigo">AirtelTigo Money</option>
</select>
<div id="momo-details" class="momo-box">
<p><strong>Network:</strong> MTN MoMo</p>
<p><strong>Name:</strong> Pacesetters Foundation</p>
<p><strong>Number:</strong> 024 123 4567</p>
</div>
</div>
<div class="tab-content" id="visa">
<h4>Donate Online (Card)</h4>
<p>You can make a secure payment using your Visa or MasterCard via Paystack.</p>
<!-- Replace # with your real Paystack or Flutterwave link -->
<a href="#" target="_blank" class="btn">Donate via Paystack</a>
</div>
</div>
</section>
<!-- ===== CONTACT SECTION ===== -->
<section class="section pale">
<div class="container contact-grid">
<div class="reveal">
<h3 class="section-title">Get in Touch</h3>
<form class="contact-form" action="mailto:email@example.com" method="post" enctype="text/plain">
<input type="text" name="name" placeholder="Your name" required>
<input type="email" name="email" placeholder="Your email" required>
<textarea name="message" rows="5" placeholder="Write your message..." required></textarea>
<button type="submit" class="btn">Send Message</button>
</form>
</div>
<div class="map-box reveal delay-1">
<h4>Our Office</h4>
<p>Accra, Ghana</p>
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3959.910174679781!2d-0.1969!3d5.6037!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x102079d564bc8e8f%3A0x4639b825f17ecf7e!2sAccra%2C%20Ghana!5e0!3m2!1sen!2sgh!4v1694700000000!5m2!1sen!2sgh"
width="100%" height="250" style="border:0;" allowfullscreen loading="lazy"></iframe>
</div>
</div>
</section>
<!-- ===== FOOTER ===== -->
<footer class="footer">
<div class="container footer-grid">
<div>
<strong>Pacesetters Foundation</strong><br>
<small>© 2025 All Rights Reserved</small>
</div>
<nav class="footer-nav">
<a href="index.html">Home</a>
<a href="programs.html">Programs</a>
<a href="donate.html" class="active">Donate</a>
</nav>
</div>
</footer>
<button id="topBtn" title="Back to top">↑</button>
<script src="script.js"></script>
<script>
// ===== Donation Tabs =====
const tabBtns = document.querySelectorAll('.tab-btn');
const tabContents = document.querySelectorAll('.tab-content');
tabBtns.forEach(btn => {
btn.addEventListener('click', () => {
tabBtns.forEach(b => b.classList.remove('active'));
tabContents.forEach(c => c.classList.remove('active'));
btn.classList.add('active');
document.getElementById(btn.dataset.tab).classList.add('active');
});
});
// ===== MoMo Dropdown =====
const momoSelect = document.getElementById('momo-select');
const momoDetails = document.getElementById('momo-details');
momoSelect.addEventListener('change', () => {
const value = momoSelect.value;
if (value === 'mtn') {
momoDetails.innerHTML = `
<p><strong>Network:</strong> MTN MoMo</p>
<p><strong>Name:</strong> Pacesetters Foundation</p>
<p><strong>Number:</strong> 024 123 4567</p>`;
} else if (value === 'vodafone') {
momoDetails.innerHTML = `
<p><strong>Network:</strong> Vodafone Cash</p>
<p><strong>Name:</strong> Pacesetters Foundation</p>
<p><strong>Number:</strong> 050 987 6543</p>`;
} else {
momoDetails.innerHTML = `
<p><strong>Network:</strong> AirtelTigo Money</p>
<p><strong>Name:</strong> Pacesetters Foundation</p>
<p><strong>Number:</strong> 027 555 7890</p>`;
}
});
</script>
</body>
</html>