-
Notifications
You must be signed in to change notification settings - Fork 3
/
homepage.html
303 lines (267 loc) · 12.5 KB
/
homepage.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bachat a Bit</title>
<link rel="stylesheet" href="style1.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>
<style>
.navbar{
display: flex;
align-items: center;
padding: 20px;
}
nav{
flex: 1;
text-align: center;
background: radial-gradient(#ff7575, #ed5151);
padding: 10px 10px;
border-radius: 40px;
box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}
nav ul{
display: inline-block;
list-style-type: none;
}
nav ul li{
display: inline-block;
margin-right: 30px;
margin-left: 30px;
}
nav ul li a{
text-decoration: none;
font-weight: 400;
color: white;
transition: all 0.5s ease-in-out;
}
nav ul li a:hover{
text-shadow: 0 0 10px rgb(218, 218, 218), 0 0 20px rgb(231, 231, 231);
transform: scale(1.2);
}
</style>
<body>
<!--Header-->
<div class="header">
<div class="container">
<div class="navbar">
<nav>
<ul>
<li><a href="">Home</a></li>
<li><a href="cart.html">Shop</a></li>
<li><a href="">About</a></li>
<li><a href="">Contact</li>
<li><a href="">Login</a></li>
</ul>
</nav>
</div>
<div class="row">
<div class="A">
<h1> Bachat-a-Bit!</h1>
<p>Find cheap & affordable deals <br> with your smart choice of savings! </p>
<a href="cart.html" class="button">Shop Now <i class="fas fa-chevron-right"></i></a>
</div>
<div class="A">
<img src="images/A.gif" alt="">
</div>
</div>
</div>
</div>
<!-- Categories -->
<div class="c">
<h2> Categories </h2>
<div class="categories">
<div class="row">
<div class="category">
<img src="images/category1.jpg" alt="">
<div class="label">Fashion deals</div>
</div>
<div class="category">
<img src="images/category2.jpg" alt="">
<div class="label">Gadgets Upto 30% Off</div>
</div>
<div class="category">
<img src="images/category3.jpg" alt="">
<div class="label">Accessories</div>
</div>
</div>
</div>
</div>
<!-- Featured Products -->
<div class="d">
<h2> Featured Products </h2>
<div class="slider-container">
<div class="slider">
<div class="product">
<a href="https://www.amazon.in/dp/B0CKYY5VPZ/ref=sbl_dpx_in-pc-accessories-keyboard-and-mouse-sets_B0CKYXGFZN_0?th=1" target="_blank">
<img src="https://m.media-amazon.com/images/I/61QNaY7PMpL._SX679_.jpg" alt="Zebronics Wireless Keyboard Set">
</a>
<h3>Wireless Keyboard Set</h3>
<p>Black+Brown, Retro Style Keys</p>
<p>₹1799</p>
</div>
<div class="product">
<a href="https://www.flipkart.com/pdkfashions-full-sleeve-solid-men-sweatshirt/p/itm86d30bb56b625?pid=SWSGRG5YPZWKVV8F&lid=LSTSWSGRG5YPZWKVV8FJWFHR9&marketplace=FLIPKART&cmpid=content_sweatshirt_19580450293_x_8965229628_gmc_pla&tgi=sem,1,G,11214002,x,,,,,,,c,,,,,,,&gad_source=4&gclid=CjwKCAjwxLKxBhA7EiwAXO0R0HyGzHoRm-TTIZS3paAoPvztHSvLAdgkUd9X3WR1aryfEFCj9nNngRoCPYEQAvD_BwE" target="_blank">
<img src="https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcQmoIzMWXjAd2hNQRR46zj5HfQNz2x4EZducs4yXZ67l6rjYvayslD3ExZKdXjsaRGXsNE11RHw2Yd0GUrfcyIHEr8Auz-fDFLyM3gdzK6j&usqp=CAE" alt="PDKfashion Men's Sweatshirt">
</a>
<h3>Men's Sweatshirt</h3>
<p>Full Sleeve Solid Hooded Sweatshirt</p>
<p>₹499</p>
</div>
<div class="product">
<a href="https://www.flipkart.com/motorola-tab-g70-lte-4-gb-ram-64-rom-11-inch-wi-fi-4g-tablet-modernist-teal/p/itm248fc0bdcc695?pid=TABG9NNXJHBGU6WJ&lid=LSTTABG9NNXJHBGU6WJSBHJJW&marketplace=FLIPKART&cmpid=content_tablet_8965229628_gmc" target="_blank">
<img src="https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcRhFgjds3EfI8RUBA0O1KTlPq4EU0LHamedvfdS8AVS0zqnAGgooIeBDDE_ISNWADmFlCerfyctbupONAEGIvQsCLBQUAtW7pLqyMEgCOk&usqp=CAE" alt="Motorola g70 Tablet">
</a>
<h3>Motorola g70 Tablet</h3>
<p>4GB RAM, 64GB ROM, 11 inch</p>
<p>₹17890</p>
</div>
<div class="product">
<a href="https://www.flipkart.com/bucadia-girls-lace-sneakers/p/itmc605b855d42c6?pid=KSSGBAWUWSXFZMWC&lid=LSTKSSGBAWUWSXFZMWCM5WWED&marketplace=FLIPKART&cmpid=content_kids-shoe_21057038566_x_8965229628_gmc_pla&tgi=sem,1,G,11214002,x,,,,,,,c,,,,,,,&gad_source=1&gclid=CjwKCAjwxLKxBhA7EiwAXO0R0BAxaRfAWaH3GLqfEB4PZDDerFDTx6ahps9pGabtpiMfcaSbnkwMYxoCdAQQAvD_BwE" target="_blank">
<img src="https://rukminim2.flixcart.com/image/850/1000/xif0q/shoe/u/g/w/-original-imagq9jyhbhcdt4h.jpeg?q=90&crop=false" alt="CAMPUS LIFT Running Shoes for Men">
</a>
<h3>Running Shoes for Men</h3>
<p>Running Shoes for Men</p>
<p>₹1139</p>
</div>
<div class="product">
<a href="https://www.flipkart.com/samsung-galaxy-m14-5g-berry-blue-128-gb/p/itm39c20bb68ff35?pid=MOBGRUFMNGFUK2AF&lid=LSTMOBGRUFMNGFUK2AFJLCUQ0&marketplace=FLIPKART&store=tyy%2F4io&srno=b_2_32&otracker=browse&fm=organic&iid=4343042f-50f3-477a-9408-9ef0c67525e4.MOBGRUFMNGFUK2AF.SEARCH&ppt=None&ppn=None&ssid=zsh2lagpxs0000001714546681840" target="_blank">
<img src="https://rukminim2.flixcart.com/image/312/312/xif0q/mobile/x/x/n/galaxy-m14-5g-sm-m146b-samsung-original-imagzwssnfnzkpex.jpeg?q=70" alt="Samsung Galaxy M14 5G">
</a>
<h3>Samsung Galaxy M14 5G</h3>
<p>Berry Blue, Mobile/Phone, 128Gb</p>
<p>₹12200</p>
</div>
<div class="product">
<a href="https://www.amazon.in/JD-FRESH-Pcs-Organiser-Organizer/dp/B0CQD2HB43/ref=sr_1_4_sspa?crid=3M4CC8F49RZ7S&dib=eyJ2IjoiMSJ9.GHOVyyiE-Yzz9MnlJw8Hm55V6kIWxNrB9D7PxD10-XztVrNlcswr1_uzrWaLF66op_Chqjigoemymt6silqWrZaNg0UpjXtSnU9Vr9CyrHLwcUAdQksgyg27nYjrgkGv8NxQp4Qp9xGYXFtBjEI4p4eauQWsoAO_83yIKojUTf-tmNTpsYsq5eeTAcGcKEp2_gNU-EL1QclYwtXLkNn6N2JZJ8V5rnDUyPJDWkbo1J2DJqUTmxFI-nNVnMweBOZIlvOQ3ZbBCtDN1HBRB9aNz0wZHBUgjLlJTFdhxl775dc.cJ3k0buDkT6RgZtIRzT91_Z7E_yuJZXNu0zwpp7Eku0&dib_tag=se&keywords=multi%2Bcompartment%2Bfor%2Bcupboard&qid=1714546685&sprefix=multi%2Bcompartment%2Bfor%2Bcu%2Caps%2C619&sr=8-4-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&th=1"
target="_blank">
<img src="https://m.media-amazon.com/images/I/61DpdXrEWcL._SX679_.jpg" alt="Clothes Organizer For Wardrobe">
</a>
<h3>Clothes Organizer</h3>
<p>Cupboard Clothe Organizer</p>
<p>₹999</p>
</div>
<div class="product">
<a href="https://www.myntra.com/tops/rare/rare-navy-blue-printed-cinched-waist-top/13507500/buy"
target="_blank">
<img src="https://assets.myntassets.com/dpr_1.5,q_60,w_400,c_limit,fl_progressive/assets/images/productimage/2021/1/22/fa7a9c54-c46d-4067-9d4f-98b51956d5101611294519613-1.jpg"
alt="RARE - Blue Waist Top">
</a>
<h3>RARE - Blue Waist Top</h3>
<p>Square Neck, Button Closure</p>
<p>₹539</p>
</div>
<div class="product">
<a href="https://www.myntra.com/trousers/kotty/kotty-women-black-relaxed-straight-fit-high-rise-easy-wash-trousers/19460432/buy?utm_source=dms_google&utm_medium=pmax_cpc&utm_campaign=dms_google_pmax_cpc_Myntra_SOK_KPI_Traffic_New&keyword=&matchtype=&target=&placement=&gad_source=1&gclid=CjwKCAjwxLKxBhA7EiwAXO0R0K1-TyiIori9d8-SQ9YX6H3ojQHLfLoEn66I0rla_4ysXmshlptQORoCcaUQAvD_BwE"
target="_blank">
<img src="https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcSyXoG91nHAgICWgbN8cv8bwRUmaAUCaEZtCvImsD1M9fAVO8Z8t60br2INrSJ-WQpaghJPKgXi5f34vUnMYO6btIyF2t9GebTqdU_gfmdXTuNLhdw0-wavtQ&usqp=CAc"
alt="Kotty Trousers Women Black">
</a>
<h3>Kotty Women Trousers </h3>
<p>Relaxed Straight Fit</p>
<p>₹1139</p>
</div>
</div>
<button class="btn prev-btn"><</button>
<button class="btn next-btn">></button>
</div>
</div>
<!-- Brands -->
<div class="brands">
<div class="brand-container">
<h3> Get Deals From </h3>
<div class="row">
<div class="brand">
<img src="images/myntra.png" alt="">
</div>
<div class="brand">
<img src="images/amazon.png" alt="">
</div>
<div class="brand">
<img src="images/flipkart.png" alt="">
</div>
<div class="brand">
<img src="images/reliance.png" alt="">
</div>
</div>
</div>
</div>
<!-------- Footer -------->
<footer class="footer">
<div class="footer-container">
<div class="footer-col">
<h3>Download Our App</h3>
<p><i class="fab fa-google-play"></i> BachataBit</p>
</div>
<div class="footer-col">
<h3>About</h3>
<p>Browse products from <br> various sites and <br> find the apt one for you <br> Visit again :)</p>
</div>
<div class="footer-col">
<h3>Useful Links</h3>
<ul>
<li><a href="#">Coupons</a></li>
<li><a href="#">Blogs</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Rate us</a></li>
</ul>
</div>
<div class="footer-col">
<h3>Social Links</h3>
<div class="social-icons">
<a href="#"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="https://github.com/anagha-chaudhari"><i class="fab fa-github"></i></a>
<a href="https://linkedin.com/in/anagha-chaudhari"><i class="fab fa-linkedin"></i></a>
</div>
</div>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function() {
const slider = document.querySelector('.slider');
const prevBtn = document.querySelector('.prev-btn');
const nextBtn = document.querySelector('.next-btn');
const products = document.querySelectorAll('.product');
let currentIndex = 0;
const slideWidth = products[0].clientWidth + 20;
const intervalTime = 2000;
let slideInterval;
function startSlide() {
slideInterval = setInterval(() => {
if (currentIndex < products.length - 3) {
currentIndex++;
slider.style.transform = `translateX(-${slideWidth * currentIndex}px)`;
} else {
currentIndex = 0;
slider.style.transform = `translateX(0)`;
}
}, intervalTime);
}
nextBtn.addEventListener('click', function() {
if (currentIndex < products.length - 3) {
currentIndex++;
slider.style.transform = `translateX(-${slideWidth * currentIndex}px)`;
}
});
prevBtn.addEventListener('click', function() {
if (currentIndex > 0) {
currentIndex--;
slider.style.transform = `translateX(-${slideWidth * currentIndex}px)`;
}
});
startSlide();
// stop sliding on hover
slider.addEventListener('mouseenter', function() {
clearInterval(slideInterval);
});
slider.addEventListener('mouseleave', function() {
startSlide();
});
});
</script>
<script src="cart.js"></script>
</body>
</html>