forked from Samridhi002/Aavaran
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
450 lines (412 loc) · 22.5 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
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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aavaran | Home</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
body {
font-family: 'Poppins', sans-serif;
}
.gradient-bg {
background: linear-gradient(135deg, #4ADE80 0%, #22D3EE 100%);
}
.eco-item {
transition: all 0.3s ease-in-out;
}
.eco-item:hover {
transform: scale(1.05);
}
.hero {
position: relative;
background-image: url('https://cdn.pixabay.com/photo/2018/04/04/13/38/nature-3289812_1280.jpg');
background-size: cover;
background-position: center;
min-height: 100vh;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(74, 222, 128, 0.8) 0%, rgba(34, 211, 238, 0.8) 100%);
}
.hero-content {
position: relative;
z-index: 1;
}
.animated-bg {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
}
.animated-bg span {
position: absolute;
display: block;
width: 20px;
height: 20px;
background: rgba(255, 255, 255, 0.2);
animation: move 25s infinite linear;
}
.animated-bg span:nth-child(1) {
left: 20%;
width: 80px;
height: 80px;
animation-delay: 0s;
}
.animated-bg span:nth-child(2) {
left: 50%;
width: 100px;
height: 100px;
animation-delay: 2s;
animation-duration: 17s;
}
.animated-bg span:nth-child(3) {
left: 70%;
width: 60px;
height: 60px;
animation-delay: 4s;
}
@keyframes move {
0% {
transform: translateY(0) rotate(0deg);
opacity: 1;
border-radius: 0;
}
100% {
transform: translateY(-1000px) rotate(720deg);
opacity: 0;
border-radius: 50%;
}
}
.feature-card {
transition: all 0.3s ease-in-out;
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.product-card {
transition: all 0.3s ease-in-out;
}
.product-card:hover {
transform: translateY(-10px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.scroll-down {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
animation: bounce 2s infinite;
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-15px);
}
}
</style>
</head>
<body class="bg-green-50">
<header class="fixed w-full bg-white bg-opacity-90 shadow-md z-50 transition-all duration-300 ease-in-out"
id="header">
<nav class="container mx-auto px-6 py-3 flex justify-between items-center">
<h1 class="text-4xl font-bold text-green-600">Aavaran</h1>
<ul class="hidden md:flex space-x-6">
<li><a href="index.html" class="text-green-700 hover:text-green-500 transition duration-300">Home</a>
</li>
<li><a href="product.html"
class="text-green-700 hover:text-green-500 transition duration-300">Products</a></li>
<li><a href="alternatives.html"
class="text-green-700 hover:text-green-500 transition duration-300">Alternatives</a>
</li>
<li><a href="blog.html" class="text-green-700 hover:text-green-500 transition duration-300">Blog</a>
</li>
<li><a href="community.html"
class="text-green-700 hover:text-green-500 transition duration-300">Community</a></li>
<li><a href="register.html" class="text-green-700 hover:text-green-500 transition duration-300">My
Account</a></li>
</ul>
<button class="md:hidden text-green-600" id="mobile-menu-button">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7">
</path>
</svg>
</button>
</nav>
<div class="md:hidden hidden" id="mobile-menu">
<a href="index.html" class="block py-2 px-4 text-sm text-green-700 hover:bg-green-100">Home</a>
<a href="product.html" class="block py-2 px-4 text-sm text-green-700 hover:bg-green-100">Products</a>
<a href="alternatives.html"
class="block py-2 px-4 text-sm text-green-700 hover:bg-green-100">Alternatives</a>
<a href="blog.html" class="block py-2 px-4 text-sm text-green-700 hover:bg-green-100">Blog</a>
<a href="community.html" class="block py-2 px-4 text-sm text-green-700 hover:bg-green-100">Community</a>
<a href="register.html" class="block py-2 px-4 text-sm text-green-700 hover:bg-green-100">My Account</a>
</div>
</header>
<main class="pt-20">
<section class="hero flex items-center justify-center">
<div class="hero-overlay"></div>
<div class="animated-bg">
<span></span>
<span></span>
<span></span>
</div>
<div class="container mx-auto px-6 py-16 text-center hero-content">
<h2 class="text-6xl font-bold mb-4 text-white" data-aos="fade-down" data-aos-delay="200">Aavaran</h2>
<p class="text-3xl mb-4 text-white" data-aos="fade-up" data-aos-delay="400">Sustainable Living Made Easy
</p>
<p class="text-xl mb-8 text-white" data-aos="fade-up" data-aos-delay="600">Discover eco-friendly
products and sustainable alternatives for a greener lifestyle.</p>
<button
class="bg-white text-green-600 px-8 py-3 rounded-full text-lg font-semibold hover:bg-green-100 transition duration-300"
data-aos="zoom-in" data-aos-delay="800">
Explore Now
</button>
</div>
<div class="scroll-down">
<svg class="w-6 h-6 text-white animate-bounce" fill="none" stroke="currentColor" viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 14l-7 7m0 0l-7-7m7 7V3"></path>
</svg>
</div>
</section>
<section class="features container mx-auto px-6 py-16 relative z-10">
<h3 class="text-3xl font-bold text-center mb-12 text-green-700" data-aos="fade-up">Our Key Features</h3>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" id="features-grid">
</div>
</section>
<section class="eco-challenge bg-green-600 py-16 relative overflow-hidden">
<div class="container mx-auto px-6 text-center relative z-10">
<h3 class="text-3xl font-bold mb-4 text-white" data-aos="fade-up">Take the Eco Challenge</h3>
<p class="text-xl mb-8 text-green-100" data-aos="fade-up" data-aos-delay="200">Compete with friends and
track your sustainable habits!</p>
<div class="flex flex-wrap justify-center gap-4 mb-8">
<div class="eco-item bg-white p-4 rounded-lg shadow-md" data-aos="flip-left" data-aos-delay="400">
<h4 class="text-green-600 font-semibold mb-2">Reusable Bags</h4>
<p class="text-gray-600">Used 5 times this week</p>
</div>
<div class="eco-item bg-white p-4 rounded-lg shadow-md" data-aos="flip-left" data-aos-delay="600">
<h4 class="text-green-600 font-semibold mb-2">Water Saved</h4>
<p class="text-gray-600">15 gallons this month</p>
</div>
<div class="eco-item bg-white p-4 rounded-lg shadow-md" data-aos="flip-left" data-aos-delay="800">
<h4 class="text-green-600 font-semibold mb-2">CO2 Reduced</h4>
<p class="text-gray-600">20 lbs this year</p>
</div>
</div>
<button
class="bg-white text-green-600 px-6 py-3 rounded-full text-lg font-semibold hover:bg-green-100 transition duration-300"
data-aos="zoom-in" data-aos-delay="1000"><a href="register.html">
Join the Challenge
</a>
</button>
</div>
<div class="absolute top-0 left-0 w-full h-full">
<svg class="w-full h-full" viewBox="0 0 1440 320" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill="#4ADE80" fill-opacity="0.2"
d="M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,186.7C672,192,768,160,864,154.7C960,149,1056,171,1152,181.3C1248,192,1344,192,1392,192L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z">
</path>
</svg>
</div>
</section>
<section class="product-showcase py-16">
<div class="container mx-auto px-6">
<h3 class="text-3xl font-bold text-center mb-12 text-green-700" data-aos="fade-up">Featured Sustainable
Products</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="product-card bg-white rounded-lg shadow-md overflow-hidden" data-aos="fade-up"
data-aos-delay="200">
<img src="https://media.istockphoto.com/id/1913184381/photo/holder-with-bamboo-toothbrushes-in-bathroom-closeup-space-for-text.jpg?s=1024x1024&w=is&k=20&c=J2cm7QlRo0vdu1rXgnp67yz2OUl8rn1j5Ps9-2iVEfU="
alt="Bamboo Toothbrush" class="w-full h-48 object-cover">
<div class="p-4">
<h4 class="text-xl font-semibold mb-2 text-green-600">Bamboo Toothbrush</h4>
<p class="text-gray-600 mb-4">Eco-friendly alternative to plastic toothbrushes</p>
<a href="toothbrush.html" <button
class="bg-green-500 text-white px-4 py-2 rounded-full hover:bg-green-600 transition duration-300">Learn
More</button></a>
</div>
</div>
<div class="product-card bg-white rounded-lg shadow-md overflow-hidden" data-aos="fade-up"
data-aos-delay="400">
<img src="https://media.istockphoto.com/id/1522286388/photo/closeup-womans-hands-hold-insulated-reusable-water-bottle-instead-of-single-use-plastic-cup.jpg?s=1024x1024&w=is&k=20&c=_C_NhvbAegqg1ZMwqvHb_SAeG49K2qTpCSOMIGoh-2c="
alt="Reusable Water Bottle" class="w-full h-48 object-cover">
<div class="p-4">
<h4 class="text-xl font-semibold mb-2 text-green-600">Reusable Water Bottle</h4>
<p class="text-gray-600 mb-4">Durable and stylish alternative to single-use plastics</p>
<a href="waterbottle.html" <button
class="bg-green-500 text-white px-4 py-2 rounded-full hover:bg-green-600 transition duration-300">Learn
More</button></a>
</div>
</div>
<div class="product-card bg-white rounded-lg shadow-md overflow-hidden" data-aos="fade-up"
data-aos-delay="600">
<img src="https://cdn.pixabay.com/photo/2019/07/26/11/33/bag-4364558_1280.jpg"
alt="Organic Cotton Tote" class="w-full h-48 object-cover">
<div class="p-4">
<h4 class="text-xl font-semibold mb-2 text-green-600">Organic Cotton Tote</h4>
<p class="text-gray-600 mb-4">Versatile and eco-friendly shopping companion</p>
<a href="tote.html" <button
class="bg-green-500 text-white px-4 py-2 rounded-full hover:bg-green-600 transition duration-300">Learn
More</button></a>
</div>
</div>
</div>
</div>
</section>
<section class="cta gradient-bg py-16 relative overflow-hidden">
<div class="container mx-auto px-6 text-center relative z-10">
<h3 class="text-3xl font-bold mb-4 text-white" data-aos="fade-up">Ready to Make a Difference?</h3>
<p class="text-xl mb-8 text-green-100" data-aos="fade-up" data-aos-delay="200">Join our community and
start your sustainable journey today.</p>
<a href="register.html" <button
class="bg-white text-green-600 px-6 py-3 rounded-full text-lg font-semibold hover:bg-green-100 transition duration-300"
data-aos="zoom-in" data-aos-delay="400">
Sign Up Now
</button></a>
</div>
<div class="absolute top-0 left-0 w-full h-full">
<svg class="w-full h-full" viewBox="0 0 1440 320" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill="#4ADE80" fill-opacity="0.2"
d="M0,96L48,112C96,128,192,160,288,176C384,192,480,192,576,176C672,160,768,128,864,128C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z">
</path>
</svg>
</div>
</section>
</main>
<footer class="bg-green-800 text-green-100 py-8">
<div class="container mx-auto px-6">
<div class="flex flex-wrap justify-between">
<div class="w-full md:w-1/4 mb-6 md:mb-0">
<h4 class="text-2xl font-bold mb-4">Aavaran</h4>
<p>Empowering sustainable living through conscious choices.</p>
</div>
<div class="w-full md:w-1/4 mb-6 md:mb-0">
<h5 class="text-xl font-semibold mb-4">Quick Links</h5>
<ul>
<li><a href="about.html" class="hover:text-green-300 transition duration-300">About Us</a></li>
<li><a href="product.html" class="hover:text-green-300 transition duration-300">Products</a>
</li>
<li><a href="blog.html" class="hover:text-green-300 transition duration-300">Blog</a></li>
<li><a href="contact.html" class="hover:text-green-300 transition duration-300">Contact</a></li>
</ul>
</div>
<div class="w-full md:w-1/4 mb-6 md:mb-0">
<h5 class="text-xl font-semibold mb-4">Follow Us</h5>
<div class="flex space-x-4">
<a href="https://www.facebook.com/" class="hover:text-green-300 transition duration-300"><i
class="fa-brands fa-facebook"></i></a>
<a href="https://www.Twitter.com/" class="hover:text-green-300 transition duration-300"><i
class="fa-brands fa-x-twitter"></i></a>
<a href="https://www.Instagram.com/" class="hover:text-green-300 transition duration-300"><i
class="fa-brands fa-instagram"></i></a>
</div>
</div>
<div class="w-full md:w-1/4">
<h5 class="text-xl font-semibold mb-4">Newsletter</h5>
<form id="newsletter-form">
<input type="email" placeholder="Enter your email"
class="w-full p-2 rounded-md text-green-800 mb-2">
<button type="submit"
class="bg-green-600 text-white px-4 py-2 rounded-md hover:bg-green-500 transition duration-300 w-full">Subscribe</button>
</form>
</div>
</div>
<div class="mt-8 text-center">
<p>© 2024 Aavaran. All rights reserved.</p>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.js"></script>
<script>
AOS.init({
duration: 1000,
once: true,
});
const header = document.getElementById('header');
window.addEventListener('scroll', () => {
if (window.scrollY > 100) {
header.classList.add('py-2');
header.classList.remove('py-3');
} else {
header.classList.add('py-3');
header.classList.remove('py-2');
}
});
const mobileMenuButton = document.getElementById('mobile-menu-button');
const mobileMenu = document.getElementById('mobile-menu');
mobileMenuButton.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
});
const newsletterForm = document.getElementById('newsletter-form');
newsletterForm.addEventListener('submit', (e) => {
e.preventDefault();
alert('Thank you for subscribing to our newsletter!');
newsletterForm.reset();
});
const features = [
{ icon: 'shopping-bag', title: 'Curated Products', description: 'Handpicked sustainable items for your everyday needs.' },
{ icon: 'search', title: 'Find Alternatives', description: 'Discover eco-friendly substitutes for common products.' },
{ icon: 'book', title: 'Educational Content', description: 'Learn about sustainability through our blog and resources.' },
{ icon: 'users', title: 'Community Forum', description: 'Connect with like-minded individuals and share experiences.' },
{ icon: 'box', title: 'Subscription Box', description: 'Receive a monthly box of curated sustainable products.' },
{ icon: 'bar-chart-2', title: 'Impact Tracker', description: 'Measure and visualize your positive environmental impact.' }
];
const featuresGrid = document.getElementById('features-grid');
features.forEach((feature, index) => {
const featureElement = document.createElement('div');
featureElement.className = 'feature-card bg-white p-6 rounded-lg shadow-md';
featureElement.setAttribute('data-aos', 'fade-up');
featureElement.setAttribute('data-aos-delay', (index + 1) * 200);
featureElement.innerHTML = `
<svg class="w-12 h-12 text-green-500 mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="${getIconPath(feature.icon)}"></path>
</svg>
<h4 class="text-xl font-semibold mb-2 text-green-700">${feature.title}</h4>
<p class="text-gray-600">${feature.description}</p>
`;
featuresGrid.appendChild(featureElement);
});
function getIconPath(icon) {
switch (icon) {
case 'shopping-bag':
return "M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z";
case 'search':
return "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z";
case 'book':
return "M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253";
case 'users':
return "M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z";
case 'box':
return "M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4";
case 'bar-chart-2':
return "M18 20V10M12 20V4M6 20v-6";
default:
return "";
}
}
</script>
</body>
</html>