-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
457 lines (449 loc) · 16.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Online Shopping Site for Mobiles, Electronics, Furniture, Grocery, Lifestyle, Books & More. Best Offers!</title>
<link rel="shortcut icon" href="https://static-assets-web.flixcart.com/www/promos/new/20150528-140547-favicon-retina.ico" type="image/x-icon">
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Header Section -->
<header>
<!-- Navbar -->
<nav class="topNav" id="headerNav">
<div class="navContainer nav-item">
<!-- Flipkart Logo + Explore Plus -->
<div class="plainLogo">
<img src="./assets/flipkart-logo.png" alt="flipkart logo" />
<a href="#" class="expPlus"
>Explore<span class="plus"
>Plus
<img
src="./assets/plus.png"
alt="Plus img"
class="plusImg" /></span
></a>
</div>
<!-- Search Bar -->
<div class="searchBar">
<div class="search">
<form action="#" class="searchField">
<input
type="text/"
class="searchBox"
placeholder="Search for products, brands and more"
/>
<button class="searchBtn">
<i class="fa fa-search"></i>
</button>
</form>
</div>
</div>
<!-- Login Button -->
<div class="loginBtn">
<a href="#" class="login">Login</a>
<!-- Login Options On hover -->
<div class="loginMenu none">
<ul class="loginOptions">
<li class="ulItem signupNew">
<p class="new">New customer?</p>
<a href="#" class="signup">Sign Up</a>
</li>
<li class="ulItem">
<i class="fa fa-light fa-user loginIcon"></i> My Profile
</li>
<li class="ulItem">
<i class="fa fa-regular fa-plus loginIcon"></i>Flipkart Plus
Zone
</li>
<li class="ulItem">
<i class="fa fa-shopping-cart loginIcon"></i>Orders
</li>
<li class="ulItem">
<i class="fa fa-light fa-user loginIcon"></i>Wishlist
</li>
<li class="ulItem">
<i class="fa fa-solid fa-trophy loginIcon"></i>Rewards
</li>
<li class="ulItem">
<i class="fa fa-solid fa-gift loginIcon"></i>Gift Cards
</li>
</ul>
</div>
</div>
<!-- Become a Seller Component -->
<div class="becASeller">
<a href="#" class="becASellerTxt">Become a Seller</a>
</div>
<!-- More -->
<div class="more">
<span class="moreTxt">More <i class="fa fa-angle-down"></i></span>
<!-- More Options-->
<div class="moreMenu none">
<div class="options moreOptions">
<ul class="moreMenuOptions">
<li class="moreItems">
<i class="moreIcon fa fa-bell"> </i> Notification
Preferences
</li>
<li class="moreItems">
<i class="moreIcon fa fa-question"> </i>24X7 Customer Care
</li>
<li class="moreItems">
<i class="moreIcon fa fa-line-chart"> </i>Advertise
</li>
<li class="moreItems">
<i class="moreIcon fa fa-download"> </i>Download App
</li>
</ul>
</div>
</div>
</div>
<!-- Cart + Cart Icon -->
<div class="cart">
<span class="cartTxt"><i class="fa fa-shopping-cart"></i>Cart</span>
</div>
</div>
<!-- Toggle Button Section-->
<ul class="menu ">
<li class="menuItem"> <div class="plainLogo2">
<img src="./assets/flipkart-logo.png" alt="flipkart logo" />
<a href="#" class="expPlus2"
>Explore<span class="plus2"
>Plus
<img
src="./assets/plus.png"
alt="Plus img"
class="plusImg2" /></span
></a>
</div></li>
<li><a class="menuItem try" href="#">Login <i class="fa fa-light fa-user "></i></a></li>
<li><a class="menuItem" href="#">More <i class="fa fa-angle-down"></i></a></li>
<li><a class="menuItem" href="#">Cart <i class="fa fa-shopping-cart"></i></a></li>
</ul>
<!-- Toggle Button -->
<button class="hamburger ">
<i class="menuIcon material-icons">menu</i>
<i class="closeIcon material-icons">close</i>
</button>
</nav>
</header>
<!-- Categories Section -->
<div class="categoryOptions scroll">
<ul class="categoryList">
<li class="categoryItem">
<img
src="./assets/grocery.webp"
alt="Category Image"
class="CategoryImg"
/>
<p class="categoryName">Grocery</p>
</li>
<li class="categoryItem">
<img
src="./assets/mobiles.webp"
alt="Category Image"
class="CategoryImg"
/>
<p class="categoryName">Mobiles</p>
</li>
<li class="categoryItem">
<img
src="./assets/fashion.webp"
alt="Category Image"
class="CategoryImg"
/>
<div class="more">
<span class="moreTxt categoryName categoryName1">Fashion <i class="fa fa-angle-down"></i></span>
<!-- More Options-->
<div class="moreMenu none">
<div class="options moreOptions">
<ul class="moreMenuOptions">
<li class="moreItems">
Winter Essentials
</li>
<li class="moreItems">
Jackets
</li>
</ul>
</div>
</div>
</div>
<!-- <p class="categoryName">Fashion <i class="fa fa-angle-down"></i></p> -->
</li>
<li class="categoryItem">
<img
src="./assets/electronics.webp"
alt="Category Image"
class="CategoryImg"
/>
<p class="categoryName">
Electronics <i class="fa fa-angle-down"></i>
</p>
</li>
<li class="categoryItem">
<img
src="./assets/home.webp"
alt="Category Image"
class="CategoryImg"
/>
<p class="categoryName">Home <i class="fa fa-angle-down"></i></p>
</li>
<li class="categoryItem">
<img
src="./assets/appliances.webp"
alt="Category Image"
class="CategoryImg"
/>
<p class="categoryName">Appliances</p>
</li>
<li class="categoryItem">
<img
src="./assets/travel.webp"
alt="Category Image"
class="CategoryImg"
/>
<p class="categoryName">Travel</p>
</li>
<li class="categoryItem">
<img
src="./assets/topoffers.webp"
alt="Category Image"
class="CategoryImg"
/>
<p class="categoryName">Top Offers</p>
</li>
<li class="categoryItem">
<img
src="./assets/toysandmore.webp"
alt="Category Image"
class="CategoryImg"
/>
<p class="categoryName">
Beauty,Toys & More <i class="fa fa-angle-down"></i>
</p>
</li>
<li class="categoryItem">
<img
src="./assets/twowheelers.webp"
alt="Category Image"
class="CategoryImg"
/>
<p class="categoryName">
Two Wheelers <i class="fa fa-angle-down"></i>
</p>
</li>
</ul>
</div>
<!-- Product Listing Section -->
<div class="productsContainer">
<div class="leftContainer">
<div class="headingContainer">
<h1 class="headingElectronics">
Best Of Electronics
<!-- Timer Icon -->
<svg
class="timer"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
>
<path
d="M256 512C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256s-114.6 256-256 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"
/>
</svg>
</h1>
<p id="demo"></p>
<div class="viewBtn">
<a href="#" class="viewAll">VIEW ALL</a>
</div>
</div>
<div class="electronicsOptions hover01">
<ul class="electronicsList wrapper">
<li class="electronicsItem">
<img
src="./assets/s1hairdryer.webp"
alt="Electronic Image"
class="electronicImg"
/>
<p class="electronicName">Hair Dryer</p>
<p class="greenTxt">From <i class="fa fa-rupee"></i> 499</p>
<p class="brandTxt">realme,phillips & more</p>
</li>
<li class="electronicsItem">
<img
src="./assets/s1mirrorlesscamera.webp"
alt="Electronic Image"
class="electronicImg"
/>
<p class="electronicName">Mirrorless Camera...</p>
<p class="greenTxt">From <i class="fa fa-rupee"></i> 2999</p>
<p class="brandTxt">sony,cannon & more</p>
</li>
<li class="electronicsItem">
<img
src="./assets/s1monitors.webp"
alt="Electronic Image"
class="electronicImg"
/>
<p class="electronicName">Monitors</p>
<p class="greenTxt">Best Offers!</p>
<p class="brandTxt">hp,apple & more</p>
</li>
<li class="electronicsItem">
<img
src="./assets/s1printer.webp"
alt="Electronic Image"
class="electronicImg"
/>
<p class="electronicName">Printers</p>
<p class="greenTxt">From <i class="fa fa-rupee"></i> 4999</p>
<p class="brandTxt">hp,lenevo,phillips & more</p>
</li>
<li class="electronicsItem secLastImg">
<img
src="./assets/s1projectors.webp"
alt="Electronic Image"
class="electronicImg"
/>
<p class="electronicName">Projectors</p>
<p class="greenTxt">From <i class="fa fa-rupee"></i> 5499</p>
<p class="brandTxt">sony, zebronics & more</p>
</li>
</ul>
</div>
</div>
<div class="rightContainer">
<img src="./assets/advertisement.png" alt="Advertisement" />
</div>
</div>
<!-- Second Product Listing Section -->
<div class="productsContainer .productsContainer2">
<div class="leftContainerOnly">
<div class="headingContainer">
<h1 class="headingElectronics">Beauty, Toys and More</h1>
<div class="viewBtn">
<a href="#" class="viewAll">VIEW ALL</a>
</div>
</div>
<div class="electronicsOptions hover01">
<ul class="toysList wrapper">
<li class="electronicsItem">
<img
src="./assets/s2badminton.webp"
alt="Electronic Image"
class="electronicImg"
/>
<p class="electronicName">Badmintion rackets...</p>
<p class="greenTxt">From <i class="fa fa-rupee"></i> 2499</p>
<p class="brandTxt">Yonex,xi-ling</p>
</li>
<li class="electronicsItem">
<img
src="./assets/s2cyclesacc.webp"
alt="Electronic Image"
class="electronicImg"
/>
<p class="electronicName">Bicycles Locks/p></p>
<p class="greenTxt">From <i class="fa fa-rupee"></i> 199</p>
<p class="brandTxt">hero,mybyk</p>
</li>
<li class="electronicsItem">
<img
src="./assets/s2headphones.webp"
alt="Electronic Image"
class="electronicImg"
/>
<p class="electronicName">Headsets, Microphones</p>
<p class="greenTxt">From <i class="fa fa-rupee"></i> 999</p>
<p class="brandTxt">realme,boat & more</p>
</li>
<li class="electronicsItem">
<img
src="./assets/s2bicycles.webp"
alt="Electronic Image"
class="electronicImg"
/>
<p class="electronicName">Cyles,Gear cycles</p>
<p class="greenTxt">From <i class="fa fa-rupee"></i> 5999</p>
<p class="brandTxt">hero, bajaj & more</p>
</li>
<li class="electronicsItem">
<img
src="./assets/s2remotecontrol.webp"
alt="Electronic Image"
class="electronicImg"
/>
<p class="electronicName">Remote control cars</p>
<p class="greenTxt">From <i class="fa fa-rupee"></i> 699</p>
<p class="brandTxt">battery cars & more</p>
</li>
<li class="electronicsItem">
<img
src="./assets/s2riderhelmet.webp"
alt="Electronic Image"
class="electronicImg lastImg"
/>
<p class="electronicName lastImg">Helmets</p>
<p class="greenTxt lastImg">
From <i class="fa fa-rupee"></i> 399
</p>
<p class="brandTxt lastImg">zoomcars, hero & more</p>
</li>
</ul>
</div>
</div>
</div>
<!-- JS FUNCTIONS -->
<script>
var countDownDate = new Date("Jan 30, 2024 15:37:25").getTime();
var x = setInterval(function () {
// Get today's date and time
var now = new Date().getTime();
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor(
(distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)
);
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in id="demo"
document.getElementById("demo").innerHTML =
hours + "h " + minutes + "m " + seconds + "s ";
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
}, 1000);
</script>
<!-- Toggle Button -Hamburger -->
<script>
const menu = document.querySelector(".menu");
const menuItems = document.querySelectorAll(".menuItem");
const hamburger= document.querySelector(".hamburger");
const closeIcon= document.querySelector(".closeIcon");
const menuIcon = document.querySelector(".menuIcon");
function toggleMenu() {
if (menu.classList.contains("showMenu")) {
menu.classList.remove("showMenu");
closeIcon.style.display = "none";
menuIcon.style.display = "block";
}
else {
menu.classList.add("showMenu");
closeIcon.style.display = "block";
menuIcon.style.display = "none";
}
}
hamburger.addEventListener("click", toggleMenu);
</script>
</body>
</html>