-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresult.html
More file actions
931 lines (840 loc) · 41 KB
/
result.html
File metadata and controls
931 lines (840 loc) · 41 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Brand - Product Listing Page</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="./result-style.css">
<!-- <link rel="stylesheet" href="./responsive.css"> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
</head>
<style>
@media (max-width: 500px) {
/* .custom-select-wrapper {
width: fit-content !important;
} */
.custom-select-wrapper * {
gap: 3px;
}
.product-details * {
font-size: 1em !important;
}
}
@media (max-width: 800px) {
body {
overflow-x: hidden;
/* margin: revert; */
}
.brand-section *,
.brand-section::before,
.desktop {
display: none;
}
.product-container.list-view .shipping-info {
display: inline !important;
}
.product-container.list-view .product-rating span:not(.shipping-info) {
display: inline;
}
.product-container.list-view .product-rating {
flex-wrap: wrap;
font-size: 12px;
}
.filter-component-container{
width: 90%;
max-width: fit-content !important;
overflow: scroll;
}
header {
display: flex !important;
flex-direction: row;
gap: 15px;
font-weight: 600;
}
.back-icon i {
cursor: pointer;
}
.product-container.list-view>.product-card {
padding: 0;
}
.mobile-view-only {
display: block;
}
.custom-select-wrapper {
border-radius: 8px;
height: 33px;
justify-content: center;
width: 128px;
}
.custom-select {
padding: 7px 0px 0px 22px;
text-align: justify;
}
.view-toggle-buttons {
border-radius: 12px;
}
.select-icons {
position: absolute;
top: 50%;
right: 12px;
transform: translateY(-50%);
pointer-events: none;
color: #343a40;
font-size: 10px;
display: block;
}
.filter-modal {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
}
.filter-modal-content {
background: #fff;
padding: 30px 20px;
border-radius: 10px;
max-height: 80vh;
overflow-y: auto;
width: 60vw;
max-width: 400px;
position: relative;
}
.close-modal {
position: absolute;
top: 10px;
right: 20px;
font-size: 2rem;
cursor: pointer;
}
.filter-tag {
display: inline-block;
font-size: 0.95em;
}
.remove-tag-btn {
background: none;
border: none;
color: #888;
margin-left: 6px;
cursor: pointer;
outline: none;
}
}
</style>
<body>
<div class="main-header-navbar">
<div class="navbar-content">
<header class="mobile-view-only">
<div class="back-icon">
<i onclick="location.href='./index.html'"> <- </i>
</div>
<div class="page-name">
Mobile accessory
</div>
</header>
<div class="brand-section">
<div class="brand-icon">
<img src="./assets/images/logo-symbol.png" alt="" srcset="">
</div>
<a href="./index.html"><span class="brand-name">Brand</span></a>
</div>
<div class="search-section">
<input type="text" placeholder="Search" class="search-input">
<div class="category-dropdown">
<select class="category-select">
<option value="all">All category</option>
<option value="electronics">Electronics</option>
<option value="clothes">Clothes</option>
</select>
<span class="dropdown-arrow"></span>
</div>
<a class="search-button" href="result.html">Search</a>
</div>
<div class="user-actions">
<a href="#" class="action-item">
<img src="./assets/profile.png">
<span>Profile</span>
</a>
<a href="#" class="action-item">
<img src="./assets/messages.png">
<span>Message</span>
</a>
<a href="#" class="action-item">
<img src="./assets/heart.png">
<span>Orders</span>
</a>
<a href="./cart-page.html" class="action-item">
<img src="./assets/cart.png">
<span>My cart</span>
</a>
</div>
</div>
</div>
<!-- secondary-navbar -->
<div class="top-navbar-container">
<div class="navbar-content">
<div class="nav-section nav-left">
<a href="#" class="nav-item all-category">
<span class="hamburger-icon">
<i class="fa-solid fa-bars"></i>
</span>
<span>All category</span>
</a>
<a href="#" class="nav-item">Hot offers</a>
<a href="#" class="nav-item">Gift boxes</a>
<a href="#" class="nav-item">Projects</a>
<a href="#" class="nav-item">Menu item</a>
<a href="#" class="nav-item has-dropdown">
<span>Help</span>
<span class="dropdown-arrow"></span>
</a>
</div>
<div class="nav-section nav-right">
<a href="#" class="nav-item has-dropdown">
<span>English, USD</span>
<span class="dropdown-arrow"></span>
</a>
<a href="#" class="nav-item has-dropdown">
<span>Ship to</span>
<span class="german-flag">
<img src="./assets/images/flags/DE@2x.png">
</span>
<span class="dropdown-arrow"></span>
</a>
</div>
</div>
</div>
<div class="breadcrumbs">
<span onclick="location.href='./index.html'">Home</span> <span
onclick="location.href='./result.html'">result</span>
</div>
<!-- sidebar -->
<div class="main-content">
<div class="sidebar">
<div class="filter-section category">
<h3>Category
<span class="arrow">
<i class="fa-solid fa-angle-up"></i>
</span>
</h3>
<ul class="filter-content">
<li>Mobile accessory</li>
<li>Electronics</li>
<li>Smartphones</li>
<li>Modern tech</li>
<li><a href="#" class="see-all">See all</a></li>
</ul>
</div>
<div class="filter-section brands">
<h3>Brands
<span class="arrow">
<i class="fa-solid fa-angle-up"></i>
</span>
</h3>
<ul class="filter-content">
<li><label><input type="checkbox"> Samsung</label></li>
<li><label><input type="checkbox"> Apple</label></li>
<li><label><input type="checkbox"> Huawei</label></li>
<li><label><input type="checkbox"> Pocco</label></li>
<li><label><input type="checkbox"> Lenovo</label></li>
<li><a href="#" class="see-all">See all</a></li>
</ul>
</div>
<div class="filter-section features">
<h3>Features <span class="arrow"><i class="fa-solid fa-angle-up"></i></span></h3>
<ul class="filter-content">
<li><label><input type="checkbox"> Metallic</label></li>
<li><label><input type="checkbox"> Plastic cover</label></li>
<li><label><input type="checkbox"> 8GB Ram</label></li>
<li><label><input type="checkbox"> Super power</label></li>
<li><label><input type="checkbox"> Large Memory</label></li>
<li><a href="#" class="see-all">See all</a></li>
</ul>
</div>
<div class="filter-section price-range">
<h3>Price range <span class="arrow"><i class="fa-solid fa-angle-up"></i></span></h3>
<div class="filter-content">
<div class="range-slider">
</div>
<div class="price-inputs">
<input type="number" placeholder="0" value="0" min="0">
<span>-</span>
<input type="number" placeholder="999999" value="999999" max="999999">
</div>
<button class="apply-btn">Apply</button>
</div>
</div>
<div class="filter-section condition">
<h3>Condition <span class="arrow"><i class="fa-solid fa-angle-up"></i></span></h3>
<ul class="filter-content">
<li><label><input type="radio" name="condition" checked> Any</label></li>
<li><label><input type="radio" name="condition"> Refurbished</label></li>
<li><label><input type="radio" name="condition"> Brand new</label></li>
<li><label><input type="radio" name="condition"> Old Items</label></li>
</ul>
</div>
<div class="filter-section ratings">
<h3>Ratings <span class="arrow"><i class="fa-solid fa-angle-up"></i></span></h3>
<ul class="filter-content">
<li><label><input type="checkbox"><span class="stars">★★★★★</span></label></li>
<li><label><input type="checkbox"><span class="stars">★★★★☆</span></label></li>
<li><label><input type="checkbox"><span class="stars">★★★☆☆</span></label></li>
<li><label><input type="checkbox"><span class="stars">★★☆☆☆</span></label></li>
<li><label><input type="checkbox"><span class="stars">★☆☆☆☆</span></label></li>
</ul>
</div>
<div class="filter-section manufacture">
<h3>Manufacture <span class="arrow"><i class="fa-solid fa-angle-up"></i></span></h3>
<ul class="filter-content">
</ul>
</div>
</div>
<!-- <"> -->
<div class="right-side">
<div class="product-filter-container">
<div class="product-header-controls">
<div class="filter-sort-bar-container">
<div class="item-count-info">
12,911 items in <strong>Mobile accessory</strong>
</div>
<div class="filter-controls">
<label class="checkbox-container">
<input type="checkbox" checked>
<span class="checkmark"></span>
Verified only
</label>
<div class="custom-select-wrapper desktop">
<select class="custom-select">
<option value="featured">Featured</option>
<option value="price-asc">Price: Low to High</option>
<option value="price-desc">Price: High to Low</option>
<option value="newest">Newest</option>
</select>
<span class="select-arrow"></span>
</div>
<div class="mobile-view-only">
<div class="custom-select-wrapper">
<select class="custom-select">
<option value="newest"> Sort: Newest</option>
<option value="featured"> Sort: Featured</option>
<option value="price-asc">Price: Low to High</option>
<option value="price-desc">Price: High to Low</option>
</select>
<span class="select-icons">
<i class="fa-solid fa-lines-leaning"></i>
</span>
</div>
<div class="custom-select-wrapper">
<select class="custom-select">
<option value="">Filter (<span id="filter-count">0</span>)</option>
</select>
<span class="select-icons">
<i class="fa-solid fa-filter"></i>
</span>
</div>
</div>
<div class="view-toggle-buttons">
<button id="gridViewBtn" class="view-button grid-view">
<img src="./assets/grid-view.png">
</button>
<button id="listViewBtn" class="view-button list-view">
<img src="./assets/list-view.png">
</button>
</div>
</div>
</div>
</div>
<!-- filter-components -->
<div class="filter-component-container">
<a href="#" class="clear-all-filter">Clear all filter</a>
</div>
</div>
<div class="product-container grid-view" id="productContainer">
<!-- Product 1 -->
<div class="product-card">
<div class="wishlist-icon" id="wishlist-icon">
<i class="fa-regular fa-heart"></i>
</div>
<img src="./assets/tech-listview/image 33.png" alt="Product Image" class="product-image">
<div class="product-details">
<div class="product-price-info">
<span class="product-price">$99.50</span>
<span class="old-price">$1128.00</span>
</div>
<div class="product-rating">
<span class="stars-filled">★★★★★</span>
<span class="rating-value">7.5</span>
<span class="orders">• 154 orders</span>
<span class="shipping-info">• Free Shipping</span>
</div>
<div class="product-title">GoPro HERO6 4K Action Camera - Black</div>
<div class="product-description">Lorem ipsum dolor sit amet, consectetur adipiscing
elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</div>
<a href="#" class="view-details">View details</a>
</div>
</div>
<!-- Product 2 -->
<div class="product-card">
<div class="wishlist-icon" id="wishlist-icon">
<i class="fa-regular fa-heart"></i>
</div>
<img src="./assets/tech-listview/image 23.png" alt="Product Image" class="product-image">
<div class="product-details">
<div class="product-price-info">
<span class="product-price">$99.50</span>
<span class="old-price">$1128.00</span>
</div>
<div class="product-rating">
<span class="stars-filled">★★★★★</span>
<span class="rating-value">5.9</span>
<span class="orders">• 154 orders</span>
<span class="shipping-info">• Free Shipping</span>
</div>
<div class="product-title">GoPro HERO6 4K Action Camera - Black</div>
<div class="product-description">Ut enim ad minim veniam, quis nostrud exercitation
ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit
</div>
<a href="#" class="view-details">View details</a>
</div>
</div>
<!-- Product 3 -->
<div class="product-card">
<div class="wishlist-icon" id="wishlist-icon">
<i class="fa-regular fa-heart"></i>
</div>
<img src="./assets/tech-listview/image 32.png" alt="Product Image" class="product-image">
<div class="product-details">
<div class="product-price-info">
<span class="product-price">$99.50</span>
<span class="old-price">$1128.00</span>
</div>
<div class="product-rating">
<span class="stars-filled">★★★★★</span>
<span class="rating-value">7.5</span>
<span class="orders">• 154 orders</span>
<span class="shipping-info">• Free Shipping</span>
</div>
<div class="product-title">GoPro HERO6 4K Action Camera - Black</div>
<div class="product-description">Ut enim ad minim veniam, quis nostrud exercitation
ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit
</div>
<a href="#" class="view-details">View details</a>
</div>
</div>
<!-- Product 4 -->
<div class="product-card">
<div class="wishlist-icon" id="wishlist-icon">
<i class="fa-regular fa-heart"></i>
</div>
<img src="./assets/tech-listview/image 34.png" alt="Product Image" class="product-image">
<div class="product-details">
<div class="product-price-info">
<span class="product-price">$99.50</span>
<span class="old-price">$1128.00</span>
</div>
<div class="product-rating">
<span class="stars-filled">★★★★★</span>
<span class="rating-value">7.5</span>
<span class="orders">• 154 orders</span>
<span class="shipping-info">• Free Shipping</span>
</div>
<div class="product-title">GoPro HERO6 4K Action Camera - Black</div>
<div class="product-description">Ut enim ad minim veniam, quis nostrud exercitation
ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit
</div>
<a href="#" class="view-details">View details</a>
</div>
</div>
<!-- Product 5 -->
<div class="product-card">
<div class="wishlist-icon" id="wishlist-icon">
<i class="fa-regular fa-heart"></i>
</div>
<img src="./assets/tech-listview/image 35.png" alt="Product Image" class="product-image">
<div class="product-details">
<div class="product-price-info">
<span class="product-price">$99.50</span>
<span class="old-price">$1128.00</span>
</div>
<div class="product-rating">
<span class="stars-filled">★★★★★</span>
<span class="rating-value">7.5</span>
<span class="orders">• 154 orders</span>
<span class="shipping-info">• Free Shipping</span>
</div>
<div class="product-title">GoPro HERO6 4K Action Camera - Black</div>
<div class="product-description">Ut enim ad minim veniam, quis nostrud exercitation
ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit
</div>
<a href="#" class="view-details">View details</a>
</div>
</div>
<!-- Product 6 -->
<div class="product-card">
<div class="wishlist-icon" id="wishlist-icon">
<i class="fa-regular fa-heart"></i>
</div>
<img src="./assets/tech-listview/image 33.png" alt="Product Image" class="product-image">
<div class="product-details">
<div class="product-price-info">
<span class="product-price">$99.50</span>
<span class="old-price">$1128.00</span>
</div>
<div class="product-rating">
<span class="stars-filled">★★★★★</span>
<span class="rating-value">7.5</span>
<span class="orders">• 154 orders</span>
<span class="shipping-info">• Free Shipping</span>
</div>
<div class="product-title">GoPro HERO6 4K Action Camera - Black</div>
<div class="product-description">Ut enim ad minim veniam, quis nostrud exercitation
ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit
</div>
<a href="#" class="view-details">View details</a>
</div>
</div>
<!-- Product 7 -->
<div class="product-card">
<div class="wishlist-icon" id="wishlist-icon">
<i class="fa-regular fa-heart"></i>
</div>
<img src="./assets/tech-listview/image 86.png" alt="Product Image" class="product-image">
<div class="product-details">
<div class="product-price-info">
<span class="product-price">$99.50</span>
<span class="old-price">$1128.00</span>
</div>
<div class="product-rating">
<span class="stars-filled">★★★★★</span>
<span class="rating-value">7.5</span>
<span class="orders">• 154 orders</span>
<span class="shipping-info">• Free Shipping</span>
</div>
<div class="product-title">GoPro HERO6 4K Action Camera - Black</div>
<div class="product-description">Ut enim ad minim veniam, quis nostrud exercitation
ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit
</div>
<a href="#" class="view-details">View details</a>
</div>
</div>
<!-- Product 8 -->
<div class="product-card">
<div class="wishlist-icon" id="wishlist-icon">
<i class="fa-regular fa-heart"></i>
</div>
<img src="./assets/tech-listview/image 28.png" alt="Product Image" class="product-image">
<div class="product-details">
<div class="product-price-info">
<span class="product-price">$99.50</span>
<span class="old-price">$1128.00</span>
</div>
<div class="product-rating">
<span class="stars-filled">★★★★★</span>
<span class="rating-value">7.5</span>
<span class="orders">• 154 orders</span>
<span class="shipping-info">• Free Shipping</span>
</div>
<div class="product-title">GoPro HERO6 4K Action Camera - Black</div>
<div class="product-description">Ut enim ad minim veniam, quis nostrud exercitation
ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit
</div>
<a href="#" class="view-details">View details</a>
</div>
</div>
<!-- Product 9 -->
<div class="product-card">
<div class="wishlist-icon" id="wishlist-icon">
<i class="fa-regular fa-heart"></i>
</div>
<img src="./assets/tech-listview/image 22.png" alt="Product Image" class="product-image">
<div class="product-details">
<div class="product-price-info">
<span class="product-price">$99.50</span>
<span class="old-price">$1128.00</span>
</div>
<div class="product-rating">
<span class="stars-filled">★★★★★</span>
<span class="rating-value">7.5</span>
<span class="orders">• 154 orders</span>
<span class="shipping-info">• Free Shipping</span>
</div>
<div class="product-title">GoPro HERO6 4K Action Camera - Black</div>
<div class="product-description">Ut enim ad minim veniam, quis nostrud exercitation
ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit
</div>
<a href="#" class="view-details">View details</a>
</div>
</div>
</div>
</div>
</div>
<div class="pagination-area">
<div class="show-results-dropdown-container">
<div class="custom-select-wrapper">
<select class="custom-select">
<option value="10">Show 10</option>
<option value="20">Show 20</option>
<option value="50">Show 50</option>
</select>
<span class="select-arrow"></span>
</div>
</div>
<nav class="pagination-nav">
<button class="pagination-button pagination-arrow disabled">‹</button>
<button class="pagination-button pagination-number active">1</button>
<button class="pagination-button pagination-number">2</button>
<button class="pagination-button pagination-number">3</button>
<button class="pagination-button pagination-arrow">›</button>
</nav>
</div>
<!-- </div> -->
<!-- newsletter -->
<section class="newsletter-section">
<div class="newsletter-content">
<h2>Subscribe on our newsletter</h2>
<p>Get daily news on upcoming offers from many suppliers all
over the world</p>
<form class="newsletter-form" action="#">
<div class="input-wrapper">
<span class="email-icon">
<img src="./assets/email.png">
</span>
<input type="email" placeholder="Email" required />
</div>
<button type="submit">Subscribe</button>
</form>
</div>
</section>
<!-- FOOTER -->
<footer class="footer-wrapper">
<div class="footer-container">
<div class="footer-top">
<div class="footer-column footer-brand">
<div class="logo">
<img class="logo-icon" src="./assets/images/logo-symbol.png" alt="Brand Icon" />
<span class="logo-text">Brand</span>
</div>
<p class="description">
Best information about the company gies here but
now lorem ipsum
is
</p>
<div class="social-icons">
<a href="#"><img src="./assets/images/facebook3.png" alt="facebook" /></a>
<a href="#"><img src="./assets/images/twitter3.png" alt="twitter" /></a>
<a href="#"><img src="./assets/images/linkedin3.png" /></a>
<a href="#"><img src="./assets/images/instagram3.png" alt="instagram" /></a>
<a href="#"><img src="./assets/images/youtube3.png" alt="youtube" /></a>
</div>
</div>
<div class="footer-column">
<h3>About</h3>
<ul class="footer-links">
<li><a href="#">About Us</a></li>
<li><a href="#">Find store</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Blogs</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Partnership</h3>
<ul class="footer-links">
<li><a href="#">About Us</a></li>
<li><a href="#">Find store</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Blogs</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Information</h3>
<ul class="footer-links">
<li><a href="#">Help Center</a></li>
<li><a href="#">Money Refund</a></li>
<li><a href="#">Shipping</a></li>
<li><a href="#">Contact us</a></li>
</ul>
</div>
<div class="footer-column">
<h3>For users</h3>
<ul class="footer-links">
<li><a href="#">Login</a></li>
<li><a href="#">Register</a></li>
<li><a href="#">Settings</a></li>
<li><a href="#">My Orders</a></li>
</ul>
</div>
<div class="footer-column footer-get-app">
<h3>Get app</h3>
<div class="app-buttons">
<a href="#" aria-label="Download on the App Store"><img src="./assets/images/Subtract.png"
alt="Download on the App Store" /></a><a href="#"
aria-label="Get it on Google Play"><img src="./assets/images/Logo.png"
alt="Get it on Google Play" /></a>
</div>
</div>
</div>
</div>
<div class="footer-bottom">
<div class="footer-bottom-content">
<p class="copyright">© 2023 Ecommerce.</p>
<div class="language-selector">
<img src="./assets/images/US@2x.png" alt="US Flag" />
<span>English</span>
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18 15L12 9L6 15" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
</div>
</div>
</div>
</footer>
<!-- Filter Modal -->
<div id="filterModal" class="filter-modal" style="display:none;">
<div class="filter-modal-content">
<span class="close-modal" id="closeFilterModal">×</span>
<div id="modalSidebarContent"></div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
if (window.innerWidth <= 800) {
const filterBtn = document.querySelectorAll('.product-filter-container .custom-select-wrapper')[2];
const filterModal = document.getElementById('filterModal');
const closeModalBtn = document.getElementById('closeFilterModal');
const modalSidebarContent = document.getElementById('modalSidebarContent');
const sidebar = document.querySelector('.sidebar');
const filterCount = document.getElementById('filter-count');
const filterTagContainer = document.querySelector('.filter-component-container');
const clearAllFilterBtn = document.querySelector('.clear-all-filter');
function getAllFilterCheckboxes(context = document) {
return context.querySelectorAll(
'.filter-section input[type="checkbox"], .filter-section input[type="radio"]'
);
}
function getFilterLabel(input) {
if (input.parentElement && input.parentElement.tagName === 'LABEL') {
return input.parentElement.textContent.trim();
}
let label = input.closest('li')?.textContent?.trim();
return label || input.value || '';
}
function updateFilterTags() {
filterTagContainer.querySelectorAll('.filter-tag').forEach(tag => tag.remove());
const checkedInputs = getAllFilterCheckboxes(sidebar);
let count = 0;
checkedInputs.forEach(input => {
if (input.checked) {
if (input.type === 'checkbox' || (input.type === 'radio' && !getFilterLabel(input).includes('Any'))) {
count++;
const tag = document.createElement('span');
tag.className = 'filter-tag';
tag.textContent = getFilterLabel(input);
const removeBtn = document.createElement('button');
removeBtn.innerHTML = '×';
removeBtn.className = 'remove-tag-btn';
removeBtn.onclick = function () {
input.checked = false;
const modalInputs = getAllFilterCheckboxes(modalSidebarContent);
modalInputs.forEach(mi => {
if (getFilterLabel(mi) === getFilterLabel(input) && mi.type === input.type) {
mi.checked = false;
}
});
updateFilterTags();
};
tag.appendChild(removeBtn);
filterTagContainer.appendChild(tag);
}
}
});
filterCount.textContent = count;
}
if (filterBtn && filterModal && sidebar && modalSidebarContent) {
filterBtn.addEventListener('click', function (e) {
e.stopPropagation();
modalSidebarContent.innerHTML = sidebar.innerHTML;
const sidebarInputs = getAllFilterCheckboxes(sidebar);
const modalInputs = getAllFilterCheckboxes(modalSidebarContent);
sidebarInputs.forEach((input, idx) => {
if (modalInputs[idx]) {
modalInputs[idx].checked = input.checked;
}
});
modalInputs.forEach((input, idx) => {
input.addEventListener('change', function () {
sidebarInputs[idx].checked = input.checked;
updateFilterTags();
});
});
filterModal.style.display = 'flex';
});
closeModalBtn.addEventListener('click', function () {
filterModal.style.display = 'none';
});
filterModal.addEventListener('click', function (e) {
if (e.target === filterModal) {
filterModal.style.display = 'none';
}
});
}
getAllFilterCheckboxes(sidebar).forEach(input => {
input.addEventListener('change', function () {
updateFilterTags();
});
});
if (clearAllFilterBtn) {
clearAllFilterBtn.addEventListener('click', function (e) {
e.preventDefault();
getAllFilterCheckboxes(sidebar).forEach(input => {
if (input.type === 'checkbox') {
input.checked = false;
} else if (input.type === 'radio' && getFilterLabel(input).includes('Any')) {
input.checked = true;
} else if (input.type === 'radio' && !getFilterLabel(input).includes('Any')) {
input.checked = false;
}
});
const sidebarInputs = getAllFilterCheckboxes(sidebar);
const modalInputs = getAllFilterCheckboxes(modalSidebarContent);
sidebarInputs.forEach((input, idx) => {
if (modalInputs[idx]) {
modalInputs[idx].checked = input.checked;
}
});
updateFilterTags();
});
}
updateFilterTags();
}
});
</script>
<script src="./script.js"></script>
</body>
</html>