-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
417 lines (399 loc) · 15.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TechMart</title>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<style>
body {
font-family: "Inter", sans-serif;
}
</style>
<link rel="stylesheet" href="dist/output.css" />
</head>
<body class="bg-white">
<!-- Header -->
<header class="sticky top-0 z-50 bg-white border-b">
<div class="container mx-auto px-4">
<!-- Top Header -->
<div class="flex items-center justify-between h-16">
<a href="#" class="flex items-center gap-2">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"
/>
</svg>
<span class="font-bold text-xl">TechMart</span>
</a>
<div class="flex-1 max-w-xl mx-auto px-4">
<div class="relative">
<input
type="search"
placeholder="Search for products..."
class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-200 focus:outline-none focus:border-blue-500"
/>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5 absolute left-3 top-2.5 text-gray-400"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
/>
</svg>
</div>
</div>
<div class="flex items-center gap-4">
<button class="relative">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"
/>
</svg>
<span
class="absolute -top-1 -right-1 bg-red-500 text-white text-xs w-5 h-5 flex items-center justify-center rounded-full"
>2</span
>
</button>
<button class="relative">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"
/>
</svg>
<span
class="absolute -top-1 -right-1 bg-red-500 text-white text-xs w-5 h-5 flex items-center justify-center rounded-full"
>3</span
>
</button>
<button>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"
/>
</svg>
</button>
</div>
</div>
<!-- Navigation -->
<nav class="flex space-x-8 py-3">
<a href="#" class="text-sm hover:text-blue-600"
>Laptops & Computers</a
>
<a href="#" class="text-sm hover:text-blue-600">Phones & Tablets</a>
<a href="#" class="text-sm hover:text-blue-600">Accessories</a>
</nav>
</div>
</header>
<main class="container mx-auto px-4 py-8">
<!-- Hero Banner -->
<div class="bg-[#1a1f2c] rounded-xl text-white mb-12">
<div class="px-8 py-12">
<h1 class="text-4xl font-bold mb-4">Black Friday Sale</h1>
<p class="mb-6 text-gray-300">
Get up to 70% off on the latest electronics. Limited time offer!
</p>
<button
class="bg-white text-[#1a1f2c] px-6 py-2 rounded-lg hover:bg-gray-100 font-medium"
>
Shop Now
</button>
</div>
</div>
<div class="flex flex-col lg:flex-row gap-8">
<!-- Filters Sidebar -->
<div class="w-full lg:w-64 lg:shrink-0 order-2 lg:order-1">
<div class="space-y-6">
<h2 class="font-semibold text-lg">Filters</h2>
<!-- Delivery Day -->
<div>
<h3 class="font-medium mb-3">Delivery Day</h3>
<div class="space-y-2">
<label class="flex items-center gap-2">
<input type="checkbox" class="rounded border-gray-300" />
<span class="text-sm">Get it Today</span>
</label>
<label class="flex items-center gap-2">
<input type="checkbox" class="rounded border-gray-300" />
<span class="text-sm">Get it by Tomorrow</span>
</label>
<label class="flex items-center gap-2">
<input type="checkbox" class="rounded border-gray-300" />
<span class="text-sm">Get it in 2 Days</span>
</label>
</div>
</div>
<!-- Price Range -->
<div>
<h3 class="font-medium mb-3">Price</h3>
<div class="space-y-4">
<div class="flex items-center gap-2">
<input
type="number"
value="39"
class="w-20 px-2 py-1 border rounded"
/>
<span>-</span>
<input
type="number"
value="439800"
class="w-20 px-2 py-1 border rounded"
/>
</div>
<input type="range" class="w-full" />
</div>
</div>
<!-- Other filter sections... -->
</div>
</div>
<!-- Product Grid -->
<div class="flex-1 order-1 lg:order-2">
<!-- Flash Deals -->
<section class="mb-12">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold">Flash Deals</h2>
<a href="#" class="text-sm text-gray-600 hover:text-blue-600"
>View All</a
>
</div>
<div
class="grid grid-cols-2 xs:grid-cols-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4"
>
<!-- Product cards will be inserted here by JavaScript -->
</div>
</section>
<!-- New Arrivals -->
<section>
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold">New Arrivals</h2>
<a href="#" class="text-sm text-gray-600 hover:text-blue-600"
>View All</a
>
</div>
<div
class="grid grid-cols-2 xs:grid-cols-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4"
>
<!-- Product cards will be inserted here by JavaScript -->
</div>
</section>
</div>
</div>
<!-- Featured Categories -->
<section class="mt-16">
<h2 class="text-2xl font-bold mb-8">Featured Categories</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Category 1: Laptops -->
<a
href="#"
class="block relative rounded-lg overflow-hidden bg-gray-200 aspect-[2/1]"
>
<img
src="https://images.unsplash.com/photo-1517336714731-489689fd1ca8?auto=format&fit=crop&w=800&q=80"
alt="Laptops"
class="w-full h-full object-cover"
/>
<div
class="absolute inset-0 bg-black/50 p-6 flex flex-col justify-end"
>
<h3 class="text-xl font-bold text-white">Laptops</h3>
<p class="text-gray-200 text-sm mt-2">
Discover our range of laptops
</p>
</div>
</a>
<!-- Category 2: Smartphones -->
<a
href="#"
class="block relative rounded-lg overflow-hidden bg-gray-200 aspect-[2/1]"
>
<img
src="https://images.unsplash.com/photo-1601784551446-20c9e07cdbdb?auto=format&fit=crop&w=800&q=80"
alt="Smartphones"
class="w-full h-full object-cover"
/>
<div
class="absolute inset-0 bg-black/50 p-6 flex flex-col justify-end"
>
<h3 class="text-xl font-bold text-white">Smartphones</h3>
<p class="text-gray-200 text-sm mt-2">Latest mobile devices</p>
</div>
</a>
<!-- Category 3: Audio -->
<a
href="#"
class="block relative rounded-lg overflow-hidden bg-gray-200 aspect-[2/1]"
>
<img
src="https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=800&q=80"
alt="Audio"
class="w-full h-full object-cover"
/>
<div
class="absolute inset-0 bg-black/50 p-6 flex flex-col justify-end"
>
<h3 class="text-xl font-bold text-white">Audio</h3>
<p class="text-gray-200 text-sm mt-2">Premium sound equipment</p>
</div>
</a>
<!-- Category 4: Gaming -->
<a
href="#"
class="block relative rounded-lg overflow-hidden bg-gray-200 aspect-[2/1]"
>
<img
src="https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=800&q=80"
alt="Gaming"
class="w-full h-full object-cover"
/>
<div
class="absolute inset-0 bg-black/50 p-6 flex flex-col justify-end"
>
<h3 class="text-xl font-bold text-white">Gaming</h3>
<p class="text-gray-200 text-sm mt-2">
Gaming consoles & accessories
</p>
</div>
</a>
<!-- Category 5: Wearables -->
<a
href="#"
class="block relative rounded-lg overflow-hidden bg-gray-200 aspect-[2/1]"
>
<img
src="https://images.unsplash.com/photo-1579586337278-3befd40fd17a?auto=format&fit=crop&w=800&q=80"
alt="Wearables"
class="w-full h-full object-cover"
/>
<div
class="absolute inset-0 bg-black/50 p-6 flex flex-col justify-end"
>
<h3 class="text-xl font-bold text-white">Wearables</h3>
<p class="text-gray-200 text-sm mt-2">
Smart watches & fitness trackers
</p>
</div>
</a>
<!-- Category 6: Accessories -->
<a
href="#"
class="block relative rounded-lg overflow-hidden bg-gray-200 aspect-[2/1]"
>
<img
src="https://images.unsplash.com/photo-1625723044792-44de16ccb4e9?auto=format&fit=crop&w=800&q=80"
alt="Accessories"
class="w-full h-full object-cover"
/>
<div
class="absolute inset-0 bg-black/50 p-6 flex flex-col justify-end"
>
<h3 class="text-xl font-bold text-white">Accessories</h3>
<p class="text-gray-200 text-sm mt-2">
Essential tech accessories
</p>
</div>
</a>
</div>
</section>
</main>
<footer class="bg-white border-t mt-24">
<div class="container mx-auto px-4 py-12">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<h3 class="font-semibold mb-4">About Us</h3>
<ul class="space-y-2 text-sm text-gray-600">
<li>
<a href="#" class="hover:text-gray-900">About TechMart</a>
</li>
<li><a href="#" class="hover:text-gray-900">Careers</a></li>
<li><a href="#" class="hover:text-gray-900">News & Blog</a></li>
</ul>
</div>
<div>
<h3 class="font-semibold mb-4">Support</h3>
<ul class="space-y-2 text-sm text-gray-600">
<li><a href="#" class="hover:text-gray-900">Help Center</a></li>
<li><a href="#" class="hover:text-gray-900">Contact Us</a></li>
<li><a href="#" class="hover:text-gray-900">Returns</a></li>
</ul>
</div>
<div>
<h3 class="font-semibold mb-4">Policy</h3>
<ul class="space-y-2 text-sm text-gray-600">
<li>
<a href="#" class="hover:text-gray-900">Privacy Policy</a>
</li>
<li>
<a href="#" class="hover:text-gray-900">Terms of Service</a>
</li>
<li><a href="#" class="hover:text-gray-900">Cookie Policy</a></li>
</ul>
</div>
</div>
<div
class="border-t mt-12 pt-8 flex flex-col md:flex-row justify-between items-center gap-4"
>
<p class="text-sm text-gray-600 text-center md:text-left">
© 2024 TechMart. All rights reserved.
</p>
<div class="flex gap-6">
<a href="#" class="text-sm text-gray-600 hover:text-gray-900"
>Terms</a
>
<a href="#" class="text-sm text-gray-600 hover:text-gray-900"
>Privacy</a
>
<a href="#" class="text-sm text-gray-600 hover:text-gray-900"
>Cookies</a
>
</div>
</div>
</div>
</footer>
</body>
<script src="src/logic.js"></script>
</html>