-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsingleProduct.html
232 lines (219 loc) · 8.87 KB
/
singleProduct.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>e-commerce website</title>
<!-- font-awesome cdn link -->
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" />
<!-- custom css file link -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<section id="header">
<a href="#"><img src="images/logo.png" class="logo" alt=""></a>
<div>
<ul id="navbar">
<li><a href="index.html">Home</a></li>
<li><a class="active" href="shop.html">Shop</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li id="lg-bag"><a href="cart.html"><i class="far fa-shopping-bag"></i></a></li>
<a href="#" id="close"><i class="far fa-times"></i></a>
</ul>
</div>
<div id="mobile">
<a href="cart.html"><i class="far fa-shopping-bag"></i></a>
<i id="bar" class="fas fa-outdent"></i>
</div>
</section>
<section id="productdetails" class="section-p1">
<div class="single-pro-image">
<img src="images/products/f1.jpg" width="100%" id="MainImg" alt="">
<div class="small-image-group">
<div class="small-img-col">
<img src="images/products/f1.jpg" width="100%" class="small-img" alt="">
</div>
<div class="small-img-col">
<img src="images/products/f2.jpg" width="100%" class="small-img" alt="">
</div>
<div class="small-img-col">
<img src="images/products/f3.jpg" width="100%" class="small-img" alt="">
</div>
<div class="small-img-col">
<img src="images/products/f4.jpg" width="100%" class="small-img" alt="">
</div>
</div>
</div>
<div class="single-pro-details">
<h6>Home / T-Shirt</h6>
<h4>Men's Fashion T Shirt</h4>
<h2>$139.00</h2>
<select>
<option>Select Size</option>
<option>XL</option>
<option>XXL</option>
<option>Small</option>
<option>Large</option>
</select>
<input type="number" value="1">
<button class="normal">Add to Cart</button>
<h4>Product Details</h4>
<span>The Gildan Ultra Cotton T-shirt is made from a substantial 6.0 oz. per sq. yd. fabric
constructed from 100% cotton, this classic fit preshrunk jersey knit provides unmatched comfort
with each wear. Featuring a taped neck and shoulder, and a seamless double-needle collar, and available in a range
of colors, it offers it all in the ultimate head-turning package.
</span>
</div>
</section>
<section id="product1" class="section-p1">
<h2>Featured Products</h2>
<p>Summer Collection New Modern Design</p>
<div class="pro-container">
<div class="pro">
<img src="images/products/n1.jpg" alt="">
<div class="des">
<span>adidas</span>
<h5>Cartoon Astronaut T-Shirts</h5>
<div class="star">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<h4>$78</h4>
</div>
<a href="#"><i class="fas fa-shopping-cart cart"></i></a>
</div>
<div class="pro">
<img src="images/products/n2.jpg" alt="">
<div class="des">
<span>adidas</span>
<h5>Cartoon Astronaut T-Shirts</h5>
<div class="star">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<h4>$78</h4>
</div>
<a href="#"><i class="fas fa-shopping-cart cart"></i></a>
</div>
<div class="pro">
<img src="images/products/n3.jpg" alt="">
<div class="des">
<span>adidas</span>
<h5>Cartoon Astronaut T-Shirts</h5>
<div class="star">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<h4>$78</h4>
</div>
<a href="#"><i class="fas fa-shopping-cart cart"></i></a>
</div>
<div class="pro">
<img src="images/products/n4.jpg" alt="">
<div class="des">
<span>adidas</span>
<h5>Cartoon Astronaut T-Shirts</h5>
<div class="star">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<h4>$78</h4>
</div>
<a href="#"><i class="fas fa-shopping-cart cart"></i></a>
</div>
</div>
</section>
<section id="newsletter" class="section-p1 section-m1">
<div class="newstext">
<h4>Sign Up For Newsletter</h4>
<p>Get E-mail updates about our latest shop and <span>special offers.</span></p>
</div>
<div class="form">
<input type="text" placeholder="Your email address">
<button class="normal">Sign Up</button>
</div>
</section>
<footer class="section-p1">
<div class="col">
<img class="logo" src="images/logo.png" alt="">
<h4>Contact</h4>
<p><strong>Address:</strong> Lahore, Pakistan - 54840</p>
<p><strong>Phone:</strong> +92-321-4655990</p>
<p><strong>Hours:</strong> 10:00 - 18:00, Mon - Sat</p>
<div class="follow">
<h4>Follow us</h4>
<div class="icon">
<i class="fab fa-facebook-f"></i>
<i class="fab fa-twitter"></i>
<i class="fab fa-instagram"></i>
<i class="fab fa-pinterest-p"></i>
<i class="fab fa-youtube"></i>
</div>
</div>
</div>
<div class="col">
<h4>About</h4>
<a href="#">About us</a>
<a href="#">Delivery Information</a>
<a href="#">Privacy Policy</a>
<a href="#">Terms & Conditions</a>
<a href="#">Contact Us</a>
</div>
<div class="col">
<h4>My Account</h4>
<a href="#">Sign In</a>
<a href="#">View Cart</a>
<a href="#">My Wishlist</a>
<a href="#">Track My Order</a>
<a href="#">Help</a>
</div>
<div class="col install">
<h4>Install App</h4>
<p>From App Store or Google Play</p>
<div class="row">
<img src="images/pay/app.jpg" alt="">
<img src="images/pay/play.jpg" alt="">
</div>
<p>Secured Payment Gateway</p>
<img src="images/pay/pay.png" alt="">
</div>
<div class="copyright">
<p>Created By Muhammad Awais | All Rights Reserved | © 2023</p>
</div>
</footer>
<!-- javascript script file code -->
<script>
var mainImg = document.getElementById("MainImg");
var smallImg = document.getElementsByClassName("small-img");
smallImg[0].onclick = function() {
mainImg.src = smallImg[0].src;
}
smallImg[1].onclick = function () {
mainImg.src = smallImg[1].src;
}
smallImg[2].onclick = function () {
mainImg.src = smallImg[2].src;
}
smallImg[3].onclick = function () {
mainImg.src = smallImg[3].src;
}
</script>
<!-- javascript script file link -->
<script src="script.js"></script>
</body>
</html>