forked from koldovsky/online-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
177 lines (164 loc) · 8.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Online shop Stickerz</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous"> <link rel="stylesheet" href="css/index.css">
<link rel="icon" href="img/products/baby-yoda.svg">
</head>
<body>
<header class="container" id="home">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Stickerz</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link " href="#home">Home<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link " href="#products">Products</a>
</li>
<li class="nav-item">
<a class="nav-link " href="#contacts">Contacts</a>
</li>
</ul>
<div>
<a class="nav-link openCartLink" href="#modal-cart" data-bs-toggle="modal">
<i class="fas fa-shopping-cart"></i>
Cart<span id="cart-badge" class="badge bg-dark"></span>
</a>
</div>
</div>
</nav>
</header>
<main class="container">
<div class="jumbotron">
<div id="carouselOffers" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div class="intro mx-auto">
<h1 class="display-4">Welcome to Stickerz</h1>
<p class="lead">Best sticker shop in the World!</p>
<hr class="my-4">
<p>Buy with discount today</p>
<p class="lead">
<a class="btn btn-primary btn-lg " href="#products" role="button">Start shopping</a>
</p>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="img/products/baby-yoda.svg" alt="Baby Yoda">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="img/products/girl.svg" alt="Girl">
</div>
<!-- Todo: Dynamically add items here -->
</div>
<a class="carousel-control-prev" href="#carouselOffers" role="button" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselOffers" role="button" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
<section>
<h2 id="products">Products</h2>
<button class="sort-asc btn">Sort Ascending</button>
<button class="sort-desc btn">Button Descending</button>
<input type="text" class="search">
<div class="row products-container">
<!--Products are dynamically generated here-->
</div>
</section>
</main>
<footer class="container">
<h2 id="contacts">Contact us</h2>
<p>Copyright by <a href="https://programmingmentor.com">Programming Mentor</a></p>
</footer>
<!-- Modal Product Info -->
<div class="modal fade" id="productInfoModal" tabindex="-1" role="dialog" aria-labelledby="productInfoLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="productInfoLabel">Product Info</h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="carouselProductInfo" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="..." class="d-block w-100 image-one" alt="...">
</div>
<div class="carousel-item">
<img src="..." class="d-block w-100 image-two" alt="...">
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselProductInfo" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselProductInfo" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<h4 class="card-title"></h4>
<p class="card-text"></p>
</div>
</div>
</div>
</div>
<!-- Modal Cart -->
<div class="modal fade" id="modal-cart" tabindex="-1" role="dialog" aria-labelledby="cartLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="cartLabel">Cart</h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="cart-product-list-container"></div>
<hr>
<div class="container">
<form class="form-contacts">
<div class="form-group row">
<label for="client-name" class="col-4 col-form-label">Your name:</label>
<input class="form-control col-8" type="text" id="client-name" required>
</div>
<div class="form-group row">
<label for="client-email" class="col-4 col-form-label">Your email:</label>
<input class="form-control col-8" type="email" id="client-email" required>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary close-btn" data-bs-dismiss="modal">Close</button>
<button class="btn btn-primary order">Order</button>
</div>
</div>
</div>
</div>
<div class="alert-container"></div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
<script src="https://use.fontawesome.com/releases/v5.5.0/js/all.js" integrity="sha384-GqVMZRt5Gn7tB9D9q7ONtcp4gtHIUEW/yG7h98J7IpE3kpi+srfFyyB/04OV6pG0" crossorigin="anonymous"></script>
<script src="js/alert-window.js"></script>
<script src="js/products-service.js"></script>
<script src="js/cart.js"></script>
<script src="js/product-list.js"></script>
<script src="js/index.js"></script>
</body>
</html>