-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdonate.html
381 lines (376 loc) · 14.3 KB
/
donate.html
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PawHub | Donate</title>
<!-- CDN bootstrap 5 -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<!-- global css -->
<link href="./styles/globals.css" rel="stylesheet" />
</head>
<body>
<div class="preloader"></div>
<div class="container">
<!-- dynamic navbar -->
<div id="navbar"></div>
<!-- content -->
<section id="donate-detail" style="margin-top: 120px">
<div class="row gap-2">
<div class="col p-5 rounded-4" style="background-color: #efe5d6">
<div>
<div class="mb-4">
<img
src="./assets/images/paws/paw-1.jpg"
width="100%"
class="rounded-4"
/>
</div>
<div
class="d-flex justify-content-between align-items-center my-2"
>
<p class="my-auto fs-5">
collected
<span
id="collected-donate"
data-value="Rupiah (Rp)"
class="fw-bold text-pawhub-secondary"
>Rp. 600.000</span
>
</p>
<p class="my-auto fs-5">
needed
<span
id="needed-donate"
data-value="Rupiah (Rp)"
class="fw-bold text-pawhub-primary"
>Rp. 820.000</span
>
</p>
</div>
<p class="text-center fs-5 mt-5">End Date 10 July 2024</p>
</div>
</div>
<div class="col p-5 rounded-4" style="background-color: #fbf7f1">
<h2 class="fw-bolder">Warm Shelter for Manis</h2>
<div class="my-4">
<p class="fs-5">
Manis has been living on the streets and needs a safe, warm
place to call home. Your contribution will help build and
maintain a cozy shelter for Tigger and other strays.
</p>
</div>
<div class="container mt-3">
<form id="donation-form">
<div class="mb-3">
<label class="form-label fs-5">Currency</label>
<div class="d-flex gap-2">
<button
type="button"
class="btn btn-outline-secondary btn-currency"
data-value="Dollar ($)"
>
Dollar ($)
</button>
<button
type="button"
class="btn btn-outline-secondary btn-currency"
data-value="Euro (€)"
>
Euro (€)
</button>
<button
type="button"
class="btn btn-outline-secondary btn-currency"
data-value="Rupiah (Rp)"
>
Rupiah (Rp)
</button>
</div>
</div>
<div class="mb-3">
<label class="form-label fs-5">Donation amount</label>
<div class="d-flex gap-2" id="amount-buttons">
<button
type="button"
class="btn btn-outline-secondary btn-amount"
data-value="0"
>
0.50$
</button>
<button
type="button"
class="btn btn-outline-secondary btn-amount"
data-value="0"
>
1.00$
</button>
<button
type="button"
class="btn btn-outline-secondary btn-amount"
data-value="0"
>
2.00$
</button>
<button
type="button"
class="btn btn-outline-secondary btn-amount"
data-value="0"
>
10.00$
</button>
<input
type="number"
class="form-control btn-amount"
placeholder="Other"
id="other-amount"
style="width: 100px"
/>
</div>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<div class="input-group">
<input
type="email"
class="form-control"
id="email-donate"
placeholder="Your email"
aria-label="Email"
aria-describedby="email-addon"
required
/>
</div>
</div>
<button
id="donate-button"
type="submit"
class="btn btn-pawhub w-100 bg-pawhub-primary text-white fs-5"
data-bs-toggle="modal"
data-bs-target="#modal-payment"
disabled
>
Donate
</button>
</form>
</div>
</div>
</div>
</section>
<!-- modal payment -->
<div
class="modal fade"
id="modal-payment"
tabindex="-1"
aria-labelledby="paymentModalLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div
class="modal-content p-4 p-md-5 rounded shadow-sm"
style="background-color: #efe5d6"
>
<div class="row">
<div class="col-12">
<div class="mb-5">
<h2 class="h3 text-black">Payment</h2>
<h3 class="fs-6 fw-normal text-black-50 m-0">
Complete Your Donation
</h3>
</div>
</div>
</div>
<h5 class="fs-5">Donate for Manis</h5>
<div id="payment-donation">
<div class="row gy-3 gy-md-4 overflow-hidden">
<div
class="d-flex justify-content-between align-items-center col-12"
>
<div>
<p class="text-black-50">Your Email</p>
<p id="email-payment">[email protected]</p>
</div>
<div>
<p class="text-black-50">Amount</p>
<p id="amount-payment" class="fs-4">10$</p>
</div>
</div>
<div class="col-12">
<div class="d-grid">
<button
class="btn btn-lg btn-dark"
type="submit"
onclick="move()"
>
Pay
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="floater" class="flex-column">
<img src="./assets/images/food.png" width="50" />
<p class="fw-bold fs-5">Go Top</p>
</div>
<section id="footer" style="margin-top: 200px">
<footer class="py-3">
<div class="py-6 py-md-8 py-xl-10">
<div class="container">
<div class="row gy-3">
<div class="col-12">
<div class="footer-logo-wrapper text-center">
<a href="/">
<img
src="./assets/images/pawhub-logo-brown.png"
alt="BootstrapBrain Logo"
width="20%"
height="20%"
/>
</a>
</div>
</div>
<div class="col-12">
<div class="link-wrapper">
<ul
class="m-0 list-unstyled d-flex justify-content-center gap-3"
>
<li>
<a
href="./about-us.html"
class="link-underline-opacity-0 link-opacity-75-hover link-underline-opacity-100-hover link-offset-1 link-dark link-opacity-75 fs-7"
>
About Us
</a>
</li>
<li>
<a
href="./services.html"
class="link-underline-opacity-0 link-opacity-75-hover link-underline-opacity-100-hover link-offset-1 link-dark link-opacity-75 fs-7"
>
Services
</a>
</li>
<li>
<a
href="./gallery.html"
class="link-underline-opacity-0 link-opacity-75-hover link-underline-opacity-100-hover link-offset-1 link-dark link-opacity-75 fs-7"
>
Gallery
</a>
</li>
<li>
<a
href="./contact-us.html"
class="link-underline-opacity-0 link-opacity-75-hover link-underline-opacity-100-hover link-offset-1 link-dark link-opacity-75 fs-7"
>
Contact Us
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div>
<div class="container">
<div class="row gy-3 gy-sm-0 align-items-sm-center">
<div class="col-sm-6">
<div
class="copyright-wrapper d-block mb-1 fs-9 text-center text-sm-start"
>
© 2024. All Rights Reserved.
</div>
</div>
<div class="col-sm-6">
<div class="social-media-wrapper">
<ul
class="m-0 list-unstyled d-flex justify-content-center justify-content-sm-end gap-3"
>
<li>
<a
href="https://www.youtube.com/results?search_query=catlover"
target="_blank"
class="link-opacity-75-hover link-dark"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-youtube"
viewBox="0 0 16 16"
>
<path
d="M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2zM6.4 5.209v4.818l4.157-2.408z"
/>
</svg>
</a>
</li>
<li>
<a
href="https://id-id.facebook.com/"
target="_blank"
class="link-opacity-75-hover link-dark"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-facebook"
viewBox="0 0 16 16"
>
<path
d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951"
/>
</svg>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</footer>
</section>
<!-- CDN bootstrap 5 -->
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<script type="module" src="./src/scripts/index.js"></script>
<script type="module" src="./src/scripts/donate.js"></script>
<script>
function move() {
if (i == 0) {
i = 1;
var elem = document.getElementById("progress-donate");
var width = 10;
var id = setInterval(frame, 10);
function frame() {
if (width >= 100) {
clearInterval(id);
i = 0;
} else {
width++;
elem.style.width = width + "%";
elem.innerHTML = width + "%";
}
}
}
}
</script>
</body>
</html>