-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
272 lines (237 loc) · 7.98 KB
/
index.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTH World</title>
<link rel="stylesheet" href="css/style.css">
<style>
body {
font-family: Arial, sans-serif;
background-color: #333;
margin: 0;
padding: 0;
text-align: center;
}
h2 {
color: #debf12;
}
p {
font-size: 18px;
color: #fff;
}
ol {
list-style-type: decimal;
text-align: left;
}
li {
font-size: 16px;
color: #fff;
margin: 10px 0;
text-align: center;
}
a {
color: #34bcaa;
text-decoration: none;
}
.dropdown-container {
text-align: center; /* Center the content horizontally */
}
.dropdown {
display: inline-block;
position: relative;
margin-right: 20px;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
.service {
display: none;
padding: 10px;
border: 1px solid #ccc;
background-color: #333;
color: #fff;
}
.service.active {
display: block;
}
/* Styling for the dropdown links */
.dropdown-content a {
padding: 10px 16px;
text-decoration: none;
display: block;
color: #34bcaa;
background-color: #333;
}
.dropdown-content a:hover {
background-color: #333;
color: #debf12;
}
.about-container {
text-align: center;
background-color: #333;
padding: 20px;
}
.about-container h2 {
font-size: 24px;
color: #debf12;
}
.about-container p {
font-size: 16px;
color: #fff;
}
.donate-container {
text-align: center; /* Center the content horizontally */
}
.donate-container {
text-align: center;
background-color: #333;
padding: 20px;
}
.donate-container h2 {
font-size: 24px;
color: #debf12;
}
.donate-container p {
font-size: 16px;
color: #fff;
}
.donate-button {
display: inline-block;
background-color: #34bcaa;
color: #fff;
padding: 10px 20px;
text-decoration: none;
border-radius: 25px;
font-weight: bold;
margin: 10px;
box-shadow: 0 0 10px #debf12;
}
.donate-button:hover {
background-color: #debf12;
box-shadow: 0 0 10px #34bcaa;
}
</style>
</head>
<body style="background-color: #333">
<header>
<h1>Welcome to HTH World</h1>
<p style="color: #debf12">Helping the Community Together</p>
</header>
<?php
// Include the navigation bar
include('navbar.php');
?>
</br>
</br>
<main>
<div class="dropdown-container">
<div class="options-section">
<h2> HTH Services</h2>
<p>At HTH We Fully Believe Everyone Desrves A Chance! Make A Change Today Or Seek Help Today!</p>
</div>
<div class="dropdown">
<h2>Get Involved!</h2>
<div class="dropdown-content">
<a href="#" class="show-service" data-service="donate">Donate</a>
<a href="#" class="show-service" data-service="fundraisers">Fundraisers</a>
<a href="#" class="show-service" data-service="volunteer">Volunteer</a>
<a href="#" class="show-service" data-service="services">HTH World</a>
</div>
</div>
<div class="dropdown">
<h2>Need Assistance?</h2>
<div class="dropdown-content">
<a href="#" class="show-service" data-service="food-banks">Food Banks</a>
<a href="#" class="show-service" data-service="shelters">Shelters</a>
<a href="#" class="show-service" data-service="homeless">Homeless</a> <!-- New service link for Homeless -->
<a href="#" class="show-service" data-service="charities">Charities</a>
</div>
</div>
<div class="service" id="donate">
<h3>Donate Today</h3>
<p>100% of your donation goes towards helping the homeless, please donate today!</p>
<a href="donate.php" class="service-link">Donate Now</a>
</div>
<div class="service" id="fundraisers">
<h3>Fundraisers</h3>
<p>Donate to a specific cause!</p>
<a href="fundraiser.php" class="service-link">Fundraisers</a>
</div>
<div class="service" id="volunteer">
<h3>Volunteer</h3>
<p>Join the HTH Family and become a Volunteer today and help make an impact in your area!</p>
<a href="volunteer.php" class="service-link">Volunteer Now</a>
</div>
<div class="service" id="homeless">
<h3>Homeless Services</h3>
<p>Provide assistance to homeless individuals and make a difference in their lives.</p>
<a href="homeless.php" class="service-link">Learn More</a>
</div>
<div class="service" id="food-banks">
<h3>Food Banks</h3>
<p>Need to locate your closest food bank? Check out HTH World!</p>
<a href="world.php?service_type=food_bank" class="service-link">Learn More</a>
</div>
<div class="service" id="shelters">
<h3>Shelters</h3>
<p>Need Shelter? Check out HTH World!</p>
<a href="world.php?service_type=shelter" class="service-link">Learn More</a>
</div>
<div class="service" id="charities">
<h3>Charities</h3>
<p>Need to find a charity near you? Check out HTH World</p>
<a href="world.php?service_type=organization" class="service-link">Learn More</a>
</div>
<div class="service" id="services">
<h3>HTH World</h3>
<p>Join HTH World to Get involved today through user experience!</p>
<a href="services.php" class="service-link">HTH World</a>
</div>
</div>
</br>
</br>
<div class="about-container">
<h2>Our Goal</h2>
<p>HTH World is a platform where those who are less fortunate have an easy place to come when they need assistance. We believe in keeping things as simple as possible in order to achieve success!</p>
</div>
<div class="about-container">
<h2> Donate Right Now!</h2>
<p>100% of your donation goes towards helping the homeless, please donate today!</p>
</div>
<div class="donate-container">
<div class="donate-container">
<!-- Stripe Donate Now Button -->
<a href="https://buy.stripe.com/eVa00f4LjbLrfBu5kk" class="donate-button" target="_blank">Stripe</a>
<!-- PayPal Donate Now Button -->
<a href="https://www.paypal.com/paypalme/hthworldwide" class="donate-button" target="_blank">PayPal</a>
</div>
</div>
</main>
</br>
</br>
<?php
// Include the footer
include('footer.php');
?>
<script>
document.querySelectorAll('.show-service').forEach(function (element) {
element.addEventListener('click', function () {
var serviceId = this.getAttribute('data-service');
document.querySelectorAll('.service').forEach(function (service) {
service.classList.remove('active');
});
document.getElementById(serviceId).classList.add('active');
});
});
</script>
</body>
</html>