-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
816 lines (695 loc) · 27.4 KB
/
index.html
File metadata and controls
816 lines (695 loc) · 27.4 KB
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
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Grocifyy</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<!-- Navbar -->
<div class="topnav">
<div class="logo">Grocifyy</div>
<ol class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="pages/product.html" class="active">Store</a></li>
<li><a href="pages/contact.html">Contact</a></li>
</ol>
<div class="icons">
<!-- Search -->
<div class="icon-circle" onclick="toggleSearch()">
<i class="fas fa-search"></i>
</div>
<!-- Cart -->
<div class="icon-circle" class="cart-container">
<a href="pages/cart.html"><i class="fas fa-shopping-bag cart-icon"></i></a>
<span class="cart-count">3</span>
</div>
<!-- Login -->
<div class="icon-circle" onclick="openModal('login')">
<i class="fas fa-user"></i>
</div>
</div>
<!-- Search Input -->
<div id="searchBox" class="search-box">
<input type="text" placeholder="Search for items...">
</div>
</div>
<section class="home" id="home">
<div class="content">
<h3>Fresh And <span>Organic</span> Products For You</h3>
<p>Discover the taste of health and purity with our handpicked fresh and organic products.</p>
<a href="pages/product.html" class="btn">Shop Now</a>
</div>
</section>
<!-- Login Modal -->
<div id="loginModal" class="modal">
<div class="auth-modal">
<div class="modal-header">
<h2 id="modalTitle">Welcome Back!</h2>
<span class="close" onclick="closeModal()">×</span>
</div>
<div class="modal-content">
<div class="success-message" id="successMessage"></div>
<div class="input-group">
<label for="loginEmail">Email Address</label>
<input type="email" id="loginEmail" placeholder="Enter your email">
<div class="error-message" id="emailError">Please enter a valid email address</div>
</div>
<div class="input-group">
<label for="loginPassword">Password</label>
<input type="password" id="loginPassword" placeholder="Enter your password">
<i class="fas fa-eye password-toggle" onclick="togglePassword('loginPassword', this)"></i>
<div class="error-message" id="passwordError">Password must be at least 6 characters</div>
</div>
<div class="remember-forgot">
<div class="remember-me">
<input type="checkbox" id="rememberMe">
<label for="rememberMe">Remember me</label>
</div>
<div class="forgot-password">
<a href="#" onclick="showForgotPassword()">Forgot password?</a>
</div>
</div>
<button class="auth-btn" id="loginBtn" onclick="handleLogin()">
<span id="loginBtnText">Login</span>
</button>
<div class="social-login">
<p>Or login with</p>
<div class="social-icons">
<div class="social-icon facebook" onclick="socialLogin('facebook')">
<i class="fab fa-facebook-f"></i>
</div>
<div class="social-icon google" onclick="socialLogin('google')">
<i class="fab fa-google"></i>
</div>
<div class="social-icon apple" onclick="socialLogin('apple')">
<i class="fab fa-apple"></i>
</div>
</div>
</div>
<div class="auth-footer">
Don't have an account? <a href="#" onclick="switchToSignup()">Sign up</a>
</div>
</div>
</div>
</div>
<!-- Signup Modal -->
<div id="signupModal" class="modal">
<div class="auth-modal">
<div class="modal-header">
<h2>Create Your Account</h2>
<span class="close" onclick="closeModal()">×</span>
</div>
<div class="modal-content">
<div class="success-message" id="signupSuccessMessage"></div>
<div class="input-group">
<label for="signupName">Full Name</label>
<input type="text" id="signupName" placeholder="Enter your full name">
<div class="error-message" id="nameError">Please enter your name</div>
</div>
<div class="input-group">
<label for="signupEmail">Email Address</label>
<input type="email" id="signupEmail" placeholder="Enter your email">
<div class="error-message" id="signupEmailError">Please enter a valid email address</div>
</div>
<div class="input-group">
<label for="signupPassword">Password</label>
<input type="password" id="signupPassword" placeholder="Create a password">
<i class="fas fa-eye password-toggle" onclick="togglePassword('signupPassword', this)"></i>
<div class="error-message" id="signupPasswordError">Password must be at least 6 characters</div>
</div>
<div class="input-group">
<label for="confirmPassword">Confirm Password</label>
<input type="password" id="confirmPassword" placeholder="Confirm your password">
<i class="fas fa-eye password-toggle" onclick="togglePassword('confirmPassword', this)"></i>
<div class="error-message" id="confirmPasswordError">Passwords don't match</div>
</div>
<div class="input-group">
<input type="checkbox" id="termsAgreement">
<label for="termsAgreement">I agree to the <a href="#" style="color: #76c900;">Terms of Service</a>
and <a href="#" style="color: #76c900;">Privacy Policy</a></label>
<div class="error-message" id="termsError">You must agree to the terms</div>
</div>
<button class="auth-btn" id="signupBtn" onclick="handleSignup()">
<span id="signupBtnText">Create Account</span>
</button>
<div class="auth-footer">
Already have an account? <a href="#" onclick="switchToLogin()">Login</a>
</div>
</div>
</div>
</div>
<!-- Forgot Password Modal -->
<div id="forgotPasswordModal" class="modal">
<div class="auth-modal" style="width: 380px;">
<div class="modal-header">
<h2>Reset Password</h2>
<span class="close" onclick="closeModal()">×</span>
</div>
<div class="modal-content">
<p style="margin-bottom: 20px; color: #666; font-size: 14px;">
Enter your email address and we'll send you a link to reset your password.
</p>
<div class="input-group">
<label for="resetEmail">Email Address</label>
<input type="email" id="resetEmail" placeholder="Enter your email">
<div class="error-message" id="resetEmailError">Please enter a valid email address</div>
</div>
<button class="auth-btn" id="resetBtn" onclick="handlePasswordReset()">
<span id="resetBtnText">Send Reset Link</span>
</button>
<div class="auth-footer" style="margin-top: 25px;">
Remember your password? <a href="#" onclick="switchToLogin()">Login</a>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/index.js"></script>
</body>
</html>
<!-- footer -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grocifyy Footer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', Arial, sans-serif;
}
body {
background-color: #f5f5f5;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.footer {
background-color: #3c4f52;
color: white;
padding: 40px 20px;
position: relative;
}
.footer::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(to right, #9cdb2a, #ffa64d);
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
}
.top-section {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
}
.logo {
display: flex;
flex-direction: column;
}
.logo h1 {
font-size: 2rem;
color: #9cdb2a;
margin-bottom: 5px;
letter-spacing: -0.5px;
font-weight: 700;
}
.logo p {
color: #ffa64d;
font-style: italic;
}
.subscribe-form {
display: flex;
min-width: 400px;
position: relative;
}
.subscribe-form input {
padding: 12px 15px;
border: none;
border-radius: 25px;
width: 100%;
outline: none;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
font-size: 0.9rem;
}
.subscribe-form button {
position: absolute;
right: 0;
padding: 10px 20px;
background: linear-gradient(to right, #9cdb2a, #8bc422);
color: white;
border: none;
border-radius: 0 25px 25px 0;
cursor: pointer;
font-weight: bold;
height: 100%;
transition: all 0.3s ease;
}
.subscribe-form button:hover {
background: linear-gradient(to right, #8bc422, #7db01b);
}
.social-icons {
display: flex;
gap: 15px;
}
.social-icon {
width: 40px;
height: 40px;
border: 1px solid #ffa64d;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #ffa64d;
transition: all 0.3s ease;
font-size: 1.1rem;
}
.social-icon:hover {
background-color: #ffa64d;
color: #3c4f52;
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(255, 166, 77, 0.3);
}
.divider {
height: 1px;
background: linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
margin: 20px 0;
}
.footer-links {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 30px;
}
.footer-column h3 {
margin-bottom: 20px;
font-size: 1.2rem;
position: relative;
padding-bottom: 10px;
}
.footer-column h3::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 30px;
height: 2px;
background-color: #9cdb2a;
}
.footer-column p,
.footer-column a {
color: #ccc;
text-decoration: none;
margin-bottom: 10px;
display: block;
font-size: 0.9rem;
transition: all 0.3s ease;
}
.footer-column p i,
.footer-column a i {
margin-right: 8px;
color: #9cdb2a;
}
.footer-column a:hover {
color: #9cdb2a;
transform: translateX(5px);
}
.read-more {
display: inline-block;
margin-top: 10px;
padding: 8px 20px;
border: 1px solid #9cdb2a;
color: #9cdb2a;
border-radius: 20px;
text-decoration: none;
font-size: 0.9rem;
transition: all 0.3s ease;
background-color: rgba(156, 219, 42, 0.1);
}
.read-more:hover {
background-color: #9cdb2a;
color: #3c4f52;
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(156, 219, 42, 0.3);
}
.payment-methods {
display: flex;
gap: 10px;
margin-top: 15px;
flex-wrap: wrap;
}
.payment-icon {
background-color: #f5f5f5;
border-radius: 5px;
padding: 5px 15px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
font-weight: bold;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.payment-icon:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.bottom-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 30px;
}
.copyright {
display: flex;
align-items: center;
gap: 10px;
font-size: 0.9rem;
}
.copyright span {
color: #9cdb2a;
font-weight: bold;
}
.credits a {
color: #9cdb2a;
text-decoration: none;
transition: all 0.3s ease;
}
.credits a:hover {
color: #ffa64d;
text-decoration: underline;
}
.back-to-top {
position: fixed;
bottom: 20px;
right: 20px;
width: 40px;
height: 40px;
background: linear-gradient(to right, #9cdb2a, #8bc422);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
transition: all 0.3s ease;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
z-index: 100;
}
.back-to-top.visible {
opacity: 1;
}
.back-to-top:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.footer-app-download {
display: flex;
gap: 10px;
margin-top: 15px;
}
.app-button {
padding: 8px 15px;
background-color: #2d3c3e;
border-radius: 5px;
display: flex;
align-items: center;
cursor: pointer;
transition: all 0.3s ease;
}
.app-button:hover {
background-color: #232f30;
transform: translateY(-2px);
}
.app-button i {
font-size: 1.5rem;
margin-right: 8px;
color: white;
}
.app-button .app-text {
display: flex;
flex-direction: column;
}
.app-button .small-text {
font-size: 0.7rem;
color: #9cdb2a;
}
.app-button .big-text {
font-size: 0.9rem;
color: white;
font-weight: bold;
}
.newsletter-success {
display: none;
padding: 15px;
background-color: rgba(156, 219, 42, 0.1);
border-left: 3px solid #9cdb2a;
margin-top: 10px;
border-radius: 4px;
font-size: 0.9rem;
color: #fff;
}
@media (max-width: 992px) {
.footer-links {
grid-template-columns: repeat(3, 1fr);
}
.footer-column:first-child {
grid-column: span 3;
}
}
@media (max-width: 768px) {
.top-section {
flex-direction: column;
align-items: flex-start;
gap: 20px;
}
.subscribe-form {
min-width: 100%;
}
.footer-links {
grid-template-columns: repeat(2, 1fr);
}
.footer-column:first-child {
grid-column: span 2;
}
.bottom-footer {
flex-direction: column;
gap: 15px;
text-align: center;
}
}
@media (max-width: 480px) {
.footer-links {
grid-template-columns: 1fr;
}
.footer-column:first-child {
grid-column: span 1;
}
.social-icons {
width: 100%;
justify-content: space-between;
}
.payment-methods {
justify-content: center;
}
}
</style>
</head>
<body>
<footer class="footer">
<div class="footer-content">
<div class="top-section">
<div class="logo">
<h3>Grocifyy</h3>
<h6>Fresh products, delivered daily</h6>
</div>
<div class="subscribe-form">
<input type="email" placeholder="Enter your email for weekly offers">
<button>Subscribe</button>
</div>
<div class="social-icons">
<div class="social-icon">
<i class="fab fa-twitter"></i>
</div>
<div class="social-icon">
<i class="fab fa-facebook-f"></i>
</div>
<div class="social-icon">
<i class="fab fa-instagram"></i>
</div>
<div class="social-icon">
<i class="fab fa-youtube"></i>
</div>
</div>
</div>
<div class="divider"></div>
<div class="footer-links">
<div class="footer-column">
<h3>Why People Love Grocifyy</h3>
<p>At Grocifyy, we're committed to delivering fresh, high-quality products sourced directly from
local
farmers and suppliers. Our dedication to quality, affordability, and exceptional customer
service has made us the preferred grocery destination for thousands of families.</p>
<a href="#" class="read-more">Read More</a>
<div class="footer-app-download">
<div class="app-button">
<i class="fab fa-apple"></i>
<div class="app-text">
<span class="small-text">Download on the</span>
<span class="big-text">App Store</span>
</div>
</div>
<div class="app-button">
<i class="fab fa-google-play"></i>
<div class="app-text">
<span class="small-text">GET IT ON</span>
<span class="big-text">Google Play</span>
</div>
</div>
</div>
</div>
<div class="footer-column">
<h3>Shop Info</h3>
<a href="#"><i class="fas fa-info-circle"></i> About Us</a>
<a href="#"><i class="fas fa-phone-alt"></i> Contact Us</a>
<a href="#"><i class="fas fa-shield-alt"></i> Privacy Policy</a>
<a href="#"><i class="fas fa-file-contract"></i> Terms & Conditions</a>
<a href="#"><i class="fas fa-undo-alt"></i> Return Policy</a>
<a href="#"><i class="fas fa-question-circle"></i> FAQs & Help</a>
</div>
<div class="footer-column">
<h3>My Account</h3>
<a href="#"><i class="fas fa-user"></i> My Account</a>
<a href="#"><i class="fas fa-store"></i> Shop Details</a>
<a href="#"><i class="fas fa-shopping-cart"></i> Shopping Cart</a>
<a href="#"><i class="fas fa-heart"></i> Wishlist</a>
<a href="#"><i class="fas fa-history"></i> Order History</a>
<a href="#"><i class="fas fa-globe-americas"></i> International Orders</a>
</div>
<div class="footer-column">
<h3>Contact Us</h3>
<p><i class="fas fa-map-marker-alt"></i> 123, T-Nagar, Chennai</p>
<p><i class="fas fa-envelope"></i> support@gmart.com</p>
<p><i class="fas fa-phone-alt"></i> +91 92545 92545</p>
<p><i class="fas fa-clock"></i> Mon-Sat: 9:00 AM - 10:00 PM</p>
<p><i class="fas fa-credit-card"></i> Payment Accepted</p>
<div class="payment-methods">
<div class="payment-icon" style="background-color: #232f30;">VISA</div>
<div class="payment-icon" style="background-color: #232f30;">MC</div>
<div class="payment-icon" style="background-color: #232f30;">AMEX</div>
<div class="payment-icon" style="background-color: #232f30;">PayPal</div>
<div class="payment-icon" style="background-color: #232f30;">UPI</div>
</div>
</div>
</div>
<div class="newsletter-success">
Thank you for subscribing to our newsletter! You'll now receive weekly offers and updates.
</div>
<div class="divider"></div>
<div class="bottom-footer">
<div class="copyright">
<i class="far fa-copyright"></i>
<span>Grocifyy</span> 2025, All rights reserved.
</div>
</div>
</div>
</footer>
<div class="back-to-top">
<i class="fas fa-chevron-up"></i>
</div>
<script>
// Load Google Fonts
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = 'https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap';
document.head.appendChild(link);
// Back to top button functionality
const backToTopButton = document.querySelector('.back-to-top');
window.addEventListener('scroll', () => {
if (window.scrollY > 300) {
backToTopButton.classList.add('visible');
} else {
backToTopButton.classList.remove('visible');
}
});
backToTopButton.addEventListener('click', () => {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
// For the subscribe form
const subscribeForm = document.querySelector('.subscribe-form');
const emailInput = subscribeForm.querySelector('input');
const subscribeButton = subscribeForm.querySelector('button');
const newsletterSuccess = document.querySelector('.newsletter-success');
subscribeButton.addEventListener('click', (e) => {
e.preventDefault();
if (emailInput.value.trim() === '') {
showToast('Please enter your email address');
return;
}
if (!isValidEmail(emailInput.value)) {
showToast('Please enter a valid email address');
return;
}
// Show success message
newsletterSuccess.style.display = 'block';
emailInput.value = '';
// Hide success message after 5 seconds
setTimeout(() => {
newsletterSuccess.style.display = 'none';
}, 5000);
});
function isValidEmail(email) {
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
return emailRegex.test(email);
}
function showToast(message) {
// Create toast element
const toast = document.createElement('div');
toast.style.position = 'fixed';
toast.style.bottom = '20px';
toast.style.left = '50%';
toast.style.transform = 'translateX(-50%)';
toast.style.backgroundColor = '#3c4f52';
toast.style.color = 'white';
toast.style.padding = '10px 20px';
toast.style.borderRadius = '4px';
toast.style.boxShadow = '0 2px 10px rgba(0,0,0,0.2)';
toast.style.zIndex = '1000';
toast.innerText = message;
document.body.appendChild(toast);
// Remove toast after 3 seconds
setTimeout(() => {
document.body.removeChild(toast);
}, 3000);
}
// Add animation to social icons
const socialIcons = document.querySelectorAll('.social-icon');
socialIcons.forEach(icon => {
icon.addEventListener('mouseenter', () => {
icon.style.transform = 'translateY(-3px)';
});
icon.addEventListener('mouseleave', () => {
icon.style.transform = 'translateY(0)';
});
});
</script>
<!-- Font Awesome for icons -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/js/all.min.js"></script>
</body>
</html>