-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdonataion.html
106 lines (96 loc) · 5.21 KB
/
donataion.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>EndGBViolence - Donate</title>
<link rel="stylesheet" href="css/donate.css" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
</head>
<body>
<!-- Donation Popup Modal -->
<div id="donationPopup" class="modal">
<div class="modal-content">
<span class="close" id="closeModal">×</span>
<div class="modal-body">
<!-- Image and Content for each step -->
<div class="modal-left">
<img src="images/donation-step-1.jpg" id="modalImage" alt="Donation Step Image" />
<p id="modalDescription">Your donation helps feed children in need.</p>
</div>
<!-- Donation Form -->
<div class="modal-right">
<!-- Donation Amount -->
<section id="donationForm" class="step">
<h2>Select Donation Amount</h2>
<div class="preset-amounts">
<button class="amount-btn" data-amount="10000">10K</button>
<button class="amount-btn" data-amount="40000">40K</button>
<button class="amount-btn" data-amount="100000">100K</button>
</div>
<input type="number" id="customAmount" placeholder="Enter a custom amount" />
<label class="checkbox-label">
<input type="checkbox" id="monthlyDonation" /> Make this a monthly donation
</label>
<button id="nextBtn" class="btn-primary">Next</button>
</section>
<!-- Donor Information -->
<section id="donorInfo" class="step" style="display: none;">
<h2>Donor Information</h2>
<input type="text" id="firstName" placeholder="First Name" required />
<input type="text" id="lastName" placeholder="Last Name" required />
<input type="email" id="email" placeholder="Email" required />
<label class="checkbox-label">
<input type="checkbox" id="anonymousDonation" /> Donate anonymously
</label>
<div class="button-group">
<button id="backToDonation" class="btn-secondary">Back</button>
<button id="toPayment" class="btn-primary">Next</button>
</div>
</section>
<!-- Payment Information -->
<section id="paymentInfo" class="step" style="display: none;">
<h2>Payment Information</h2>
<!-- Payment Type Selection -->
<div class="payment-options">
<label>
<input type="radio" name="paymentMethod" value="card" checked />
Credit/Debit Card
</label>
<label>
<input type="radio" name="paymentMethod" value="paypal" />
PayPal
</label>
</div>
<!-- Card Payment Form -->
<div id="cardPayment" class="payment-method">
<input type="text" id="cardNumber" placeholder="Card Number" required />
<input type="text" id="expiration" placeholder="MM/YY" required />
<input type="text" id="cvc" placeholder="CVC" required />
</div>
<!-- PayPal Button (hidden initially) -->
<div id="paypalPayment" class="payment-method" style="display: none;">
<button id="paypalBtn">Pay with PayPal</button>
</div>
<label class="checkbox-label">
<input type="checkbox" id="coverFees" /> Cover transaction fees
</label>
<div class="button-group">
<button id="backToDonorInfo" class="btn-secondary">Back</button>
<button id="submitDonation" class="btn-primary">Donate</button>
</div>
</section>
<!-- Confirmation -->
<section id="confirmation" class="step" style="display: none;">
<h2>Thank You for Your Donation!</h2>
<p id="confirmationDetails"></p>
<button id="shareSocial" class="btn-primary">Share on Social Media</button>
</section>
</div>
</div>
</div>
</div>
<button id="openModal" class="btn-primary">Donate Now</button>
<script src="js/donate.js"></script>
</body>
</html>