-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
560 lines (483 loc) · 18 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shopping Page</title>
<link rel="stylesheet" href="navbar.css">
<link href='https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="./footer.css">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
}
#header {
text-align: center;
margin: 20px 0;
}
#header img {
max-width: 100%;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#products {
display: flex;
justify-content: space-around;
margin: 20px;
flex-wrap: wrap;
}
.product {
background-color: #fff;
margin: 10px;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 250px;
text-align: center;
}
.product img {
max-width: 100%;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 15px;
}
.product h3 {
color: #333;
font-size: 18px;
margin: 10px 0;
}
.product button {
background-color: BLACK;
color: #fff;
border: none;
padding: 8px;
cursor: pointer;
border-radius: 4px;
width: 60%;
font-size: 14px;
margin-top: 10px;
}
.product button:hover {
background-color: BLACK;
}
#viewAllBtn {
background-color: white;
color: #333;
margin-top: 20px;
width: auto;
display: block;
margin: 20px auto;
}
#viewAllBtn:hover {
background-color: black;
color: #f5f5f5;
}
#midBanner {
text-align: center;
margin: 20px 0;
}
#midBanner img {
max-width: 100%;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#luxuryCategories {
text-align: center;
margin: 20px 0;
}
#luxuryCategories h1 {
color: #333;
font-size: 24px;
margin-bottom: 20px;
}
#lux {
display: flex;
justify-content: space-around;
align-items: flex-start;
flex-wrap: wrap;
margin: 20px;
}
.luxItem {
margin-bottom: 20px;
box-sizing: border-box;
width: 300px;
/* Fixed width for better alignment */
}
.luxItem img {
max-width: 100%;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 15px;
}
#bella {
display: flex;
justify-content: space-around;
align-items: center;
margin-bottom: 20px;
}
#bella img {
max-width: 100%;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#videoSection {
width: 100%;
position: relative;
}
video {
width: 100%;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#videoText {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #fff;
font-size: 24px;
}
#videoButton {
background-color: WHITE;
color: BLACK;
border: none;
padding: 10px;
cursor: pointer;
border-radius: 4px;
font-size: 16px;
margin-top: 20px;
}
#checkoutModal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.7);
padding-top: 50px;
}
#checkoutForm {
background-color: #fefefe;
margin: 5% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
#checkoutForm h2 {
text-align: center;
color: #333;
}
#checkoutForm label {
display: block;
margin: 10px 0;
color: #333;
}
#checkoutForm input {
width: 100%;
padding: 8px;
margin: 5px 0 15px;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
border-radius: 4px;
}
#checkoutForm button {
background-color: BLACK;
color: #fff;
border: none;
padding: 10px;
cursor: pointer;
border-radius: 4px;
font-size: 16px;
}
#checkoutForm button:hover {
background-color: #333;
}
.close {
position: absolute;
top: 20px;
right: 20px;
font-size: 20px;
color: #333;
cursor: pointer;
}
@media (max-width: 768px) {
#products {
justify-content: center;
}
.product {
width: 80%;
}
#viewAllBtn {
width: 80%;
}
#lux .luxItem {
flex: 0 0 100%;
}
#bella {
flex-direction: column;
}
}
</style>
</head>
<body>
<nav>
<div class="navbar">
<i class='bx bx-menu'></i>
<div class="logo"><a href="./index.html"><img
src="https://bellavitaorganic.com/cdn/shop/files/Bella_Vita_Logo_360_E_2x_White.png?height=30&v=1689597318"></a>
</div>
<div class="nav-links">
<div class="sidebar-logo">
<span class="logo-name"></span>
<i class='bx bx-x'></i>
</div>
<ul class="links">
<!-- <li><a href="./index.html">Home</a></li> -->
<li><a href="./crazyDeal.html">CRAZY DEALS</a></li>
<li><a href="./shopall.html">SHOP ALL</a></li>
<li><a href="./bestSellers.html">BESTSELLERS</a></li>
<li><a href="./perfume.html">PERFUMES</a></li>
<li><a href="./bathAndBody.html">BATH & BODY</a></li>
<li><a href="./new.html">NEW ARRIVALS</a></li>
<li><a href="./skin.html">SKINCARE</a></li>
<li><a href="./gifting.html">GIFTING</a></li>
<li><a id="login" href="./login.html">Login</a></li>
<li><a href="./cart.html">Cart</a></li>
</ul>
</div>
<div class="search-box">
<i class='bx bx-search'></i>
<div class="input-box">
<input type="text" placeholder="Search...">
</div>
</div>
</div>
</nav>
<div id="header">
<a href="./shopall.html">
<img src="https://bellavitaorganic.com/cdn/shop/files/1920_x_720_2f7de478-ad9a-4e44-9444-1c5f5558118c.jpg?v=1704887849&width=1920"
alt="Header Image">
</a>
</div>
<div id="products">
<div class="product">
<img src="https://bellavitaorganic.com/cdn/shop/files/ManPerfumeGiftSet-01_2_eb660165-6da9-4e14-bdf0-fabd68113a00.jpg?v=1696082809&width=400"
alt="OUD GOLD - 100ml">
<h3>Luxury Perfume Gift Set For Men - 4 x 20mls</h3>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product">
<img src="https://bellavitaorganic.com/cdn/shop/files/CEOMAN_3b131d25-7893-4ad5-a17a-4b3de9a3ebd3.jpg?v=1693290059&width=400"
alt="CEOMAN">
<h3>CEO Man Luxury Perfume - 100ml</h3>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product">
<img src="https://bellavitaorganic.com/cdn/shop/files/OUDGold-01.jpg?v=1698055234&width=400" alt="OUDGold">
<h3>OUD GOLD - 100ml</h3>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product">
<img src="https://bellavitaorganic.com/cdn/shop/files/WomanPerfumeGiftSet_1.jpg?v=1695204304&width=400"
alt="WomanPerfumeGiftSet">
<h3>Luxury Perfume Gift Set For Women - 4 x 20mls</h3>
<button class="add-to-cart">Add to Cart</button>
</div>
</div>
<button id="viewAllBtn">VIEW ALL</button>
<div id="midBanner">
<img src="https://bellavitaorganic.com/cdn/shop/files/Offer-Banner-2.jpg?v=1695733175&width=1920"
alt="Mid Banner">
</div>
<div id="luxuryCategories">
<h1>LUXURY CATEGORIES</h1>
<div id="lux">
<div class="luxItem">
<img src="https://bellavitaorganic.com/cdn/shop/files/intense_1.jpg?v=1702643236&width=300"
alt="Luxury Item 1">
<h3>LUXURY PERFUMES</h3>
</div>
<div class="luxItem">
<img src="https://bellavitaorganic.com/cdn/shop/files/3_c364391f-45a0-4f2f-8ab2-babe0720a752.jpg?v=1691575834&width=300"
alt="Luxury Item 2">
<h3>BODY WASHES</h3>
</div>
<div class="luxItem">
<img src="https://bellavitaorganic.com/cdn/shop/files/lotion-new.jpg?v=1693994675&width=300"
alt="Luxury Item 3">
<h3>BODY LOTIONS</h3>
</div>
<div class="luxItem">
<img src="https://bellavitaorganic.com/cdn/shop/files/p4.jpg?v=1691475245&width=300"
alt="Luxury Item 4">
<h3>BODY DEOS</h3>
</div>
<div class="luxItem">
<img src="https://bellavitaorganic.com/cdn/shop/files/Artboard_4_copy_05b3b2ed-5440-4463-b119-bedcd60ed5c1.jpg?v=1700227583&width=300"
alt="Luxury Item 5">
<h3>GIFT SETS</h3>
</div>
</div>
<div id="bella">
<div>
<img src="https://bellavitaorganic.com/cdn/shop/files/Luxe-Perfumes_1.jpg?v=1696580210&width=750">
</div>
<div>
<img
src="https://bellavitaorganic.com/cdn/shop/files/2_5_e74c0ae4-7b10-49bc-a280-4e9bdde7ce24.jpg?v=1696345483&width=400">
</div>
</div>
<h1>CRAZY DEALS</h1>
<div id="deals">
<div id="lux">
<div>
<img src="https://bellavitaorganic.com/cdn/shop/files/678-548.jpg?v=1697537263&width=500">
<h3>SELF LOVE KIT</h3>
</div>
<div>
<img
src="https://bellavitaorganic.com/cdn/shop/files/678-548_315e5e2b-4e68-4eca-8c10-db87beb787db.jpg?v=1700215543&width=500">
<h3>FRESH ALL DAY COMBO</h3>
</div>
<div>
<img src="https://bellavitaorganic.com/cdn/shop/files/678-548_1.jpg?v=1701774461&width=500">
<h3>BADE MIYA CHHOTE MIYA</h3>
</div>
</div>
<div id="videoSection">
<video src="https://cdn.shopify.com/videos/c/o/v/478dfd30e1114a6a9fe7a4c4d1b1ffa4.mp4" loop="" muted=""
playsinline="" autoplay=""></video>
<div id="videoText">
<h1>DISCOVER THE ART OF PERFUMERY</h1>
<h2>Our formulations have proven efficacy, contain certified ingredients only and are 100% cruelty
free</h2>
<button id="videoButton">FRAGRANCES</button>
</div>
</div>
</div>
<!-- <a id="checkoutLink" href="#">Go to Checkout</a> -->
<!-- <div id="checkoutModal" style="display: none;">
<div id="checkoutForm">
<h2>Checkout</h2>
<label for="firstName">First Name:</label>
<input type="text" id="firstName" required>
<label for="lastName">Last Name:</label>
<input type="text" id="lastName" required>
<label for="email">Email:</label>
<input type="email" id="email" required>
<label for="address">Address:</label>
<input type="text" id="address" required>
<button onclick="submitOrder()">Submit Order</button>
</div> -->
</div>
<footer>
<div class="customer-footer">
<div class="cust1">
<p class="cust-first">BEST SELLER</p>
<p class="cust-Second">Ultimate Perfume Box</p>
<p class="cust-Second">Perfume Gift Set For Men</p>
<p class="cust-Second">Perfume Gift Set For</p>
<p class="cust-Second">Women</p>
<p class="cust-Second">Under Eye Cream for</p>
<p class="cust-Second">Dark Circles</p>
<p class="cust-Second">Perfume For Men</p>
<!-- <p class="cust-Second">Perfume For Women</p>
<p class="cust-Second">Unisex Perfume</p> -->
</div>
<div class="cust1">
<p class="cust-first">INFORMATION</p>
<p class="cust-Second">Blogs</p>
<p class="cust-Second">Newsroom</p>
<p class="cust-Second">Terms & Conditions</p>
<p class="cust-Second">Privacy Policy</p>
<p class="cust-Second">Refund and Return</p>
<p class="cust-Second">Shipping Policy</p>
<p class="cust-Second">Bulk Order - GST Invoice</p>
</div>
<div class="cust1">
<p class="cust-first">SUPPORT</p>
<p class="cust-Second">About Us</p>
<p class="cust-Second">Contact Us</p>
<p class="cust-Second">Order Tracking</p>
<p class="cust-Second">All Products</p>
<p class="cust-Second">FAQ</p>
<p class="cust-Second">Sitemap</p>
</div>
<div class="cust1">
<p class="cust-first">Exclusive</p>
<p class="cust-Second"><input type="email" placeholder="Enter Email"></p>
<p class="cust-Second">Sign up here to get the latest news,</p>
<p class="cust-Second">Aupdates and special offers delivered to your inbox.</p>
<p class="cust-Second">shop@bellavitaorganic.com</p>
<p class="cust-Second">Timing: 10:00 AM to 7:00</p>
<p class="cust-Second">+91-9311732440</p>
</div>
</div>
</footer>
<footer>
<div class="end">
<h1>
<b style="color: white;">Code Written By #Team Quantum Nexus</b>
</h1>
</div>
</footer>
<script>
let loginBtn = document.querySelector("#login");
let isAuth = localStorage.getItem("isAuth") || "Not Authenticated"
if (isAuth !== "Authenticated") {
loginBtn.innerText = "Login";
} else {
loginBtn.innerText = "Logout";
loginBtn.addEventListener("click", function () {
localStorage.setItem("isAuth", "Not Authenticated");
window.location.reload();
})
}
let viewAllBtn = document.querySelector("#viewAllBtn");
viewAllBtn.addEventListener("click",function(){
window.location.href = "./bestSellers.html";
})
const cart = [];
function addToCart(productName) {
cart.push({ product: productName });
alert('Item added to cart!');
// addToCart(el);
}
// function openCheckoutModal() {
// document.getElementById('checkoutModal').style.display = 'block';
// }
// function closeCheckoutModal() {
// document.getElementById('checkoutModal').style.display = 'none';
// }
// function submitOrder() {
// alert('Order submitted successfully!');
// closeCheckoutModal();
// }
// document.getElementById('checkoutLink').addEventListener('click', openCheckoutModal);
// const addToCartButtons = document.querySelectorAll('.add-to-cart');
// addToCartButtons.forEach(button => {
// button.addEventListener('click', () => {
// const productName = button.parentNode.querySelector('h3').innerText;
// addToCart(productName);
// });
// });
// function addToCart(el) {
// // console.log(el);
// let cartArr = JSON.parse(localStorage.getItem("cartItems")) || [];
// cartArr.push(el);
// localStorage.setItem("cartItems", JSON.stringify(cartArr));
// }
</script>
</body>
</html>
<script src="./navbar.js"></script>