forked from Virtual4087/Tree2Hope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
288 lines (261 loc) · 11.6 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<title>Tree2Hope</title>
<!-- font awesome cdn -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="icon" type="image/x-icon" href="./assets/images/4x/logo.webp" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="./assets/css/style.css" />
<link rel="stylesheet" href="./assets/css/responsiveness.css" />
</head>
<body>
<div class="banner section">
<nav>
<div class="logo">
<img src="./assets/images/4x/typography_logo.webp" alt="Logo" width="160px" />
</div>
<div id="nav-text" class="nav_buttons">
<a href="#" class="nav_button">HOME</a>
<a href="#donates" class="nav_button showPopupButton" data-popup-trigger="donate">DONATE</a>
<a href="./about.html" class="nav_button">ABOUT US</a>
<a href="#footer" class="nav_button">CONTACT US</a>
</div>
</nav>
<!-- Menu Bar -->
<div class="MenuBar">
<i id="openMenu" class='bx bx-menu menu-button'></i>
<div class="menu-container" id="menuContainer">
<div class="menu">
<span class="close-button" id="closeMenu">×</span>
<ul>
<li><a href="#" onclick="handleClose()">HOME</a></li>
<li><a href="#donates" onclick="handleClose()">DONATE</a></li>
<li><a href="./about.html" class="nav_button">ABOUT US</a></li>
<li><a href="#footer" onclick="handleClose()">CONTACT US</a></li>
</ul>
</div>
</div>
</div>
<!-- -->
<div class="body">
<div class="text">
<span class="Big_Text">PLANTING TREES BUILDING HOPE</span><br /><br />
Help us grow a greener tomorrow<br />Join us in our quest to heal the
earth and create a sustainable future
</div>
<div class="page_buttons">
<button class="one">VIEW PROGRESS</button>
<button class="two showPopupButton" data-popup-trigger="cover-page">PLANT A TREE</button>
</div>
</div>
</div>
<!-- <div class="trees_planted">
<div class="number"><span>40535</span><br>TREES PLANTED<br><br></div>
<div class="text"><br>We plant trees on your behalf. $1 = 1 Tree Planted.<br>Plant a Tree, Restore Biodiversity, and Transform Our Planet.</div>
</div> -->
<div class="locations section mt-5">
<div class="heading">
<b>WHERE WE PLANT</b><br />
<div class="line"></div>
</div>
<div class="image_container">
<div class="country_images">
<a href="https://en.wikipedia.org/wiki/Nepal" target="_blank" ><img src="./assets/images/Countries/Nepal.webp" alt="Nepal" /><span>Nepal</span></a>
</div>
<div class="country_images">
<a href="https://en.wikipedia.org/wiki/Thailand" target="_blank"><img src="./assets/images/Countries/Thailand.webp" alt="Thailand" /><span>Thailand</span></a>
</div>
<div class="country_images">
<a href="https://en.wikipedia.org/wiki/India" target="_blank"><img src="./assets/images/Countries/India.webp" alt="India" /><span>India</span></a>
</div>
<div class="country_images">
<a href="https://en.wikipedia.org/wiki/Maldives" target="_blank"><img src="./assets/images/Countries/Maldives.webp" alt="Maldives" /><span>Maldives</span></a>
</div>
<div class="country_images">
<a href="https://en.wikipedia.org/wiki/Bhutan" target="_blank"><img src="./assets/images/Countries/Bhutan.webp" alt="Bhutan" /><span>Bhutan</span></a>
</div>
<div class="country_images">
<a href="https://en.wikipedia.org/wiki/Sri_Lanka" target="_blank"><img src="./assets/images/Countries/Sri_Lanka.webp" alt="Sri Lanka" /><span>Sri Lanka</span></a>
</div>
<div class="country_images">
<a href="https://en.wikipedia.org/wiki/Malaysia" target="_blank"><img src="./assets/images/Countries/Malaysia.webp" alt="Malaysia" /><span>Malaysia</span></a>
</div>
<div class="country_images">
<a href="https://en.wikipedia.org/wiki/Indonesia" target="_blank"><img src="./assets/images/Countries/Indonesia.webp" alt="Indonesia" /><span>Indonesia</span></a>
</div>
<div class="country_images">
<a href="https://en.wikipedia.org/wiki/Hong_Kong" target="_blank"><img src="./assets/images/Countries/Hong_Kong.webp" alt="Hong_Kong" /><span>Hong Kong</span></a>
</div>
</div>
</div>
<div class="Video section">
<iframe width="100%" height="100%" src="https://www.youtube.com/embed/ibPe7iuTFZw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div id="donates" class="Donate section">
<div class="text">
Trees are nature's superheroes, fighting climate change, supporting
livelihoods, and nurturing life.<br />
Together, we can make a difference, one tree at a time.<br /><br /><span>~ Founder</span><br /><br />
</div>
<button class="showPopupButton" data-popup-trigger="donate">JUST $1 PLANTS A TREE</button>
</div>
<!--Added margin to bottom-->
<div class="get_involved section mb-5">
<div class="Option" id="_1">INDIVIDUALS</div>
<div class="Option" id="_2">BUSINESSES</div>
<div class="Option" id="_3">SCHOOLS</div>
</div>
<div class="events section">
<div class="plant_with_us">
PLANT WITH US<span class="join_us">Join our local events and make a positive impact with your own
hands</span>
</div>
<button>VIEW EVENTS</button>
</div>
<div id="goal" class="Goals section">
<div class="heading">
OUR GOALS<br />
<div class="line"></div>
</div>
<div class="images">
<img src="./assets/images/Target.webp" width="200px" />
<div class="text">
<span>TARGET<br /><br /></span>Planting 1 million trees worldwide
within the next 3 years.
</div>
</div>
<div class="images">
<img src="./assets/images/Reach.webp" width="200px" />
<div class="text">
<span>REACH<br /><br /></span>Expanding tree planting efforts to 30+
countries across the world.
</div>
</div>
<div class="images">
<img src="./assets/images/Awareness.webp" width="200px" />
<div class="text">
<span>EDUCATION AND AWARENESS<br /><br /></span>Raising awareness
about the importance of tree planting through educational programs,
workshops, and campaigns.
</div>
</div>
</div>
<div class="why_plant_trees?">
<div class="heading"></div>
<div class="line"></div>
<div class="answers"></div>
</div>
<div class="footer" id="footer">
<div class="upper_part">
<div class="upperHeading">
<div class="quickLinkTextWrapper">
<!-- <div class="qLine"></div> -->
<h2 class="quick-links">Quick Links</h2>
<!-- <div class="qLine"></div> -->
</div>
</div>
<div class="links">
<div class="column">
<a class="footerLinks" href="#">HOW TO DONATE</a>
<a class="footerLinks" href="#">PRIVACY POLICY</a>
<a class="footerLinks" href="#">REFUND POLICY</a>
<a class="footerLinks" href="#">TERMS OF SERVICES</a>
</div>
<div class="column">
<a class="footerLinks" href="#">OUR PARTNERS</a>
<a class="footerLinks" href="#">BECOME AN AFFILIATE</a>
<a class="footerLinks" href="#">SPONSOR US</a>
<a class="footerLinks" href="#">REPORT A PROBLEM</a>
</div>
<div class="column">
<a class="footerLinks" href="./about.html">ABOUT US</a>
<a class="footerLinks" href="#">FAQS</a>
<a class="footerLinks" href="#">CONTACT US</a>
<a class="footerLinks" href="#">CAREERS</a>
</div>
</div>
</div>
<div class="footer-line"></div>
<div class="social_medias">
<div class="imgWrapper">
<i class="fa-brands fa-x-twitter"></i>
<a href="https://twitter.com" class="socialmediaName" target="_blank">TWITTER</a>
</div>
<div class="imgWrapper">
<i class="fa-brands fa-facebook"></i>
<a href="https://www.facebook.com" class="socialmediaName" target="_blank">FACEBOOK</a>
</div>
<div class="imgWrapper">
<i class="fa-brands fa-instagram"></i>
<a href="https://www.instagram.com" class="socialmediaName" target="_blank">INSTAGRAM</a>
</div>
<div class="imgWrapper">
<i class="fa-brands fa-youtube"></i>
<a href="https://www.youtube.com" class="socialmediaName" target="_blank">YOUTUBE</a>
</div>
<div class="imgWrapper">
<i class="fa-brands fa-linkedin"></i>
<a href="https://www.linkedin.com" class="socialmediaName" target="_blank">LINKEDIN</a>
</div>
<div class="imgWrapper">
<i class="fa-brands fa-github"></i>
<a href="https://github.com/Virtual4087/Tree2Hope" class="socialmediaName" target="_blank">GITHUB</a>
</div>
</div>
<div class="lower_part">
<div class="copyright-disclaimer">
©2023 - Tree2Hope All rights reserved
</div>
</div>
</div>
<div id="overlay" class="hidden"></div>
<div class="hidden popup">
<div class="popup-content">
<p>We haven't added this feature yet.</p>
<button class="closePopupButton">Close</button>
</div>
</div>
</body>
<script>
const showPopupButtons = document.querySelectorAll(".showPopupButton");
const closePopupButton = document.querySelector(".closePopupButton");
const popup = document.querySelector(".popup");
const overlay = document.getElementById("overlay");
// showPopupButton.addEventListener("click", function() {
// popup.style.display = "block";
// overlay.style.display = "block";
// });
showPopupButtons.forEach(button => {
button.addEventListener("click", function() {
// Determine which button was clicked and show the popup accordingly
const trigger = button.getAttribute("data-popup-trigger");
if (trigger === "donate" || trigger === "cover-page" || trigger === "navbar") {
popup.style.display = "block";
overlay.style.display = "block";
}
});
});
closePopupButton.addEventListener("click", function() {
popup.style.display = "none";
overlay.style.display = "none";
});
const close = document.querySelectorAll(".navclose");
document.getElementById('openMenu').addEventListener('click', function() {
document.getElementById('menuContainer').style.display = 'flex';
});
document.getElementById('closeMenu').addEventListener('click', function() {
document.getElementById('menuContainer').style.display = 'none';
});
document.querySelectorAll('.close').addEventListener('click', function() {
document.getElementById('menuContainer').style.display = 'none';
});
function handleClose() {
document.getElementById('menuContainer').style.display = 'none';
}
</script>
</html>