-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlistings.html
More file actions
480 lines (441 loc) · 26.4 KB
/
listings.html
File metadata and controls
480 lines (441 loc) · 26.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Product - SwiftCart E-commerce Website</title>
<link rel="stylesheet" href="css/main.css">
<link rel="icon" type="image/png" href="assets/images/favicon-32x32.png">
<link href="https://fonts.cdnfonts.com/css/satoshi" rel="stylesheet">
<link
href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css'
rel='stylesheet'>
</head>
<body>
<!---------PRELOADER------>
<figure class="preloader">
<div class="dot white"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</figure>
<!--------MAIN CONTENT----->
<section class="content">
<!-----TOP BAR----->
<section class="bg-gray-900 p-3 md:px-8">
<div class="block md:flex justify-between place-items-center">
<div class="flex gap-5">
<a
href="tel:+2347058667431"
class="flex place-items-center space-x-2 text-xs md:text-sm js-show-on-scroll">
<span class="font-medium text-white">+2347058667431</span>
</a>
<div class="language-container">
<div
class="selected-language flex place-items-center gap-2 text-xs md:text-sm"
id="selectedLanguage">English</div>
<ul class="language-list" id="languageList">
<li data-lang="en">English</li>
<li data-lang="es">Español</li>
<li data-lang="fr">Français</li>
</ul>
</div>
</div>
<div class="flex gap-2 place-items-center mt-3 md:mt-0">
<i class='bx bxs-truck text-white text-xl'></i>
<span class="text-white text-xs md:text-sm">Tisco Plaza, Plot 6, Block B, Central Business District, Alausa , Ikeja, Lagos.</span>
</div>
</div>
</section>
<!-----NAVIGATION----->
<div class="flex justify-between place-items-center mx-3 mt-2 lg:mx-5">
<!-----LOGO---->
<div class="flex gap-3 place-items-center">
<i
class='bx bx-cart text-white p-1 lg:p-2 border-orange border bg-orange rounded-full text-2xl'></i>
<span class="text-2xl font-bold hidden md:block">SwiftCart</span>
</div>
<!-----ICONS-->
<div class="flex justify-between place-items-center gap-2 lg:gap-3 mt-1">
<!------SEARCH CONTAINER--->
<div class="hidden md:flex place-items-center search-container">
<i class='bx bx-search text-3xl' id="searchBtn"></i>
<div class="search-box">
<div class="flex gap-1 place-items-center">
<input
type="text"
id="searchInput"
placeholder="Search for products..."
class="w-24 md:w-52">
<i class='bx bx-search text-3xl cursor-pointer'></i>
</div>
<i class='bx bx-x text-3xl' id="closeBtn"></i>
</div>
</div>
<!------NOTIFICATION CONTAINER--->
<div class="notification-container">
<button
id="dropdownNotificationButton"
data-dropdown-toggle="dropdownNotification"
class="relative flex place-items-center text-sm font-medium text-center "
type="button">
<i class='bx bx-bell text-3xl' id="notificationIcon"></i>
<div
class="absolute block w-3 h-3 bg-red border-2 rounded-full -top-0.5 start-4"></div>
</button>
<!-- Dropdown menu -->
<div
id="dropdownNotification"
class="hidden z-10 mt-2 w-48 right-10 bg-white divide-y divide-gray-100 rounded-lg shadow absolute"
aria-labelledby="dropdownNotificationButton">
<div
class="block px-4 py-2 font-medium text-center text-gray-700 rounded-t-lg bg-gray-50">
No new messages
</div>
</div>
</div>
<!------USER CONTAINER--->
<div class="user-container">
<div
class="relative mt-1 cursor-pointer"
id="avatarButton"
type="button"
data-dropdown-toggle="userDropdown">
<i class='bx bx-user text-3xl'></i>
</div>
<!-- Dropdown menu -->
<div
id="userDropdown"
class="z-10 hidden bg-white absolute rounded-lg mt-2 right-10">
<ul class="py-2 text-sm" aria-labelledby="avatarButton">
<li class="px-4 py-3 text-sm">
<p id="name"></p>
<p class="font-medium" id="useremail"></p>
</li>
<li class="px-4 py-2">
<a href="#" class="flex place-items-center gap-2">
<svg
xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 24 24"
id="account"
class="w-4 h-4">
<path
d="M15.71,12.71a6,6,0,1,0-7.42,0,10,10,0,0,0-6.22,8.18,1,1,0,0,0,2,.22,8,8,0,0,1,15.9,0,1,1,0,0,0,1,.89h.11a1,1,0,0,0,.88-1.1A10,10,0,0,0,15.71,12.71ZM12,12a4,4,0,1,1,4-4A4,4,0,0,1,12,12Z"></path>
</svg>
<span class="hover:font-medium">Account</span></a>
</li>
<li class="px-4 py-2">
<a href="#" class="flex place-items-center gap-2">
<svg
xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 24 24"
id="settings"
class="w-4 h-4">
<g data-name="Layer 2">
<g data-name="settings-2">
<path
d="M12.94 22h-1.89a1.68 1.68 0 0 1-1.68-1.68v-1.09a.34.34 0 0 0-.22-.29.38.38 0 0 0-.41 0l-.74.8a1.67 1.67 0 0 1-2.37 0L4.26 18.4a1.66 1.66 0 0 1-.5-1.19 1.72 1.72 0 0 1 .5-1.21l.74-.74a.34.34 0 0 0 0-.37c-.06-.15-.16-.26-.3-.26H3.68A1.69 1.69 0 0 1 2 12.94v-1.89a1.68 1.68 0 0 1 1.68-1.68h1.09a.34.34 0 0 0 .29-.22.38.38 0 0 0 0-.41L4.26 8a1.67 1.67 0 0 1 0-2.37L5.6 4.26a1.65 1.65 0 0 1 1.18-.5 1.72 1.72 0 0 1 1.22.5l.74.74a.34.34 0 0 0 .37 0c.15-.06.26-.16.26-.3V3.68A1.69 1.69 0 0 1 11.06 2H13a1.68 1.68 0 0 1 1.68 1.68v1.09a.34.34 0 0 0 .22.29.38.38 0 0 0 .41 0l.69-.8a1.67 1.67 0 0 1 2.37 0l1.37 1.34a1.67 1.67 0 0 1 .5 1.19 1.63 1.63 0 0 1-.5 1.21l-.74.74a.34.34 0 0 0 0 .37c.06.15.16.26.3.26h1.09A1.69 1.69 0 0 1 22 11.06V13a1.68 1.68 0 0 1-1.68 1.68h-1.09a.34.34 0 0 0-.29.22.34.34 0 0 0 0 .37l.77.77a1.67 1.67 0 0 1 0 2.37l-1.31 1.33a1.65 1.65 0 0 1-1.18.5 1.72 1.72 0 0 1-1.19-.5l-.77-.74a.34.34 0 0 0-.37 0c-.15.06-.26.16-.26.3v1.09A1.69 1.69 0 0 1 12.94 22zm-1.57-2h1.26v-.77a2.33 2.33 0 0 1 1.46-2.14 2.36 2.36 0 0 1 2.59.47l.54.54.88-.88-.54-.55a2.34 2.34 0 0 1-.48-2.56 2.33 2.33 0 0 1 2.14-1.45H20v-1.29h-.77a2.33 2.33 0 0 1-2.14-1.46 2.36 2.36 0 0 1 .47-2.59l.54-.54-.88-.88-.55.54a2.39 2.39 0 0 1-4-1.67V4h-1.3v.77a2.33 2.33 0 0 1-1.46 2.14 2.36 2.36 0 0 1-2.59-.47l-.54-.54-.88.88.54.55a2.39 2.39 0 0 1-1.67 4H4v1.26h.77a2.33 2.33 0 0 1 2.14 1.46 2.36 2.36 0 0 1-.47 2.59l-.54.54.88.88.55-.54a2.39 2.39 0 0 1 4 1.67z"
data-name="<Group>"></path>
<path
d="M12 15.5a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5zm0-5a1.5 1.5 0 1 0 1.5 1.5 1.5 1.5 0 0 0-1.5-1.5z"></path>
</g>
</g>
</svg>
<span class="hover:font-medium">Settings</span></a>
</li>
<li class="px-4 py-2">
<a href="#" class="flex place-items-center gap-2">
<i class='bx bx-shopping-bag text-lg'></i>
<span class="hover:font-medium">Orders</span></a>
</li>
<li class="px-4 py-2">
<a href="#" class="flex place-items-center gap-2" id="signOutButton">
<i class='bx bx-log-out text-lg'></i>
<span class="hover:font-medium">Sign Out</span></a>
</li>
</ul>
</div>
</div>
<!------CART CONTAINER--->
<div class="cart-container">
<a
href="cart.html"
class="relative flex place-items-center text-sm font-medium text-center"
type="button">
<svg
xmlns="http://www.w3.org/2000/svg"
id="shopping-cart"
width="26"
height="26"
viewbox="0 0 24 24">
<path fill="none" d="M0 0h24v24H0V0z"></path>
<path
d="M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"></path>
</svg>
</a>
</div>
<!-------BUTTONS----->
<div class="flex justify-between place-items-center gap-2 ctabuttons">
<a
href="login.html"
class="hidden border bg-orange text-white rounded-xl hover:bg-amber-500 transition duration-500 ease-in-out lg:flex lg:px-1 lg:py-2 xl:px-4 xl:py-2">Log In</a>
<a
href="register.html"
class="hidden border bg-orange text-white rounded-xl hover:bg-amber-500 transition duration-500 ease-in-out lg:flex lg:px-1 lg:py-2 xl:px-4 xl:py-2">Sign Up</a>
</div>
</div>
</div>
<hr class="h-px my-3 bg-gray-200 border-0 dark:bg-gray-300">
<!-------MINI NAV----->
<div class="flex mx-5 md:px-3 lg:mx-8">
<div>
<button
id="dropdownDefaultButton"
class="text-black text-center flex place-items-center relative"
type="button">
<i class='bx bx-list-ul text-2xl'></i>
<span>Categories</span>
</button>
<!-- Dropdown menu -->
<div
id="cdropdown"
class="z-10 hidden absolute cdropdown bg-white divide-y divide-gray-100 rounded-lg shadow w-44 mt-3">
<ul class="py-2 text-sm" aria-labelledby="dropdownDefaultButton">
<li>
<a href="#" class="block px-4 py-2 hover:font-medium">Apple</a>
</li>
<li>
<a href="#" class="block px-4 py-2 hover:font-medium">HP</a>
</li>
<li>
<a href="#" class="block px-4 py-2 hover:font-medium">Dell</a>
</li>
<li>
<a href="#" class="block px-4 py-2 hover:font-medium">Lenovo</a>
</li>
<li>
<a href="#" class="block px-4 py-2 hover:font-medium">Acer</a>
</li>
<li>
<a href="#" class="block px-4 py-2 hover:font-medium">Asus</a>
</li>
<li>
<a href="#" class="block px-4 py-2 hover:font-medium">Microsoft</a>
</li>
<li>
<a href="#" class="block px-4 py-2 hover:font-medium">Samsung</a>
</li>
<li>
<a href="#" class="block px-4 py-2 hover:font-medium">Toshiba</a>
</li>
<li>
<a href="#" class="block px-4 py-2 hover:font-medium">MSI</a>
</li>
</ul>
</div>
</div>
<vr class="h-6 w-px mx-5 bg-gray-200 border-0 dark:bg-gray-300">
<ul class="hidden justify-between gap-7 mx-5 lg:flex">
<li>
<a href="index.html" class="hover:text-orange">Home</a>
</li>
<li>
<a
href="product.html"
class="hover:text-orange transition duration-500 ease-in-out">Products</a>
</li>
<li>
<a href="#" class="hover:text-orange transition duration-500 ease-in-out">About</a>
</li>
<li>
<a href="#" class="hover:text-orange transition duration-500 ease-in-out">Shop</a>
</li>
</ul>
<!---------HAMBURGER ICON---->
<button id="menu-btn" class="block hamburger lg:hidden focus:outline-none">
<span class="hamburger-top"></span>
<span class="hamburger-middle"></span>
<span class="hamburger-bottom"></span>
</button>
<!------MOBILE MENU---->
<div class="lg:hidden">
<div
id="menu"
class="absolute hidden flex-col px-5 py-5 mt-8 space-y-6 font-medium rounded-lg w-64 right-2 drop-shadow-md">
<a href="index.html" class="hover:text-orange">Home</a>
<a
href="product.html"
class="hover:text-orange transition duration-500 ease-in-out">Products</a>
<a href="#" class="hover:text-orange transition duration-500 ease-in-out">About</a>
<a href="#" class="hover:text-orange transition duration-500 ease-in-out">Shop</a>
<a
href="login.html"
class="hover:text-orange transition duration-500 ease-in-out ctabuttons">Log In</a>
<a
href="register.html"
class="hover:text-orange transition duration-500 ease-in-out ctabuttons">Sign Up</a>
<form class="flex md:hidden items-center">
<label for="simple-search" class="sr-only">Search</label>
<div class="relative w-full">
<input
type="text"
id="simple-search"
class="bg-gray-50 border border-gray-300 outline-none text-sm rounded-lg block w-full p-2.5"
placeholder="Search Products..."
required="required">
</div>
<button
type="submit"
class="p-2.5 ms-2 text-sm font-medium text-white bg-orange rounded-lg border hover:scale-105">
<svg
class="w-4 h-4"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewbox="0 0 20 20">
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"/>
</svg>
<span class="sr-only">Search</span>
</button>
</form>
</div>
</div>
</div>
<main>
<section
class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mx-5"
id="productDetails"></section>
</main>
<!------CART NOTIFICATION---->
<div class="fixed top-2 right-2 z-10 bg-white rounded-lg px-3 py-3 gap-3 flex justify-between place-items-center drop-shadow-lg cart-notification" id="cart-notification">
<p class="font-medium">Product Added Successfully</p>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6 cursor-pointer" id="close-button">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
</svg>
</div>
<!---------FOOTER------->
<div
class="flex flex-col justify-between text-sm mt-10 bg-gray-900 px-3 py-3 md:mt-16 md:flex-row lg:py-5 xl:px-32 xl:pt-14">
<div class="max-w-sm md:max-w-xs lg:max-w-lg xl:max-w-xl">
<div class="flex gap-3 place-items-center px-3 pt-4 md:pt-0">
<i
class='bx bx-cart text-white p-1 lg:p-2 border-orange border bg-orange rounded-full text-2xl'></i>
<span class="text-2xl font-bold text-white">SwiftCart</span>
</div>
<p class="text-white px-3 pt-4">
Embrace a seamless online shopping experience that redefines convenience and
satisfaction. Shop confidently with secure transactions, swift deliveries, and
dedicated customer support.
</p>
<form id="subscription-form">
<div class="flex px-2 my-5">
<input
type="email"
id="email"
class=" text-gray-900 text-sm rounded-l-lg block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white outline-none"
placeholder="Enter email..."
required="required">
<button
type="submit"
class="text-white bg-orange transition duration-500 ease-in-out hover:bg-amber-500 font-medium rounded-r-lg text-sm px-5 py-2.5 text-center">Subscribe</button>
</div>
</form>
</div>
<div
class="grid grid-cols-2 px-2 pt-4 text-white md:px-0 md:pt-5 md:grid-cols-3 md:gap-16 xl:gap-x-32">
<div>
<h2 class="font-medium mb-2">
Why Choose Us?
</h2>
<ul>
<li class="py-2">
<a href="#" class="text-gray-400 hover:text-white">Reviews</a>
</li>
<li class="py-2">
<a href="#" class="text-gray-400 hover:text-white">Our Approach</a>
</li>
<li class="py-2">
<a href="#" class="text-gray-400 hover:text-white">Blog & Insights</a>
</li>
</ul>
</div>
<div>
<h2 class="font-medium mb-2">
Company
</h2>
<ul>
<li class="py-2 ">
<a href="#" class="text-gray-400 hover:text-white">Leadership</a>
</li>
<li class="py-2 ">
<a href="#" class="text-gray-400 hover:text-white">Team</a>
</li>
<li class="py-2 ">
<a href="privacy.html" class="text-gray-400 hover:text-white">Privacy Policy</a>
</li>
</ul>
</div>
<div class="mt-3 md:mt-0">
<h2 class="font-medium mb-2 ">
Resources
</h2>
<ul>
<li class="py-2">
<a href="#" class="text-gray-400 hover:text-white">Events</a>
</li>
<li class="py-2">
<a href="contact.html" class="text-gray-400 hover:text-white">Contact Us</a>
</li>
<li class="py-2">
<a href="#" class="text-gray-400 hover:text-white">Partners</a>
</li class="py-2">
</ul>
</div>
</div>
</div>
<!--------FOOTER2----->
<div class="bg-gray-900 px-3 pb-3 xl:px-36">
<hr class="h-px border-0 dark:bg-gray-500">
<p class="text-white text-sm py-5 text-center">
© 2024
<a href="#" class="hover:underline">SwiftCart</a>, All Rights Reserved.
</p>
</div>
</section>
<script>
function toggleSelection(element) {
// Toggle the 'selected' class on the clicked element
element
.classList
.toggle('selected');
}
function displayImage(imageSrc) {
// Get the displayedImage element
var displayedImage = document.getElementById('displayedImage');
// Set the src attribute of displayedImage to the clicked image source
displayedImage.src = imageSrc;
}
function toggleImageBorder(clickedImage) {
const allImages = document.querySelectorAll('.select');
// Remove regular border from all images
allImages.forEach(image => {
image.style.border = 'none';
});
// Add orange border to the clicked image
clickedImage.style.border = '2px solid orange';
}
</script>
<!--------JS LINKS------>
<script type="text/javascript" src="js/pre-loading.js"></script>
<script type="text/javascript" src="js/login.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/user.js"></script>
<script type="text/javascript" src="js/listing.js"></script>
</body>
</html>