-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
263 lines (217 loc) · 10.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="./dist/images/favicon-32x32.png">
<link rel="stylesheet" href="./dist/css/main.css">
<title>Frontend Mentor | E-commerce product page</title>
</head>
<body>
<div class="desktop-container">
<nav class="navbar container">
<div class="logo-hamburger-container">
<button type="button" class="btn navbar__button navbar__button--hamburger">
<img src="./dist/images/icon-menu.svg" alt="hamburger menu" class="hamburger-icon">
</button>
<a href="#" class="navbar__logo">
<img src="./dist/images/logo.svg" alt="the word sneakers used as a logo" class="logo">
</a>
</div>
<ul class="navbar__links navbar__links--primary">
<li class="navbar__links--close">
<button type="button" class="btn close-menu-button">
<img src="./dist/images/icon-close.svg" alt="close menu option" class="close-icon">
</button>
</li>
<li class="navbar__link-container">
<a href="#" class="navbar__link navbar__link--wide">
Collections
</a>
</li>
<li class="navbar__link-container">
<a href="#" class="navbar__link">
Men
</a>
</li>
<li class="navbar__link-container">
<a href="#" class="navbar__link">
Women
</a>
</li>
<li class="navbar__link-container">
<a href="#" class="navbar__link">
About
</a>
</li>
<li class="navbar__link-container">
<a href="#" class="navbar__link">
Contact
</a>
</li>
</ul>
<ul class="navbar__links navbar__links--secondary">
<li class="navbar__link-container navbar__link-container--cart">
<button type="button" class="btn navbar__button navbar__button--cart" aria-label="cart" aria-live="assertive" aria-atomic="true">
<img src="./dist/images/icon-cart.svg" alt="" class="cart-icon" aria-hidden="true">
<span class="items-in-cart-notification">0</span>
</button>
</li>
<li class="navbar__link-container navbar__link--image">
<a href="#" class="navbar__link navbar__link--avatar" aria-label="customer avatar">
<img src="./dist/images/image-avatar.png" alt="customer avatar" class="customer-image">
</a>
</li>
</ul>
</nav>
<main>
<section class="cart" aria-live="assertive" aria-atomic="true">
<h2 class="screen-reader-only">
Cart items
</h2>
<div class="cart-container">
<div class="cart__header">
<p class="cart__title container">
Cart
</p>
</div>
<div class="cart__body">
<p class="cart__empty-message container">
Your cart is empty.
</p>
<ul class="cart__items container"></ul>
</div>
<a href="#" class="cart__checkout container">
Checkout
</a>
</div>
</section>
<section class="info container">
<p class="info__intro">
Sneaker Company
</p>
<h1 class="info__title">
Fall Limited Edition Sneakers
</h1>
<p class="info__message">
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="info__pricing-details">
<div class="price-discount">
<p class="info__price">
$<span class="info__price--final">125.00</span>
</p>
<p class="info__discount">
50%
</p>
</div>
<p class="info__original-price">
$250.00
</p>
</div>
<div class="info__cta">
<div class="item-counter">
<button type="button" class="btn item-counter__button item-counter__button--minus" aria-label="reduce quantity">
<img src="./dist/images/icon-minus.svg" alt="" class="minus-icon" aria-hidden="true">
</button>
<p class="item-counter__value" aria-live="assertive">
0
</p>
<button type="button" class="btn item-counter__button item-counter__button--plus" aria-label="increase quantity">
<img src="./dist/images/icon-plus.svg" alt="" class="plus-icon" aria-hidden="true">
</button>
</div>
<button type="button" class="btn add-to-cart">
<img src="./dist/images/icon-cart.svg" alt="" class="cart-icon--add" aria-hidden="true">
Add to cart
</button>
</div>
</section>
<section class="sneakers">
<h2 class="screen-reader-only">
Sneakers Viewed From Different Angles
</h2>
<div class="images">
<div class="images__main">
<button type="button" class="main-image-button main-image-button--previous" aria-label="previous image">
<img src="./dist/images/icon-previous.svg" alt="" class="previous-icon" aria-hidden="true">
</button>
<div class="main-image-container">
<img src="./dist/images/image-product-1.jpg" alt="main image of white and brown sneakers" class="main-image">
</div>
<button type="button" class="main-image-button main-image-button--next" aria-label="next image">
<img src="./dist/images/icon-next.svg" alt="" class="next-icon" aria-hidden="true">
</button>
</div>
<div class="images__previews-container">
<ul class="images__previews">
<li class="images__preview-container">
<button type="button" class="btn images__preview images__preview--1" aria-label="first sneakers image">
<img src="./dist/images/image-product-1-thumbnail.jpg" alt="pair of white and brown sneakers with left sneaker positioned vertically" class="preview-image">
</button>
</li>
<li class="images__preview-container">
<button type="button" class="btn images__preview images__preview--2" aria-label="second sneakers image">
<img src="./dist/images/image-product-2-thumbnail.jpg" alt="pair of white and brown sneakers with right sneaker placed on top of two stones" class="preview-image">
</button>
</li>
<li class="images__preview-container">
<button type="button" class="btn images__preview images__preview--3" aria-label="third sneakers image">
<img src="./dist/images/image-product-3-thumbnail.jpg" alt="right white and brown sneaker placed on top of two stones" class="preview-image">
</button>
</li>
<li class="images__preview-container">
<button type="button" class="btn images__preview images__preview--4" aria-label="fourth sneakers image">
<img src="./dist/images/image-product-4-thumbnail.jpg" alt="left white and brown sneaker placed on top of two stones" class="preview-image">
</button>
</li>
</ul>
</div>
</div>
<div class="images--lightbox">
<button type="button" class="btn lightbox-close-button">
<img src="./dist/images/icon-close.svg" alt="close lightbox" class="lightbox-close">
</button>
<div class="images__main">
<button type="button" class="main-image-button main-image-button--previous lightbox" aria-label="previous image">
<img src="./dist/images/icon-previous.svg" alt="" class="previous-icon--lightbox" aria-hidden="true">
</button>
<div class="main-image-container--lightbox">
<img src="./dist/images/image-product-1.jpg" alt="main image of white and brown sneakers" class="main-image">
</div>
<button type="button" class="main-image-button main-image-button--next lightbox" aria-label="next image">
<img src="./dist/images/icon-next.svg" alt="" class="next-icon" aria-hidden="true">
</button>
</div>
<div class="images__previews-container">
<ul class="images__previews lightbox">
<li class="images__preview-container">
<button type="button" class="btn images__preview images__preview--lightbox images__preview--lightbox-1" aria-label="first sneakers image">
<img src="./dist/images/image-product-1-thumbnail.jpg" alt="pair of white and brown sneakers with left sneaker positioned vertically" class="preview-image--lightbox">
</button>
</li>
<li class="images__preview-container">
<button type="button" class="btn images__preview images__preview--lightbox images__preview--lightbox-2" aria-label="second sneakers image">
<img src="./dist/images/image-product-2-thumbnail.jpg" alt="pair of white and brown sneakers with right sneaker placed on top of two stones" class="preview-image--lightbox">
</button>
</li>
<li class="images__preview-container">
<button type="button" class="btn images__preview images__preview--lightbox images__preview--lightbox-3" aria-label="third sneakers image">
<img src="./dist/images/image-product-3-thumbnail.jpg" alt="right white and brown sneaker placed on top of two stones" class="preview-image--lightbox">
</button>
</li>
<li class="images__preview-container">
<button type="button" class="btn images__preview images__preview--lightbox images__preview--lightbox-4" aria-label="fourth sneakers image">
<img src="./dist/images/image-product-4-thumbnail.jpg" alt="left white and brown sneaker placed on top of two stones" class="preview-image--lightbox">
</button>
</li>
</ul>
</div>
</div>
</section>
</main>
</div>
<script src="./dist/js/main.js"></script>
</body>
</html>