-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
284 lines (284 loc) · 9.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex, nofollow" />
<link rel="stylesheet" href="styles.css" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="images/favicon-32x32.png"
/>
<title>Frontend Mentor | E-commerce product page</title>
</head>
<body>
<main>
<header>
<nav>
<button type="menu" class="mobile-menu-trigger">
<img decoding="async" loading="lazy" src="images/icon-menu.svg" alt="Menu icon" title="Nav menu" />
</button>
<a href="/">
<img decoding="async" loading="lazy" src="images/logo.svg" alt="Sneakers logo" title="Sneakers" />
</a>
<ul>
<li><a href="#">Collections</a></li>
<li><a href="#">Men</a></li>
<li><a href="#">Women</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<div class="tools">
<button type="button" class="cart-button">
<img decoding="async" loading="lazy"
src="images/icon-cart.svg"
alt="Cart icon"
title="Cart icon"
width="16"
height="16"
/>
</button>
<a href="#">
<img decoding="async" loading="lazy"
src="images/image-avatar.png"
alt="User icon"
title="User icon"
width="16"
height="16"
/>
</a>
</div>
</header>
<hr class="desktop-menu-separator" />
<section class="product-page__content">
<aside class="product-page__images">
<div class="carousel">
<button type="button" class="previous">
<img decoding="async" loading="lazy"
src="images/icon-previous.svg"
alt="Previous icon"
title="Previous image"
width="13"
height="18"
/>
</button>
<div class="images">
<img decoding="async" loading="lazy"
src="images/image-product-1.jpg"
alt="Sneaker image 1"
title="Sneaker image 1"
width="1000"
height="1000"
/>
<img decoding="async" loading="lazy"
src="images/image-product-2.jpg"
alt="Sneaker image 2"
title="Sneaker image 2"
width="1000"
height="1000"
/>
<img decoding="async" loading="lazy"
src="images/image-product-3.jpg"
alt="Sneaker image 3"
title="Sneaker image 3"
width="1000"
height="1000"
/>
<img decoding="async" loading="lazy"
src="images/image-product-4.jpg"
alt="Sneaker image 4"
title="Sneaker image 4"
width="1000"
height="1000"
/>
</div>
<button type="button" class="next">
<img decoding="async" loading="lazy"
src="images/icon-next.svg"
alt="Next icon"
title="Next image"
width="13"
height="18"
/>
</button>
</div>
<div class="thumbs">
<button class="active">
<img decoding="async" loading="lazy"
src="images/image-product-1-thumbnail.jpg"
alt="Sneaker thumb 1"
title="Sneaker thumb 1"
width="176"
height="176"
/>
</button>
<button>
<img decoding="async" loading="lazy"
src="images/image-product-2-thumbnail.jpg"
alt="Sneaker thumb 2"
title="Sneaker thumb 2"
width="176"
height="176"
/>
</button>
<button>
<img decoding="async" loading="lazy"
src="images/image-product-3-thumbnail.jpg"
alt="Sneaker thumb 3"
title="Sneaker thumb 3"
width="176"
height="176"
/>
</button>
<button>
<img decoding="async" loading="lazy"
src="images/image-product-4-thumbnail.jpg"
alt="Sneaker thumb 4"
title="Sneaker thumb 4"
width="176"
height="176"
/>
</button>
</div>
</aside>
<section class="product__description">
<h2>Sneaker Company</h2>
<h1>
Fall Limited Edition <br />
Sneakers
</h1>
<p>
These low-profile sneakers are your perfect casual wear companion.
Featuring a durable rubber outer sole, they’ll withstand
everything the weather can offer.
</p>
<div class="price">
<p>
<strong class="current-price">$125.00</strong>
<span class="discount">50%</span>
</p>
<p class="previous-price">$250.00</p>
</div>
<form>
<div class="number-input">
<button class="minus">
<img decoding="async" loading="lazy"
src="images/icon-minus.svg"
alt="Minus icon"
title="Remove one"
/>
</button>
<input
type="number"
name="product-number"
id="product-number"
value="1"
inputmode="numeric"
pattern="[0-9]*"
min="1"
max="10"
/>
<button class="plus">
<img decoding="async" loading="lazy"
src="images/icon-plus.svg"
alt="Plus icon"
title="Add one"
/>
</button>
</div>
<button type="submit" class="add-to-cart">
<img decoding="async" loading="lazy"
src="images/icon-cart-white.svg"
alt="Cart icon"
title="Add to cart"
width="22"
height="20"
/>
Add to cart
</button>
</form>
</section>
</section>
</div>
</main>
<template id="mobile-nav-template">
<div class="mobile-nav">
<nav>
<button type="button" class="mobile-menu-close">
<img decoding="async" loading="lazy"
src="images/icon-close.svg"
alt="Close icon"
title="Close menu"
/>
</button>
<ul>
<li><a href="#">Collections</a></li>
<li><a href="#">Men</a></li>
<li><a href="#">Women</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</div>
</template>
<template id="cart-count-template">
<span class="cart-count"></span>
</template>
<template id="cart-empty-text-template">
<p class="cart-empty-text">Your cart is empty.</p>
</template>
<template id="cart-product-template">
<div class="cart_product">
<div class="cart_product__image">
<img decoding="async" loading="lazy" width="176" height="176" />
</div>
<div class="cart_product__description">
<p class="cart_product__description__name">
<strong></strong>
</p>
<p>
<span class="cart_product__description__price"></span> x
<span class="cart_product__description__count"></span>
<strong>
<span class="cart_product__description__total"></span>
</strong>
</p>
</div>
<button type="button" class="cart_product__remove">
<img decoding="async" loading="lazy"
src="images/icon-delete.svg"
alt="Remove icon"
title="Remove product"
width="14"
height="16"
/>
</button>
</div>
</template>
<template id="cart-product-checkout-button-template">
<button type="button" class="cart-checkout-button">Chekout</button>
</template>
<template id="cart-template">
<div class="cart">
<h3>Cart</h3>
<hr />
<section class="cart_products"></section>
</div>
</template>
<template id="lightbox-close-button-template">
<button type="button" class="lightbox-close-button">
<img decoding="async" loading="lazy"
src="images/icon-close-white.svg"
alt="Close icon"
title="Close lightbox"
width="14"
height="15"
/>
</button>
</template>
<script src="scripts/index.js" type="module" defer async></script>
</body>
</html>