-
Notifications
You must be signed in to change notification settings - Fork 0
/
sproduct.html
250 lines (235 loc) · 10.5 KB
/
sproduct.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
<!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>Product Details</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link rel="stylesheet" href="style.css">
<style>
.small-img-group{
display: flex;
justify-content:space-between;
}
.small-img-col{
flex-basis: 24%;
cursor: pointer;
}
.sproduct select{
display: block;
padding: 5px 10px;
}
.sproduct input{
width: 50px;
height: 40px;
padding-left: 10px;
font-size: 16px;
margin-right: 10px;
}
.sproduct input:focus{
outline: none;
}
.buy-btn{
background-color: #247721;
opacity: 1;
transition: 0.3s ease;
}
</style>
</head>
<body>
<!-- NAVIGATION -->
<nav class="navbar navbar-expand-lg navbar-light bg-white py-3 fixed-top">
<div class="container">
<a href="index.html"><img src="img/logo3.png" alt=""></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span><i id="bar" class="fas fa-bars"></i></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="shop.html">Shop</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="cart.html"><i class="fas fa-shopping-bag"></i></a>
</li>
</div>
</div>
</nav>
<section class="container sproduct my-5 pt-5">
<div class="row mt-5">
<div class="col-lg-5 col-md-12 col-12">
<img class="img-fluid w-100 pb-1" src="img/shop/1.jpg" id="MainImg" alt="">
<div class="small-img-group">
<div class="small-img-col">
<img src="img/shop/1.jpg" width="100%" class="small-img" alt="">
</div>
<div class="small-img-col">
<img src="img/shop/24.jpg" width="100%" class="small-img" alt="">
</div>
<div class="small-img-col">
<img src="img/shop/25.jpg" width="100%" class="small-img" alt="">
</div>
<div class="small-img-col">
<img src="img/shop/26.jpg" width="100%" class="small-img" alt="">
</div>
</div>
</div>
<div class="col-lg-6 col-md-12 col-12">
<h6>Home / T-Shirts</h6>
<h3 class="py-4">Best Product T-Shirts</h3>
<h2>$52.00</h2>
<select class="my-3">
<option>Select Size</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
</select>
<input type="number" value="1">
<button class="buy-btn">Add To Cart</button>
<h4 class="mt-5 mb-5">Product Details</h4>
<span>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Alias debitis dolor vero tenetur, sunt consectetur eveniet error ducimus, velit culpa natus quam explicabo aliquid soluta suscipit reiciendis. Omnis, ab ipsum! Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quidem nisi pariatur officiis non corporis quae quos. Neque corporis placeat unde, aut laborum ullam, vel dolorum dolore eum dolorem quibusdam corrupti?</span>
</div>
</div>
</section>
<section id="featured" class="my-5 pb-5">
<div class="container text-center mt-5 py-5">
<h3>Related Products</h3>
<hr class="mx-auto">
</div>
<div class="row mx-auto container-fluid">
<div class="product text-center col-lg-3 col-md-4 col-12">
<img class="img-fluid mb-3" src="img/featured/1.jpg" alt="">
<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>
<h5 class="p-name"> Product Name</h5>
<h4 class="p-price">$92.00</h4>
<button class="buy-btn">Buy Now</button>
</div>
<div class="product text-center col-lg-3 col-md-4 col-12">
<img class="img-fluid mb-3" src="img/featured/2.jpg" alt="">
<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>
<h5 class="p-name"> Product Name</h5>
<h4 class="p-price">$92.00</h4>
<button class="buy-btn">Buy Now</button>
</div>
<div class="product text-center col-lg-3 col-md-4 col-12">
<img class="img-fluid mb-3" src="img/featured/3.jpg" alt="">
<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>
<h5 class="p-name"> Product Name</h5>
<h4 class="p-price">$92.00</h4>
<button class="buy-btn">Buy Now</button>
</div>
<div class="product text-center col-lg-3 col-md-4 col-12">
<img class="img-fluid mb-3" src="img/featured/4.jpg" alt="">
<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>
<h5 class="p-name"> Product Name</h5>
<h4 class="p-price">$92.00</h4>
<button class="buy-btn">Buy Now</button>
</div>
</div>
</section>
<footer class="mt-5 py-5">
<div class="row container mx-auto pt-5">
<div class="footer-one col-lg-3 col-md-6 col-12">
<img src="img/logo3.png" alt="">
<p class="pt-3">Lorem ipsum dolor sit amet consectetur adipisicing elit. Porro quod nisi, rerum veritatis accusantium placeat non totam voluptatibus.</p>
</div>
<div class="footer-one col-lg-3 col-md-6 col-12 mb-3">
<h5 class="pb-2">Featured</h5>
<ul class="text-uppercase list-unstyled">
<li><a href="#">Other</a></li>
<li><a href="#">Marchand</a></li>
<li><a href="#">Disna</a></li>
<li><a href="#">one</a></li>
<li><a href="#">two</a></li>
<li><a href="#">other</a></li>
<li><a href="#">three</a></li>
</ul>
</div>
<div class="footer-one col-lg-3 col-md-6 col-12 mb-3">
<h5 class="pb-2">Contact Us</h5>
<div>
<h6 class="text-uppercase">Address</h6>
<p>123 Moulay Abdellah, Rabat</p>
</div>
<div>
<h6 class="text-uppercase">Phone</h6>
<p>+123 111 111 111</p>
</div>
<div>
<h6 class="text-uppercase">Email</h6>
<p>[email protected]</p>
</div>
</div>
</div>
<div class="copyright">
<div class="row container mx-auto">
<div class="col-lg-3 col-md-6 col-12 mb-4">
<img src="img/payment.png" alt="">
</div>
<div class="col-lg-4 col-md-6 col-12 text-nowrap mb-2">
<p>disna eCommerce @ 2021. All rights reserved</p>
</div>
<div class="col-lg-4 col-md-6 col-12">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
<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>
</body>
</html>