-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
317 lines (300 loc) · 16.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
<link rel="stylesheet" href="style.css">
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="/">E-shopper</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 class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Categories
</a>
<ul class="dropdown-menu bg-dark" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="/#products">Cameras</a></li>
<li><a class="dropdown-item" href="/#products">Apple Gadgets</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="/#products">Drones</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="/cart.html" tabindex="-1">
Cart<i class="bi bi-cart-plus-fill"></i>
<span class="cart-badge badge bg-success">4</span></a>
</li>
</ul>
<ul class="navbar-nav mb-2 mb-lg-0 mx-lg-2 order-sm-last">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="myaccount" role="button" data-bs-toggle="dropdown" aria-expanded="false">
My Account
</a>
<ul class="dropdown-menu bg-dark text-light" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="/#" data-bs-toggle="modal" data-bs-target="#exampleModal">My Orders</a></li>
<li><a class="dropdown-item" href="/#" data-bs-toggle="modal" data-bs-target="#exampleModal">Profile</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="/#">Logout</a></li>
</ul>
</li>
</ul>
<form class="d-flex search-form">
<input class="form-control" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-success" type="submit" data-bs-toggle="tooltip" data-bs-placement="left" title="Search for all products">
<i class="bi bi-search"></i>
</button>
</form>
</div>
</div>
</nav>
<!-- End of Navigation -->
<div id="carouselExampleDark" class="carousel carousel-dark slide mb-5" data-bs-ride="carousel">
<ol class="carousel-indicators">
<li data-bs-target="#carouselExampleDark" data-bs-slide-to="0" class="active"></li>
<li data-bs-target="#carouselExampleDark" data-bs-slide-to="1"></li>
<li data-bs-target="#carouselExampleDark" data-bs-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active" data-bs-interval="3000">
<img src="images/product-2-slider.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>First slide label</h5>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</div>
<div class="carousel-item" data-bs-interval="3000">
<img src="images/product-3-slider.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>Second slide label</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</div>
<div class="carousel-item" data-bs-interval="3000">
<img src="images/product-6-slider.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>Third slide label</h5>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleDark" role="button" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleDark" role="button" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</a>
</div>
<!-- End of Carousel -->
<div class="container mb-5">
<div id="products" class="row">
<div class="col-xl-3 col-lg-4 col-md-6 position-relative">
<div class="card product-item">
<i class="bi bi-heart-fill position-absolute liked"></i>
<i class="bi bi-heart position-absolute like"></i>
<img src="images/product-1-square.jpg" onclick="goToProductDetails()" class="card-img-top" alt="..." data-bs-toggle="tooltip" data-bs-placement="top" title="Click to See Product Details">
<div class="card-body">
<h6 class="card-subtitle mb-2 text-muted fw-light">Headphones</h6>
<h5 class="card-title">Sony WX-5</h5>
<p class="card-text price"> $100.75 <span class="float-end rating-stars" >
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</span> </p>
<div class="text-center">
<a class="btn btn-dark w-100" onclick="showToast()" role="button" > Add To Cart</a>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-4 col-md-6 position-relative">
<div class="card product-item" >
<i class="bi bi-heart-fill position-absolute liked"></i>
<i class="bi bi-heart position-absolute like"></i>
<img src="images/product-2-square.jpg" onclick="goToProductDetails()" class="card-img-top" alt="...">
<div class="card-body">
<h6 class="card-subtitle mb-2 text-muted fw-light ">SmartWatch</h6>
<h5 class="card-title">Apple Watch 2</h5>
<p class="card-text price"> $500.75 <span class="float-end rating-stars" >
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</span> </p>
<div class="text-center">
<a class="btn btn-dark w-100" onclick="showToast()" role="button"> Add To Cart</a>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-4 col-md-6 position-relative">
<div class="card product-item">
<i class="bi bi-heart-fill position-absolute liked"></i>
<i class="bi bi-heart position-absolute like"></i>
<img src="images/product-4-square.jpg" onclick="goToProductDetails()" class="card-img-top" alt="...">
<div class="card-body">
<h6 class="card-subtitle mb-2 text-muted fw-light ">Camera</h6>
<h5 class="card-title">Canon WM-5</h5>
<p class="card-text price"> $300.75 <span class="float-end rating-stars" >
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</span> </p>
<div class="text-center">
<a class="btn btn-dark w-100" onclick="showToast()" role="button"> Add To Cart</a>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-4 col-md-6 position-relative">
<div class="card product-item">
<i class="bi bi-heart-fill position-absolute liked"></i>
<i class="bi bi-heart position-absolute like"></i>
<img src="images/product-3-square.jpg" onclick="goToProductDetails()" class="card-img-top" alt="...">
<div class="card-body">
<h6 class="card-subtitle mb-2 text-muted fw-light ">Mobile</h6>
<h5 class="card-title">Apple IPhone 11</h5>
<p class="card-text price"> $799.75 <span class="float-end rating-stars" >
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</span> </p>
<div class="text-center">
<a class="btn btn-dark w-100" onclick="showToast()" role="button"> Add To Cart</a>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-4 col-md-6 position-relative">
<div class="card product-item">
<i class="bi bi-heart-fill position-absolute liked"></i>
<i class="bi bi-heart position-absolute like"></i>
<img src="images/product-5-square.jpg" onclick="goToProductDetails()" class="card-img-top" alt="...">
<div class="card-body">
<h6 class="card-subtitle mb-2 text-muted fw-light ">Tablet</h6>
<h5 class="card-title">iPad Pro</h5>
<p class="card-text price"> $999.75 <span class="float-end rating-stars" >
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</span> </p>
<div class="text-center">
<a class="btn btn-dark w-100" onclick="showToast()" role="button"> Add To Cart</a>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-4 col-md-6 position-relative">
<div class="card product-item">
<i class="bi bi-heart-fill position-absolute liked"></i>
<i class="bi bi-heart position-absolute like"></i>
<img src="images/product-6-square.jpg" onclick="goToProductDetails()" class="card-img-top" alt="...">
<div class="card-body">
<h6 class="card-subtitle mb-2 text-muted fw-light ">Drones</h6>
<h5 class="card-title">XT-5</h5>
<p class="card-text price"> $1100.75 <span class="float-end rating-stars" >
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</span> </p>
<div class="text-center">
<a class="btn btn-dark w-100" onclick="showToast()" role="button"> Add To Cart</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer mt-auto bg-dark text-light">
<div class="container py-3">
<div class="row d-flex footer-items">
<div class="col-lg-4">
<h5>Categories</h5>
<ul>
<li><a href="#">Watches</a></li>
<li><a href="#">Mobiles</a></li>
<li><a href="#">Tablets</a></li>
<li><a href="#">Audio</a></li>
<li><a href="#">Drones</a></li>
</ul>
</div>
<div class="col-lg-4">
<h5>Useful Links</h5>
<ul>
<li><a href="#">Terms</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">About us</a></li>
<li><a href="#">Mission</a></li>
</ul>
</div>
<div class="col-lg-4">
<h5>Get Updates</h5>
<div class="d-flex subscribe">
<input type="text" class="form-control">
<button class="btn btn-warning">Subscribe</button>
</div>
<div class="mt-2">
<div class="btn-group me-2 social-icons" role="group" aria-label="First group">
<button type="button" class="btn btn-secondary mx-1 d-flex flex-column justify-content-center align-items-center">
<i class="bi bi-facebook"></i>
</button>
<button type="button" class="btn btn-secondary mx-1 d-flex flex-column justify-content-center align-items-center">
<i class="bi bi-instagram"></i>
</button>
<button type="button" class="btn btn-secondary mx-1 d-flex flex-column justify-content-center align-items-center">
<i class="bi bi-twitter"></i>
</button>
<button type="button" class="btn btn-secondary mx-1 d-flex flex-column justify-content-center align-items-center">
<i class="bi bi-linkedin"></i>
</button>
</div>
</div>
</div>
</div>
<div class="row text-center">
<span>@coderdost</span>
</div>
</div>
</div>
<!-- End of Footer -->
<div class="toast d-flex align-items-center text-white bg-primary border-0 position-fixed" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-body">
Item is successfully added to your cart.
</div>
<button type="button" class="btn-close btn-close-white ms-auto me-2" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<!-- End of Toast -->
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
You will need to Login of Check your account.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<a type="button" href="login.html" class="btn btn-primary">Go To Login</a>
</div>
</div>
</div>
</div>
<!-- End of Modal -->
<script src="app.js"></script>
</body>
</html>