-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
282 lines (262 loc) · 14.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Plant for Future</title>
<link rel="stylesheet" href="public/main.css" />
<link rel="shortcut icon" href="/logo.png" type="image/x-icon" />
</head>
<body class="bg-blackPearl">
<!-- Navbar -->
<nav
class="fixed block backdrop-blur-super bg-transparent text-light px-10 font-manrope sm:px-16 md:px-28 lg:px-32 py-4 w-screen top-0 z-50">
<div class="flex justify-between items-center lg:grid lg:grid-flow-col lg:grid-cols-3">
<div class="hidden lg:block">
<ul class="lg:flex gap-8 justify-start items-center">
<li><a
class="after:block after:w-0 after:h-px after:bg-light after:rounded-full after:m-auto after:transition-all after:duration-300 after:hover:w-10/12 ease-in-out"
href="#" aria-current="page">Home</a></li>
<li><a
class="after:block after:w-0 after:h-px after:bg-light after:rounded-full after:m-auto after:transition-all after:duration-300 after:hover:w-10/12 ease-in-out"
href="#about">About</a></li>
<li><a
class="after:block after:w-0 after:h-px after:bg-light after:rounded-full after:m-auto after:transition-all after:duration-300 after:hover:w-10/12 ease-in-out"
href="#contact">Contact Us</a></li>
</ul>
</div>
<div class="flex justify-start lg:justify-center items-center text-2xl">
<img src="/logo.png" class="w-14" onClick="window.location.reload()" alt="logo" />
</div>
<!-- Hamburger -->
<div class="hamburger block lg:hidden cursor-pointer" aria-label="Open Menu">
<svg class="ham hamRotate ham4" viewBox="0 0 100 100" width="50" onclick="this.classList.toggle('active')">
<path class="line top"
d="m 70,33 h -40 c 0,0 -8.5,-0.149796 -8.5,8.5 0,8.649796 8.5,8.5 8.5,8.5 h 20 v -20" />
<path class="line middle" d="m 70,50 h -40" />
<path class="line bottom"
d="m 30,67 h 40 c 0,0 8.5,0.149796 8.5,-8.5 0,-8.649796 -8.5,-8.5 -8.5,-8.5 h -20 v 20" />
</svg>
</div>
<!-- Mobile Menu -->
<div
class="mobile-menu lg:hidden fixed top-20 left-full w-44 sm:w-58 md:w-60 min-h-full bg-blackPearl backdrop-blur-lg z-50 transform -translate-x-0 transition-transform duration-300">
<div class="pt-8 pb-44 px-6 flex flex-col justify-between items-start h-screen">
<ul class="flex flex-col gap-4 justify-center items-center">
<li><a href="#" class="text-lg">Home</a></li>
<li><a href="#about" class="text-lg">About</a></li>
<li><a href="#contact" class="text-lg">Contact Us</a></li>
</ul>
<div class="user-section flex gap-8 justify-end items-center">
<!-- Logged out view -->
<div class="flex flex-col items-center gap-4">
<a href="/join-us/" class="login-button">
<button
class="py-2 px-6 bg-green-400/30 rounded-md font-semibold text-green-400 active:scale-95 hover:scale-105 transition-all duration-300 ease-in-out">Login</button>
</a>
<a href="/donate/" class="donate-button">
<button
class="relative flex gap-2 justify-between items-center py-2 px-4 w-28 bg-primary-red-default/30 text-primary-red-default rounded-md font-semibold active:scale-95 hover:scale-105 transition-all duration-300 ease-in-out">
<img src="/assets/images/svg/donateIcon.svg" class="h-5 w-5" alt="">
<span>Donate</span>
</button>
</a>
</div>
<!-- Logged in view -->
<div class="avatar-dropdown flex flex-col gap-4">
<div class="flex gap-4 justify-end items-center cursor-pointer relative">
<div class="border-2 max-w-12 rounded-md max-h-12 border-light/30 bg-light/10 overflow-hidden">
<img src="/assets/images/volunteer-boy.png" class="pfp aspect-square pt-px" alt="profilePicture">
</div>
<span class="user-name text-lg font-semibold"></span>
</div>
<div
class="logout flex gap-2 items-center justify-center cursor-pointer bg-transparent hover:bg-primary-red-default/20 border border-primary-red-default px-4 py-2 rounded-lg">
<img src="/assets/images/svg/logout.svg" class="h-5 w-5" alt="">
<span class="text-light block">Logout</span>
</div>
</div>
</div>
</div>
<div class="close-menu absolute top-4 right-4 cursor-pointer">
</div>
</div>
<!-- Mobile Menu End -->
<div class="user-section hidden lg:flex gap-8 justify-end items-center ">
<!-- Logged out view -->
<a href="/join-us/" class="login-button">
<button
class="py-2 px-6 bg-green-400/30 rounded-md font-semibold text-green-400 active:scale-95 hover:scale-105 transition-all duration-300 ease-in-out">Login</button>
</a>
<a href="/donate/" class="donate-button">
<button
class="relative flex gap-2 justify-between items-center py-2 px-4 w-28 bg-primary-red-default/30 text-primary-red-default rounded-md font-semibold active:scale-95 hover:scale-105 transition-all duration-300 ease-in-out">
<img src="/assets/images/svg/donateIcon.svg" class="h-5 w-5" alt="">
<span>Donate</span>
</button>
</a>
<!-- Logged in view -->
<div id="avatar-dropdown2" class="flex gap-4 justify-end items-center cursor-pointer relative">
<div class="border-2 w-12 rounded-md h-12 border-light/30 bg-light/10 overflow-hidden">
<img src="/assets/images/volunteer-boy.png" class="pfp aspect-square pt-px" alt="profilePicture">
</div>
<span class="user-name text-lg font-semibold"></span>
<!-- Dropdown menu -->
<div id="dropdown-menu"
class="absolute top-16 right-0 w-full rounded-lg border-2 border-lightGray/30 bg-transparent shadow-[0 8px 16px rgba(0, 0, 0, 0.2)] z-1 overflow-hidden hidden">
<ul class="list-none m-0 px-2 bg-blackPearl">
<li id="user-dashboard" class="flex cursor-pointer gap-2 px-4 py-2 border-b border-light/30">
<img src="/assets/images/svg/dashboard.svg" class="h-5 w-5" alt="dashboard">
<span class="text-light block">Dashboard</span>
</li>
<li class="flex cursor-pointer gap-2 px-4 py-2 border-b border-light/30">
<img src="/assets/images/svg/donateIcon.svg" class="h-5 w-5" alt="donate">
<span class="text-light block">Donate</span>
</li>
<li class="logout flex cursor-pointer gap-2 px-4 py-2">
<img src="/assets/images/svg/logout.svg" class="h-5 w-5" alt="logout">
<span class="text-light block">Logout</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<!-- Navbar End -->
<!-- Hero Section -->
<div id="app" class="px-10 sm:px-16 md:px-28 lg:px-32 mb-16 sm:mb-0 min-w-screen font-manrope">
<div class="flex flex-col mt-44 md:mt-0 md:flex-row justify-between items-center min-h-screen">
<div class="w-2/5 hidden md:block">
<img src="/assets/images/landing-hero.jpeg" class=" md:block w-11/12 rounded-xl" alt="environment">
</div>
<div class="text-light md:w-1/2 flex flex-col gap-12 items-center md:items-start">
<h1 class="text-3xl sm:text-4xl md:text-5xl text-center md:text-left font-semibold">Join the movement to save
our planet</h1>
<p class="text-lg text-center md:text-left">Connect with environmental influencers and volunteers to amplify
your impact.
Collaborate to raise awareness, mobilize resources, and promote sustainability together.</p>
<button class="text-lg text-blackPearl bg-light w-36 p-5 rounded-xl font-semibold">Join now</button>
</div>
</div>
<!-- About Section -->
<div id="about" class="min-h-screen text-light flex flex-col justify-center gap-20">
<div class="flex flex-col justify-center">
<h1 class="text-4xl lg:text-5xl text-center font-bold">About Us</h1>
<p class="text-base lg:text-lg text-justify md:text-center mt-16">PlantForFuture is a community-driven platform
dedicated to fostering
environmental
conservation through collective action. We connect environmental influencers with passionate volunteers,
creating a network that drives meaningful change. Our mission is to promote sustainability by mobilizing
volunteers for activities such as tree planting, garbage cleanups, and river cleansing. By facilitating
collaboration between influencers and volunteers, we aim to enhance community involvement, raise awareness,
and
make a lasting positive impact on our planet. Join us in our mission to protect and preserve the environment
for
future generations.</p>
</div>
<!-- Counter -->
<div id="counter" class="flex flex-col sm:flex-row gap-8 justify-evenly">
<div class="flex flex-col gap-4">
<div class="counter text-5xl lg:text-7xl text-center font-semibold" data-count-to="106">0+</div>
<p class="text-lg md:text-2xl text-center font-bold">Activities conducted</p>
</div>
<div class="flex flex-col gap-4">
<div class="counter text-5xl lg:text-7xl text-center font-semibold" data-count-to="19">0+</div>
<p class="text-lg md:text-2xl text-center font-bold">Influencers Involved</p>
</div>
<div class="flex flex-col gap-4">
<div class="counter text-5xl lg:text-7xl text-center font-semibold" data-count-to="270">0+</div>
<p class="text-lg md:text-2xl text-center font-bold">Volunteers Reached</p>
</div>
</div>
</div>
</div>
<!-- Upcoming Activities -->
<div id="upcoming-activities" class="min-h-screen text-light flex flex-col justify-center gap-20 font-manrope">
<div class="flex flex-col bg-[url('/assets/images/activities-bg.png')] py-10 bg-no-repeat bg-center bg-cover">
<h1 class="text-5xl font-bold text-blackPearl text-center pb-16">Upcoming Activities</h1>
<div id="upcoming-activity-container"
class="flex flex-col md:flex-row gap-8 justify-between px-10 sm:px-16 md:px-28 lg:px-32 items-center">
<!-- Dynamically Rendered -->
</div>
</div>
</div>
<div class="px-10 sm:px-16 md:px-28 lg:px-32 min-w-screen font-manrope">
<!-- Recent Activities -->
<div class="min-h-screen pt-20">
<div class="flex flex-col text-light">
<h1 class="text-5xl font-bold text-light text-center pb-16">Recent Activities</h1>
<div id="recent-activities" class="flex flex-col md:flex-row gap-8 justify-between items-center">
<!-- Dynamically Rendered -->
</div>
</div>
</div>
<!-- Daily Quotes -->
<div class="min-h-screen w-full flex flex-col md:flex-row justify-between items-center pt-20 text-light">
<div class="md:w-2/5">
<img src="/assets/images/quotesImg.jpeg" class="rounded-full h-72 w-72 md:h-96 md:w-96" alt="plantImage">
</div>
<div class="flex flex-col md:w-1/2">
<h1 class="text-3xl md:text-5xl mt-16 md:mt-0 font-bold text-center pb-16">Daily Quotes</h1>
<div class="flex flex-col text-center gap-2 p-6 border-2 border-light">
<q class="text-2xl font-semibold">The best time to plant a tree was 20 years ago. The second best time
is now.</q>
<span class="text-lg">- Chinese Proverb</span>
</div>
</div>
</div>
</div>
<!-- footer -->
<hr class="mt-16">
<footer class="bg-blackPearl text-light font-manrope">
<div class="px-6 sm:px-10 md:px-16 lg:px-28 xl:px-32 py-10 sm:py-16 md:py-20">
<div class="flex flex-col gap-8">
<!-- Top section with logo and quick links -->
<div class="flex flex-col md:flex-row md:justify-between md:items-center">
<!-- Logo and description -->
<div class="flex flex-col md:flex-row md:items-center gap-4">
<img src="/logo.png" class="w-14" alt="logo" />
<div class="flex flex-col gap-2">
<p class="text-lg font-semibold">Plant for Future</p>
<p class="text-sm">Connect with environmental influencers and volunteers to amplify your impact.</p>
</div>
</div>
<!-- Quick links and contact info -->
<div class="flex flex-col md:flex-row gap-8 mt-6 md:mt-0">
<div class="flex flex-col gap-2">
<p class="text-lg font-semibold">Quick Links</p>
<a href="#" class="text-sm">Home</a>
<a href="#about" class="text-sm">About</a>
<a href="#contact" class="text-sm">Contact Us</a>
</div>
<div class="flex flex-col gap-2">
<p class="text-lg font-semibold">Contact Us</p>
<a href="" class="text-sm">+91 1234567890</a>
</div>
</div>
</div>
<!-- Bottom section with social icons and buttons -->
<div class="flex flex-col md:flex-row md:justify-between items-center">
<p class="text-sm mb-4 md:mb-0">© 2024 Plant for Future. All rights reserved.</p>
<div class="flex gap-4">
<a href="/join-us/">
<button
class="py-2 px-6 bg-green-400/30 rounded-md font-semibold text-green-400 active:scale-95 hover:scale-105 transition-all duration-300 ease-in-out">
Login
</button>
</a>
<a href="/donate/"
class="relative flex gap-2 justify-between items-center py-2 px-4 w-28 bg-primary-red-default/30 text-primary-red-default rounded-md font-semibold active:scale-95 hover:scale-105 transition-all duration-300 ease-in-out">
<img src="/assets/images/svg/donateIcon.svg" class="h-5 w-5" alt="">
<span>Donate</span>
</a>
</div>
</div>
</div>
</div>
</footer>
<script type="module" src="/src/main.js" async defer></script>
<script type="module" src="/src/js/Home.js" async defer></script>
</body>
</html>