-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduct.html
More file actions
118 lines (112 loc) · 4.01 KB
/
Copy pathproduct.html
File metadata and controls
118 lines (112 loc) · 4.01 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Product Page</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100">
<div
id="product-details"
class="max-w-5xl mx-auto bg-white shadow-lg rounded-lg p-4 mt-6"
>
<!-- Product Section -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<!-- Image Section -->
<div>
<img
id="product-image"
src="main-product.jpg"
alt="Product"
class="w-full rounded-lg"
/>
</div>
<!-- Details Section -->
<div>
<h1 id="product-name" class="text-2xl font-bold"></h1>
<h1 id="product-type" class="text-2xl font-bold">hi</h1>
<p class="text-green-600 font-bold text-lg mt-2">Special Price</p>
<p class="text-2xl font-bold text-gray-800">
<span class="line-through text-gray-500 text-lg">₹1,999</span>
<span class="text-green-600 text-sm font-bold">88% off</span>
</p>
<p class="text-yellow-500 text-sm mt-1">
4.1 ★ | 113,819 ratings & 8,576 reviews
</p>
<!-- Size Options -->
<div class="mt-4">
<h2 class="text-lg font-semibold">Size</h2>
<div class="flex space-x-4 mt-2">
<button class="px-4 py-2 border rounded-lg hover:bg-gray-100">
S
</button>
<button class="px-4 py-2 border rounded-lg hover:bg-gray-100">
M
</button>
<button class="px-4 py-2 border rounded-lg hover:bg-gray-100">
L
</button>
<button class="px-4 py-2 border rounded-lg hover:bg-gray-100">
XL
</button>
<button class="px-4 py-2 border rounded-lg hover:bg-gray-100">
XXL
</button>
</div>
</div>
<!-- Offers -->
<div class="mt-4">
<h2 class="text-lg font-semibold">Available Offers</h2>
<ul class="list-disc ml-6 text-sm mt-2">
<li>
Bank Offer 5% Unlimited Cashback on Flipkart Axis Bank Credit
Card
</li>
<li>Combo Offer: Buy 2 or more items save ₹30</li>
<li>Special Price: Get at flat ₹229</li>
</ul>
</div>
<!-- Action Buttons -->
<div class="mt-4 flex space-x-4">
<button
class="bg-orange-500 text-white px-6 py-2 rounded-lg font-semibold hover:bg-orange-600"
>
Add to Cart
</button>
<button
class="bg-red-500 text-white px-6 py-2 rounded-lg font-semibold hover:bg-red-600"
>
Buy Now
</button>
</div>
<!-- Delivery Checker -->
<div class="mt-4">
<h2 class="text-lg font-semibold">Delivery</h2>
<div class="flex items-center space-x-2 mt-2">
<input
type="text"
placeholder="Enter delivery pincode"
class="border px-4 py-2 rounded-lg w-40"
/>
<button
class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600"
>
Check
</button>
</div>
<p class="text-sm text-gray-500 mt-2">
Delivery by 28 Jan, Tuesday | Free
</p>
</div>
<!-- Seller Info -->
<div class="mt-4">
<h2 class="text-lg font-semibold">Seller</h2>
<p class="text-sm">TRIPR | 3.3 ★</p>
</div>
</div>
</div>
</div>
<script src="product-details.js"></script>
</body>
</html>