forked from anuragverma108/SwapReads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.html
977 lines (864 loc) · 34.2 KB
/
profile.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
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
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="180x180" href="./assets/favicon_package_v0.16/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon_package_v0.16/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicon_package_v0.16/favicon-16x16.png">
<link rel="manifest" href="./assets/favicon_package_v0.16/site.webmanifest">
<link rel="mask-icon" href="./assets/favicon_package_v0.16/safari-pinned-tab.svg" color="#5bbad5">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<title>Profile Page</title>
<link rel="stylesheet" href="profile.css">
<style>
/* Additional CSS for styling */
body {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
height: 100vh;
/* overflow: hidden; */
}
.profile-container {
display: flex;
height: 100vh;
overflow-y: scroll;
}
.profile-sidebar {
width: 250px;
padding: 20px;
background: #f57d7d;
border-right: 1px solid #ddd;
box-sizing: border-box;
overflow-y: auto;
}
.profile-main {
flex: 1;
padding: 20px;
box-sizing: border-box;
overflow-y: auto;
}
.profile-last-login {
margin-top: 20px;
font-size: 14px;
color: #0e0d0d;
text-align: center;
opacity: 0;
animation: fade-in 1s ease-in-out forwards;
}
@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.activity-list li {
display: none;
}
.activity-list li.visible {
display: list-item;
}
.read-more {
color: #007bff;
cursor: pointer;
text-decoration: underline;
display: inline-block;
margin-top: 10px;
}
.profile-section {
margin-bottom: 20px;
}
.home-icon {
margin-top: 10px;
text-align: center;
}
.home-icon a {
text-decoration: none;
font-size: 18px;
}
.home-icon i {
margin-right: 5px;
}
.profile-picture img {
width: 100%;
height: auto;
border-radius: 50%;
}
.profile-details {
text-align: center;
}
.profile-details h1 {
margin: 10px 0;
}
.profile-details p {
margin: 5px 0;
}
.edit-profile-btn {
background: #007bff;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
margin-top: 20px;
transition: background 0.3s;
}
.edit-profile-btn:hover {
background: #0056b3;
}
.profile-completion {
margin-top: 20px;
text-align: center;
}
.profile-completion .progress-bar-container {
background: #ddd;
border-radius: 10px;
overflow: hidden;
width: 80%;
margin: 10px auto;
}
.profile-completion .progress-bar {
height: 20px;
width: 0;
background: #007bff;
transition: width 0.5s;
}
.personalized-greeting {
font-size: 18px;
margin-bottom: 20px;
text-align: center;
}
.clear-item-btn, .clear-wishlist-btn {
background: #f44336;
color: white;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 5px;
margin-left: 10px;
transition: background 0.3s;
}
.clear-item-btn:hover, .clear-wishlist-btn:hover {
background: #d32f2f;
}
* {
margin: 0;
padding: 0;
}
a {
color: #fff;
text-decoration: none;
}
.pg-footer {
font-family: 'Roboto', sans-serif;
position: absolute;
top:120%;
width: 100%;
}
.footer {
background-color: #004658;
color: #fff;
}
.footer-wave-svg {
background-color: transparent;
display: block;
height: 30px;
position: relative;
top: -1px;
width: 100%;
}
.footer-wave-path {
fill: #fffff2;
}
.footer-content {
margin-left: auto;
margin-right: auto;
max-width: 1230px;
padding: 40px 15px 450px;
position: relative;
}
.footer-content-column {
box-sizing: border-box;
float: left;
padding-left: 15px;
padding-right: 15px;
width: 100%;
color: #fff;
}
.footer-content-column ul li a {
color: #fff;
text-decoration: none;
}
.footer-logo-link {
display: inline-block;
}
.footer-menu {
margin-top: 30px;
}
.footer-menu-name {
color: #fffff2;
font-size: 15px;
font-weight: 900;
letter-spacing: .1em;
line-height: 18px;
margin-bottom: 0;
margin-top: 0;
text-transform: uppercase;
}
.footer-menu-list {
list-style: none;
margin-bottom: 0;
margin-top: 10px;
padding-left: 0;
}
.footer-menu-list li {
margin-top: 5px;
}
.footer-call-to-action-description {
color: #fffff2;
margin-top: 10px;
margin-bottom: 20px;
}
.footer-call-to-action-button:hover {
background-color: #fffff2;
color: #00bef0;
}
.button:last-of-type {
margin-right: 0;
}
.footer-call-to-action-button {
background-color: #027b9a;
border-radius: 21px;
color: #fffff2;
display: inline-block;
font-size: 11px;
font-weight: 900;
letter-spacing: .1em;
line-height: 18px;
padding: 12px 30px;
margin: 0 10px 10px 0;
text-decoration: none;
text-transform: uppercase;
transition: background-color .2s;
cursor: pointer;
position: relative;
}
.footer-call-to-action {
margin-top: 30px;
}
.footer-call-to-action-title {
color: #fffff2;
font-size: 14px;
font-weight: 900;
letter-spacing: .1em;
line-height: 18px;
margin-bottom: 0;
margin-top: 0;
text-transform: uppercase;
}
.footer-call-to-action-link-wrapper {
margin-bottom: 0;
margin-top: 10px;
color: #fff;
text-decoration: none;
}
.footer-call-to-action-link-wrapper a {
color: #fff;
text-decoration: none;
}
.footer-social-links {
bottom: 0;
height: 54px;
position: absolute;
right: 0;
width: 236px;
}
.footer-social-amoeba-svg {
height: 54px;
left: 0;
display: block;
position: absolute;
top: 0;
width: 236px;
}
.footer-social-amoeba-path {
fill: #027b9a;
}
.footer-social-link.linkedin {
height: 26px;
left: 3px;
top: 11px;
width: 26px;
}
.footer-social-link {
display: block;
padding: 10px;
position: absolute;
}
.hidden-link-text {
position: absolute;
clip: rect(1px 1px 1px 1px);
clip: rect(1px,1px,1px,1px);
-webkit-clip-path: inset(0px 0px 99.9% 99.9%);
clip-path: inset(0px 0px 99.9% 99.9%);
overflow: hidden;
height: 1px;
width: 1px;
padding: 0;
border: 0;
top: 50%;
}
.footer-social-icon-svg {
display: block;
}
.footer-social-icon-path {
fill: #fffff2;
transition: fill .2s;
}
.footer-social-link.twitter {
height: 28px;
left: 62px;
top: 3px;
width: 28px;
}
.footer-social-link.youtube {
height: 24px;
left: 123px;
top: 12px;
width: 24px;
}
.footer-social-link.github {
height: 34px;
left: 172px;
top: 7px;
width: 34px;
}
.footer-copyright {
background-color: deeppink;
color: #fff;
padding: 15px 30px;
text-align: center;
}
.footer-copyright-wrapper {
margin-left: auto;
margin-right: auto;
max-width: 1200px;
}
.footer-copyright-text {
color: #fff;
font-size: 13px;
font-weight: 400;
line-height: 18px;
margin-bottom: 0;
margin-top: 0;
}
.footer-copyright-link {
color: #fff;
text-decoration: none;
}
/* Media Query For different screens */
@media (min-width:320px) and (max-width:479px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */
.footer-content {
margin-left: auto;
margin-right: auto;
max-width: 1230px;
padding: 40px 15px 1050px;
position: relative;
}
}
@media (min-width:480px) and (max-width:599px) { /* smartphones, Android phones, landscape iPhone */
.footer-content {
margin-left: auto;
margin-right: auto;
max-width: 1230px;
padding: 40px 15px 1050px;
position: relative;
}
}
@media (min-width:600px) and (max-width: 800px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */
.footer-content {
margin-left: auto;
margin-right: auto;
max-width: 1230px;
padding: 40px 15px 1050px;
position: relative;
}
}
@media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */
}
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */
}
@media (min-width:1281px) { /* hi-res laptops and desktops */
}
@media (min-width: 760px) {
.footer-content {
margin-left: auto;
margin-right: auto;
max-width: 1230px;
padding: 40px 15px 450px;
position: relative;
}
.footer-wave-svg {
height: 50px;
}
.footer-content-column {
width: 24.99%;
}
}
@media (min-width: 568px) {
/* .footer-content-column {
width: 49.99%;
} */
}
</style>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<style>
/* Circle styles */
.circle {
height: 24px;
width: 24px;
border-radius: 50%;
background-color: black;
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 99999999;
transition: transform 0.1s ease-out;
}
</style>
</head>
<body>
<!-- Circles -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="profile-container">
<div class="profile-sidebar">
<div class="home-icon">
<a href="index.html">
<center><i class="fas fa-home"></i>Home</center>
</a>
</div>
<div class="profile-picture">
<img id="profile-avatar" src="https://via.placeholder.com/150" alt="Profile Picture">
</div>
<div class="profile-details">
<div class="personalized-greeting" id="greeting"></div>
<h1 class="profile-name">John Doe</h1>
<p class="profile-email"><i class="fas fa-envelope"></i> email@example.com</p>
<p class="profile-phone"><i class="fas fa-phone"></i> +123 456 7890</p>
<!-- <p class="profile-last-login" id="last-active">Last login:<p> -->
<p id="last-active"></p>
<script>
// Get current timestamp
const getCurrentTimestamp = () => {
return new Date().getTime();
};
// Store last active timestamp in LocalStorage
const storeLastActive = () => {
const lastActive = getCurrentTimestamp();
localStorage.setItem('lastActive', lastActive);
};
// Get last active timestamp from LocalStorage
const getLastActive = () => {
return localStorage.getItem('lastActive');
};
// Update last active timestamp on page load and interaction
document.addEventListener('DOMContentLoaded', storeLastActive);
document.addEventListener('click', storeLastActive);
document.addEventListener('scroll', storeLastActive);
document.addEventListener('keydown', storeLastActive);
// Example usage:
const displayLastActive = () => {
const lastActive = getLastActive();
const formattedTime = new Date(parseInt(lastActive)).toLocaleString();
document.getElementById('last-active').innerHTML = `Last active: ${formattedTime}`;
};
displayLastActive();
</script>
<a href="./assets/html/profileedit.html">
<button class="edit-profile-btn">
<i class="fas fa-edit"></i>
<span>Edit Profile</span>
</button>
</a>
<div class="profile-completion">
<p>Profile Completion: <span id="completion-percentage">0%</span></p>
<div class="progress-bar-container">
<div class="progress-bar" id="progress-bar"></div>
</div>
</div>
</div>
</div>
<div class="profile-main">
<div class="profile-section">
<h2>Order History</h2>
<ul class="order-list">
<li>Order #1234 - <span class="order-status">Delivered</span></li>
<li>Order #5678 - <span class="order-status">Shipped</span></li>
<li>Order #91011 - <span class="order-status">Processing</span></li>
</ul>
</div>
<div class="profile-section">
<h2>Wishlist</h2>
<ul class="wishlist" id="wishlist">
<li>Product 1 <button class="clear-item-btn" onclick="clearWishlistItem(this)">Remove</button></li>
<li>Product 2 <button class="clear-item-btn" onclick="clearWishlistItem(this)">Remove</button></li>
<li>Product 3 <button class="clear-item-btn" onclick="clearWishlistItem(this)">Remove</button></li>
</ul>
<button class="clear-wishlist-btn" onclick="clearWishlist()">Clear Wishlist</button>
</div>
<div class="profile-section">
<h2>Saved Addresses</h2>
<ul class="address-list">
<li>123 Main St, San Francisco, CA</li>
<li>456 Maple Rd, Los Angeles, CA</li>
</ul>
</div>
<div class="profile-section">
<h2>Payment Methods</h2>
<ul class="payment-methods">
<li>Visa ending in 1234</li>
<li>MasterCard ending in 5678</li>
</ul>
</div>
<div class="profile-section">
<h2>Recent Activities</h2>
<ul class="activity-list" id="activity-list">
<!-- Activities will be dynamically added here -->
</ul>
<span class="read-more" id="read-more" onclick="toggleActivities()">Read More</span>
</div>
<div class="profile-section">
<h2>Notifications</h2>
<ul class="notification-list" id="notification-list">
<!-- Notifications will be dynamically added here -->
</ul>
</div>
</div>
</div>
<div class="pg-footer">
<footer class="footer">
<svg class="footer-wave-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" preserveAspectRatio="none">
<path class="footer-wave-path" d="M851.8,100c125,0,288.3-45,348.2-64V0H0v44c3.7-1,7.3-1.9,11-2.9C80.7,22,151.7,10.8,223.5,6.3C276.7,2.9,330,4,383,9.8 c52.2,5.7,103.3,16.2,153.4,32.8C623.9,71.3,726.8,100,851.8,100z"></path>
</svg>
<div class="footer-content">
<div class="footer-content-column">
<div class="footer-logo">
<a class="footer-logo-link" href="#">
<span class="hidden-link-text">LOGO</span>
<img src="http://127.0.0.1:5504/assets/images/final.png" style="height: 100px; width: 200px;" alt="">
</a>
</div>
<div class="footer-menu">
<h2 class="footer-menu-name"> Get Started</h2>
<ul id="menu-get-started" class="footer-menu-list">
<li class="menu-item menu-item-type-post_type menu-item-object-product">
<a href="#">Start</a>
</li>
<li class="menu-item menu-item-type-post_type menu-item-object-product">
<a href="#">Documentation</a>
</li>
<li class="menu-item menu-item-type-post_type menu-item-object-product">
<a href="#">explore genre</a>
</li>
</ul>
</div>
</div>
<div class="footer-content-column">
<div class="footer-menu">
<h2 class="footer-menu-name"> Company</h2>
<ul id="menu-company" class="footer-menu-list">
<li class="menu-item menu-item-type-post_type menu-item-object-page">
<a href="#">Contact</a>
</li>
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
<a href="#">FAQ</a>
</li>
<li class="menu-item menu-item-type-post_type menu-item-object-page">
<a href="#">Rate us</a>
</li>
</ul>
</div>
<div class="footer-menu">
<h2 class="footer-menu-name"> Legal</h2>
<ul id="menu-legal" class="footer-menu-list">
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-privacy-policy menu-item-170434">
<a href="#">Privacy Notice</a>
</li>
<li class="menu-item menu-item-type-post_type menu-item-object-page">
<a href="#">Terms of Use</a>
</li>
</ul>
</div>
</div>
<div class="footer-content-column">
<div class="footer-menu">
<h2 class="footer-menu-name"> Quick Links</h2>
<ul id="menu-quick-links" class="footer-menu-list">
<li class="menu-item menu-item-type-custom menu-item-object-custom">
<a target="_blank" rel="noopener noreferrer" href="#">Support Center</a>
</li>
<li class="menu-item menu-item-type-custom menu-item-object-custom">
<a target="_blank" rel="noopener noreferrer" href="#">Community spotlight</a>
</li>
<li class="menu-item menu-item-type-post_type menu-item-object-page">
<a href="#">genre</a>
</li>
<li class="menu-item menu-item-type-post_type menu-item-object-page">
<a href="#">Blog</a>
</li>
<li class="menu-item menu-item-type-post_type_archive menu-item-object-customer">
<a href="#">Events</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page">
<a href="#">Reviews</a>
</li>
</ul>
</div>
</div>
<div class="footer-content-column">
<div class="footer-call-to-action">
<h2 class="footer-call-to-action-title"> Let's Chat</h2>
<p class="footer-call-to-action-description"> Have a support question?</p>
<a class="footer-call-to-action-button button" href="#" target="_self"> Get in Touch </a>
</div>
<div class="footer-call-to-action">
<h2 class="footer-call-to-action-title"> You Call Us</h2>
<p class="footer-call-to-action-link-wrapper"> <a class="footer-call-to-action-link" href="tel:0124-64XXXX" target="_self"> 0124-645652 </a></p>
</div>
</div>
<div class="footer-social-links"> <svg class="footer-social-amoeba-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 236 54">
<path class="footer-social-amoeba-path" d="M223.06,43.32c-.77-7.2,1.87-28.47-20-32.53C187.78,8,180.41,18,178.32,20.7s-5.63,10.1-4.07,16.7-.13,15.23-4.06,15.91-8.75-2.9-6.89-7S167.41,36,167.15,33a18.93,18.93,0,0,0-2.64-8.53c-3.44-5.5-8-11.19-19.12-11.19a21.64,21.64,0,0,0-18.31,9.18c-2.08,2.7-5.66,9.6-4.07,16.69s.64,14.32-6.11,13.9S108.35,46.5,112,36.54s-1.89-21.24-4-23.94S96.34,0,85.23,0,57.46,8.84,56.49,24.56s6.92,20.79,7,24.59c.07,2.75-6.43,4.16-12.92,2.38s-4-10.75-3.46-12.38c1.85-6.6-2-14-4.08-16.69a21.62,21.62,0,0,0-18.3-9.18C13.62,13.28,9.06,19,5.62,24.47A18.81,18.81,0,0,0,3,33a21.85,21.85,0,0,0,1.58,9.08,16.58,16.58,0,0,1,1.06,5A6.75,6.75,0,0,1,0,54H236C235.47,54,223.83,50.52,223.06,43.32Z"></path>
</svg>
<a class="footer-social-link linkedin" href="#" target="_blank">
<span class="hidden-link-text">Linkedin</span>
<svg class="footer-social-icon-svg" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 30 30" style="height:20px;">
<path class="footer-social-icon-path" d="M9,25H4V10h5V25z M6.501,8C5.118,8,4,6.879,4,5.499S5.12,3,6.501,3C7.879,3,9,4.121,9,5.499C9,6.879,7.879,8,6.501,8z M27,25h-4.807v-7.3c0-1.741-0.033-3.98-2.499-3.98c-2.503,0-2.888,1.896-2.888,3.854V25H12V9.989h4.614v2.051h0.065 c0.642-1.18,2.211-2.424,4.551-2.424c4.87,0,5.77,3.109,5.77,7.151C27,16.767,27,25,27,25z"></path>
</svg>
</a>
<a class="footer-social-link twitter" href="#" target="_blank">
<span class="hidden-link-text">Twitter</span>
<svg class="footer-social-icon-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26" style="height: 30px;">
<path class="footer-social-icon-path" d="M 25.855469 5.574219 C 24.914063 5.992188 23.902344 6.273438 22.839844 6.402344 C 23.921875 5.75 24.757813 4.722656 25.148438 3.496094 C 24.132813 4.097656 23.007813 4.535156 21.8125 4.769531 C 20.855469 3.75 19.492188 3.113281 17.980469 3.113281 C 15.082031 3.113281 12.730469 5.464844 12.730469 8.363281 C 12.730469 8.773438 12.777344 9.175781 12.867188 9.558594 C 8.503906 9.339844 4.636719 7.246094 2.046875 4.070313 C 1.59375 4.847656 1.335938 5.75 1.335938 6.714844 C 1.335938 8.535156 2.261719 10.140625 3.671875 11.082031 C 2.808594 11.054688 2 10.820313 1.292969 10.425781 C 1.292969 10.449219 1.292969 10.46875 1.292969 10.492188 C 1.292969 13.035156 3.101563 15.15625 5.503906 15.640625 C 5.0625 15.761719 4.601563 15.824219 4.121094 15.824219 C 3.78125 15.824219 3.453125 15.792969 3.132813 15.730469 C 3.800781 17.8125 5.738281 19.335938 8.035156 19.375 C 6.242188 20.785156 3.976563 21.621094 1.515625 21.621094 C 1.089844 21.621094 0.675781 21.597656 0.265625 21.550781 C 2.585938 23.039063 5.347656 23.90625 8.3125 23.90625 C 17.96875 23.90625 23.25 15.90625 23.25 8.972656 C 23.25 8.742188 23.246094 8.515625 23.234375 8.289063 C 24.261719 7.554688 25.152344 6.628906 25.855469 5.574219 "></path>
</svg>
</a>
<a class="footer-social-link youtube" href="#" target="_blank">
<span class="hidden-link-text">Youtube</span>
<svg class="footer-social-icon-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" style="height: 20px;">
<path class="footer-social-icon-path" d="M 15 4 C 10.814 4 5.3808594 5.0488281 5.3808594 5.0488281 L 5.3671875 5.0644531 C 3.4606632 5.3693645 2 7.0076245 2 9 L 2 15 L 2 15.001953 L 2 21 L 2 21.001953 A 4 4 0 0 0 5.3769531 24.945312 L 5.3808594 24.951172 C 5.3808594 24.951172 10.814 26.001953 15 26.001953 C 19.186 26.001953 24.619141 24.951172 24.619141 24.951172 L 24.621094 24.949219 A 4 4 0 0 0 28 21.001953 L 28 21 L 28 15.001953 L 28 15 L 28 9 A 4 4 0 0 0 24.623047 5.0546875 L 24.619141 5.0488281 C 24.619141 5.0488281 19.186 4 15 4 z M 12 10.398438 L 20 15 L 12 19.601562 L 12 10.398438 z"></path>
</svg>
</a>
<a class="footer-social-link github" href="#" target="_blank">
<span class="hidden-link-text">Github</span>
<svg class="footer-social-icon-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" style="height: 30px;">
<path class="footer-social-icon-path" d="M 16 4 C 9.371094 4 4 9.371094 4 16 C 4 21.300781 7.4375 25.800781 12.207031 27.386719 C 12.808594 27.496094 13.027344 27.128906 13.027344 26.808594 C 13.027344 26.523438 13.015625 25.769531 13.011719 24.769531 C 9.671875 25.492188 8.96875 23.160156 8.96875 23.160156 C 8.421875 21.773438 7.636719 21.402344 7.636719 21.402344 C 6.546875 20.660156 7.71875 20.675781 7.71875 20.675781 C 8.921875 20.761719 9.554688 21.910156 9.554688 21.910156 C 10.625 23.746094 12.363281 23.214844 13.046875 22.910156 C 13.15625 22.132813 13.46875 21.605469 13.808594 21.304688 C 11.144531 21.003906 8.34375 19.972656 8.34375 15.375 C 8.34375 14.0625 8.8125 12.992188 9.578125 12.152344 C 9.457031 11.851563 9.042969 10.628906 9.695313 8.976563 C 9.695313 8.976563 10.703125 8.65625 12.996094 10.207031 C 13.953125 9.941406 14.980469 9.808594 16 9.804688 C 17.019531 9.808594 18.046875 9.941406 19.003906 10.207031 C 21.296875 8.65625 22.300781 8.976563 22.300781 8.976563 C 22.957031 10.628906 22.546875 11.851563 22.421875 12.152344 C 23.191406 12.992188 23.652344 14.0625 23.652344 15.375 C 23.652344 19.984375 20.847656 20.996094 18.175781 21.296875 C 18.605469 21.664063 18.988281 22.398438 18.988281 23.515625 C 18.988281 25.121094 18.976563 26.414063 18.976563 26.808594 C 18.976563 27.128906 19.191406 27.503906 19.800781 27.386719 C 24.566406 25.796875 28 21.300781 28 16 C 28 9.371094 22.628906 4 16 4 Z "></path>
</svg>
</a>
</div>
</div>
<div class="footer-copyright">
<div class="footer-copyright-wrapper">
<p class="footer-copyright-text">
<a class="footer-copyright-link" href="#" target="_self"> ©2024. | Designed By: Swapreads. | All rights reserved. </a>
</p>
</div>
</div>
</footer>
</div>
<script>
document.addEventListener("DOMContentLoaded", () => {
const savedAvatar = localStorage.getItem("selectedAvatar");
if (savedAvatar) {
const profileAvatar = document.getElementById("profile-avatar");
profileAvatar.src = `../assets/images/${savedAvatar}`;
}
const savedName = localStorage.getItem("profileName");
const savedEmail = localStorage.getItem("profileEmail");
const savedPhone = localStorage.getItem("profilePhone");
const lastLoginTime = localStorage.getItem("lastLoginTime");
if (savedName) {
document.querySelector(".profile-name").textContent = savedName;
}
if (savedEmail) {
document.querySelector(".profile-email").innerHTML = `<i class="fas fa-envelope"></i> ${savedEmail}`;
}
if (savedPhone) {
document.querySelector(".profile-phone").innerHTML = `<i class="fas fa-phone"></i> ${savedPhone}`;
}
if (lastLoginTime) {
const loginTimeElement = document.getElementById("last-login-time");
loginTimeElement.textContent = `Last login: ${lastLoginTime}`;
loginTimeElement.style.opacity = 1;
}
// Update Profile Completion
updateProfileCompletion();
// Set personalized greeting
setPersonalizedGreeting();
// Load activities
loadActivities();
// Load notifications
loadNotifications();
});
function setPersonalizedGreeting() {
const now = new Date();
const hours = now.getHours();
let greeting = "Hello";
if (hours < 12) {
greeting = "Good morning";
} else if (hours < 18) {
greeting = "Good afternoon";
} else {
greeting = "Good evening";
}
const profileName = document.querySelector(".profile-name").textContent;
document.getElementById("greeting").textContent = `${greeting}, ${profileName}!`;
}
function updateProfileCompletion() {
const requiredFields = ["profileName", "profileEmail", "profilePhone"];
let filledFields = 0;
requiredFields.forEach(field => {
if (localStorage.getItem(field)) {
filledFields++;
}
});
const completionPercentage = Math.round((filledFields / requiredFields.length) * 100);
document.getElementById("completion-percentage").textContent = `${completionPercentage}%`;
document.getElementById("progress-bar").style.width = `${completionPercentage}%`;
}
function editProfile() {
// Redirect to the profile editing page
window.location.href = "edit_profile.html";
}
function loadActivities() {
const activities = [
"You viewed Product 1",
"You added Product 2 to your cart",
"You made a purchase of Product 3"
];
const activityList = document.getElementById("activity-list");
activities.forEach((activity, index) => {
const li = document.createElement("li");
li.textContent = activity;
if (index < 3) {
li.classList.add("visible");
}
activityList.appendChild(li);
});
}
function toggleActivities() {
const activityListItems = document.querySelectorAll(".activity-list li");
const readMoreBtn = document.getElementById("read-more");
activityListItems.forEach(item => {
item.classList.toggle("visible");
});
if (readMoreBtn.textContent === "Read More") {
readMoreBtn.textContent = "Show Less";
} else {
readMoreBtn.textContent = "Read More";
}
}
function loadNotifications() {
const notifications = [
"Your order #1234 has been shipped",
"Your order #5678 is out for delivery",
"Your order #91011 has been delivered"
];
const notificationList = document.getElementById("notification-list");
notifications.forEach(notification => {
const li = document.createElement("li");
li.textContent = notification;
notificationList.appendChild(li);
});
}
function clearWishlist() {
const wishlist = document.getElementById("wishlist");
wishlist.innerHTML = ""; // Clear all items from the wishlist
// Optionally, you can also clear the wishlist from localStorage if needed
// localStorage.removeItem("wishlistItems");
}
function clearWishlistItem(button) {
const item = button.parentElement; // Get the parent list item
item.remove(); // Remove the item from the list
// Optionally, you can also update the wishlist in localStorage if needed
// updateWishlistInLocalStorage();
}
// Example function to update the wishlist in localStorage (if you're using localStorage)
function updateWishlistInLocalStorage() {
const wishlistItems = [];
document.querySelectorAll(".wishlist li").forEach(item => {
wishlistItems.push(item.textContent.trim());
});
localStorage.setItem("wishlistItems", JSON.stringify(wishlistItems));
}
</>
<script>
// Coordinates for the cursor
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
// Colors for the circles
const colors = [
"#ffb56b", "#fdaf69", "#f89d63", "#f59761", "#ef865e", "#ec805d",
"#e36e5c", "#df685c", "#d5585c", "#d1525c", "#c5415d", "#c03b5d",
"#b22c5e", "#ac265e", "#9c155f", "#950f5f", "#830060", "#7c0060",
"#680060", "#60005f", "#48005f", "#3d005e"
];
// Assign colors and initial position to each circle
circles.forEach(function (circle, index) {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});
// Update the coordinates when the mouse moves
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});
// Animation function to move the circles
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
// Update the position and scale of each circle
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;
circle.x = x;
circle.y = y;
// Get the next circle in the sequence
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});
// Repeat the animation
requestAnimationFrame(animateCircles);
}
// Start the animation
animateCircles();
</script>
</body>
</html>