-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
337 lines (317 loc) · 16.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>eBay</title>
<link rel="stylesheet" href="style.css">
<style>
body {
header {
display: flex;
align-items: center;
}
#shop-by-category {
margin-left: 10px;
padding: 5px 10px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: #5659e0;
color: white;
}
#shop-by-category:hover {
background-color: #2E865F;
}
header {
background: #f7f4f6;
color: white;
padding: 10px 20px;
text-align: left;
display: flex;
align-items: center;
}
.logo {
width: 30px;
height: 30px;
}
#search-bar {
width: 1000px;
height: 30px;
padding: 10px;
margin: 0 10px;
border: none;
border-radius: 5px;
}
#search-btn {
background-color: #5659e0;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
#search-btn:hover {
background-color: #2E865F;
}
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: #f4f4f4;
}
header {
background: #e7b2da;
color: white;
padding: 10px 20px;
text-align: left;
}
.container {
max-width: 1200px;
margin: 20px auto;
padding: 10px;
}
.category {
margin-bottom: 20px;
padding: 10px;
background: white;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.category-title {
font-size: 24px;
margin-bottom: 10px;
}
.item {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
background: #e2e2e2;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.image-container {
position: relative;
width: 100%;
height: 200px; /* Set the height of the image container */
overflow: hidden;
border-radius: 5px 5px 0 0;
}
.item-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 5px 5px 0 0;
}
.items {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.item {
flex: 1 0 18%; /* Adjusts to 5 items per row */
margin: 10px;
background: #e2e2e2;
border-radius: 5px;
padding: 10px;
text-align: center;
}
.item img {
max-width: 100%;
height: auto;
border-radius: 5px;
}
.item-name {
font-size: 18px;
margin: 5px 0;
}
.item-price {
font-size: 16px;
color: #333;
}
@media (max-width: 768px) {
.item {
flex: 1 0 45%; /* Adjusts to 2 items per row */
}
}
@media (max-width: 480px) {
.item {
flex: 1 0 100%; /* Adjusts to 1 item per row */
}
}
</style>
</head>
<body>
<header>
<header>
<h1>
<img class="logo" src="logo1.jpg" alt="logo" width="30" height="30">
<button id="shop-by-category">Shop by Category</button>
</h1>
<input type="search" id="search-bar" placeholder="Search...">
<button id="search-btn">Search</button>
</header>
</header>
<div>
<div class="container">
<div class="category">
<div class="category-title">Electronics</div>
<div class="item">
<div class="image-container">
<img class="item-image" src="image1.jpeg" alt="Item 1">
</div>
</div>
<div class="category">
<div class="category-title">Clothing</div>
<div class="items">
<div class="item"><img src="image.jpeg" alt="Item 1"><div class="item-name">T-Shirt</div><div class="item-price">$19.99</div></div>
<div class="item"><img src="image1.jpeg" alt="Item 2"><div class="item-name">Jeans</div><div class="item-price">$39.99</div></div>
<div class="item"><img src="image2.jpeg" alt="Item 3"><div class="item-name">Jacket</div><div class="item-price">$59.99</div></div>
<div class="item"><img src="image3.jpeg" alt="Item 4"><div class="item-name">Dress</div><div class="item-price">$49.99</div></div>
<div class="item"><img src="image4.jpeg" alt="Item 5"><div class="item-name">Shoes</div><div class="item-price">$79.99</div></div>
<div class="item"><img src="image5.jpeg" alt="Item 6"><div class="item-name">Hat</div><div class="item-price">$14.99</div></div>
<div class="item"><img src="image6.jpeg" alt="Item 7"><div class="item-name">Socks</div><div class="item-price">$5.99</div></div>
<div class="item"><img src="image1.jpeg" alt="Item 8"><div class="item-name">Belt</div><div class="item-price">$19.99</div></div>
<div class="item"><img src="image2.jpeg" alt="Item 9"><div class="item-name">Scarf</div><div class="item-price">$12.99</div></div>
<div class="item"><img src="image3.jpeg" alt="Item 10"><div class="item-name">Gloves</div><div class="item-price">$9.99</div></div>
</div>
</div>
<div class="category">
<div class="category-title">Home & Kitchen</div>
<div class="items">
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 1"><div class="item-name">Blender</div><div class="item-price">$49.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 2"><div class="item-name">Microwave</div><div class="item-price">$99.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 3"><div class="item-name">Coffee Maker</div><div class="item-price">$39.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 4"><div class="item-name">Toaster</div><div class="item-price">$29.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 5"><div class="item-name">Cookware Set</div><div class="item-price">$89.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 6"><div class="item-name">Dishwasher</div><div class="item-price">$499.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 7"><div class="item-name">Refrigerator</div><div class="item-price">$799.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 8"><div class="item-name">Mixer</div><div class="item-price">$59.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 9"><div class="item-name">Cutlery Set</div><div class="item-price">$24.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 10"><div class="item-name">Food Processor</div><div class="item-price">$129.99</div></div>
</div>
</div>
<div class="category">
<div class="category-title">Books</div>
<div class="items">
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 1"><div class="item-name">Fiction Book</div><div class="item-price">$15.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 2"><div class="item-name">Non-Fiction Book</div><div class="item-price">$18.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 3"><div class="item-name">Science Book</div><div class="item-price">$20.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 4"><div class="item-name">History Book</div><div class="item-price">$22.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 5"><div class="item-name">Mystery Book</div><div class="item-price">$15.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 6"><div class="item-name">Biography</div><div class="item-price">$16.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 7"><div class="item-name">Cookbook</div><div class="item-price">$25.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 8"><div class="item-name">Fantasy Book</div><div class="item-price">$19.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 9"><div class="item-name">Children's Book</div><div class="item-price">$12.99</div></div>
<div class="item"><img src="https://via.placeholder.com/150" alt="Item 10"><div class="item-name">Graphic Novel</div><div class="item-price">$14.99</div></div>
</div>
</div>
<div class="category">
<div class="category-title">Beauty Products</div>
<div class="items">
<div class="item"><img src="s-l300.webp" alt="Item 1"><div class="item-name">Moisturizer</div><div class="item-price">$29.99</div></div>
<div class="item"><img src="s-l500 (1).webp" alt="Item 2"><div class="item-name">Sunscreen</div><div class="item-price">$19.99</div></div>
<div class="item"><img src="s-l500 (2).webp" alt="Item 3"><div class="item-name">Lipstick</div><div class="item-price">$15.99</div></div>
<div class="item"><img src="s-l500 (3).webp" alt="Item 4"><div class="item-name">Foundation</div><div class="item-price">$24.99</div></div>
<div class="item"><img src="s-l500 (1).webp" alt="Item 5"><div class="item-name">Eyeliner</div><div class="item-price">$12.99</div></div>
<div class="item"><img src="s-l300.webp" alt="Item 6"><div class="item-name">Perfume</div><div class="item-price">$49.99</div></div>
<div class="item"><img src="s-l500 (3).webp" alt="Item 7"><div class="item-name">Face Mask</div><div class="item-price">$9.99</div></div>
<div class="item"><img src="s-l500 (2).webp" alt="Item 8"><div class="item-name">Hair Dryer</div><div class="item-price">$39.99</div></div>
<div class="item"><img src="s-l500 (1).webp" alt="Item 9"><div class="item-name">Shampoo</div><div class="item-price">$14.99</div></div>
<div class="item"><img src="s-l300.webp" alt="Item 10"><div class="item-name">Conditioner</div><div class="item-price">$14.99</div></div>
</div>
</div>
<div class="category">
<div class="category-title">Sports Equipment</div>
<div class="items">
<div class="item"><img src="shoe1.jpeg" alt="Item 1"><div class="item-name">Tennis Racket</div><div class="item-price">$79.99</div></div>
<div class="item"><img src="shoe3.jpeg" alt="Item 2"><div class="item-name">Soccer Ball</div><div class="item-price">$29.99</div></div>
<div class="item"><img src="shoe4.jpeg" alt="Item 3"><div class="item-name">Basketball</div><div class="item-price">$29.99</div></div>
<div class="item"><img src="s-l960.webp" alt="Item 4"><div class="item-name">Baseball Glove</div><div class="item-price">$39.99</div></div>
<div class="item"><img src="shoe1.jpeg" alt="Item 5"><div class="item-name">Yoga Mat</div><div class="item-price">$19.99</div></div>
<div class="item"><img src="shoe3.jpeg" alt="Item 6"><div class="item-name">Dumbbells</div><div class="item-price">$49.99</div></div>
<div class="item"><img src="shoe4.jpeg" alt="Item 7"><div class="item-name">Bicycle</div><div class="item-price">$299.99</div></div>
<div class="item"><img src="s-l960.webp" alt="Item 8"><div class="item-name">Treadmill</div><div class="item-price">$499.99</div></div>
<div class="item"><img src="shoe4.jpeg" alt="Item 9"><div class="item-name">Swimming Goggles</div><div class="item-price">$14.99</div></div>
<div class="item"><img src="shoe3.jpeg" alt="Item 10"><div class="item-name">Skateboard</div><div class="item-price">$69.99</div></div>
</div>
</div>
<div class="container">
<div class="category">
<div class="category-title">Electronics</div>
<div class="item">
<div class="image-container">
<img class="item-image" src="image2.jpeg" alt="Item 1">
</div>
</div>
<!-- Footer Section -->
<footer>
<!-- Footer Buttons -->
<div class="footer-buttons">
<button>Terms of Use</button>
<button>Privacy Policy</button>
<button>Help & Contact</button>
</div>
<!-- Detailed Footer Buttons -->
<div class="footer-buttons-detailed">
<table>
<tr>
<td><a href="#" style="text-decoration: none; color: #000;">Buy</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Registration</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Bidding & buying help</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Stores</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">eBay for Charity</a></td>
</tr>
<tr>
<td><a href="#" style="text-decoration: none; color: #000;">Charity Shop</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Seasonal Sales and events</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">eBay Gift Cards</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Sell</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Start selling</a></td>
</tr>
<tr>
<td><a href="#" style="text-decoration: none; color: #000;">How to sell</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Business sellers</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Affiliates</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Tools & apps</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Developers</a></td>
</tr>
<tr>
<td><a href="#" style="text-decoration: none; color: #000;">Security center</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Site map</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">eBay companies</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">TCGplayer</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Stay connected</a></td>
</tr>
<tr>
<td><a href="#" style="text-decoration: none; color: #000;">Facebook</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Twitter</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">About eBay</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Company info</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">News</a></td>
</tr>
</table>
<tr>
<td><a href="#" style="text-decoration: none; color: #000;">Deferred Prosecution Agreement with District of Massachusetts</a></td>
<td><a href="#" style="text-decoration: none; color: #000;">Investors</a></td>
</tr>
</div>
<!-- Social Media Links -->
<div class="social-media">
<a href="#" target="_blank"><img src="facebook.png" alt="Facebook"></a>
<a href="#" target="_blank"><img src="twitter.png" alt="Twitter"></a>
<a href="#" target="_blank"><img src="instagram.png" alt="Instagram"></a>
</div>
<!-- Copyright Information -->
<div class="copyright">
<p>© 2023 eBay Inc. All Rights Reserved.</p>
</div>
<!-- Back to Top Link -->
<div class="back-to-top">
<a href="#top">Back to Top</a>
</div>
</footer>