-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
209 lines (182 loc) · 7.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png" />
<link rel="stylesheet" href="./src/sass/main.scss">
<title>Frontend Mentor | E-commerce product page</title>
</head>
<body>
<div class="nav__overlay">
</div>
<nav class="nav container">
<div class="nav__hamburger-menu">
<svg class="nav__hamburger-icon">
<use xlink:href="./images/sprite.svg#icon-menu"></use>
</svg>
</div>
<div class="nav__logo">
<img src="./images/logo.svg" alt="Sneakers Brand Logo" class="nav__logo-photo">
</div>
<ul class="nav__list">
<li class="nav__item"><a class="nav__item-link" href="#">Collections</a></li>
<li class="nav__item"><a class="nav__item-link" href="#">Men</a></li>
<li class="nav__item"><a class="nav__item-link" href="#">Women</a></li>
<li class="nav__item"><a class="nav__item-link" href="#">About</a></li>
<li class="nav__item"><a class="nav__item-link" href="#">Contact</a></li>
</ul>
<div class="nav__cart">
<svg class="nav__cart-logo">
<use xlink:href="./images/sprite.svg#icon-cart"></use>
</svg>
<div class="cart-popup hidden">
<h1 class="cart-popup__heading">Cart</h1>
<div class="cart-popup__content">
<div class="cart-popup__items">
<p class="cart-popup__msg">Your cart is empty!</p>
<!-- <div class="cart-popup__item">
<div class="cart-popup__item-photo">
<img src="./images/image-product-1-thumbnail.jpg" alt="Product Photo">
</div>
<div class="cart-popup__item-description">
<h1 class="cart-popup__item-title">Fall Limited Edition Sneakers</h1>
<span class="cart-popup__item-price">
$125.00 × <span class="cart-popup__item-quantity">3</span> <span
class="cart-popup__item-total-price">$375.00</span>
</span>
</div>
<svg class="cart-popup__delete">
<use xlink:href="./images/sprite.svg#icon-delete"></use>
</svg>
</div> -->
</div>
<button class="cart-popup__checkout" data-qty="0">Checkout</button>
</div>
</div>
</div>
<button class="nav__profile">
<img src="./images/image-avatar.png" alt="Profile" class="nav__profile-photo">
</button>
</nav>
<section class="product container">
<div class="product__visuals">
<div class="product__selected">
<button class="product__selected-btn product__prev-btn" data-go-to="-1">
<svg>
<use xlink:href="./images/sprite.svg#icon-previous"></use>
</svg>
</button>
<div class="product__image-box">
<img src="./images/image-product-1.jpg" alt="Current Selected View" class="product__photo">
</div>
<button class="product__selected-btn product__next-btn" data-go-to="2">
<svg>
<use xlink:href="./images/sprite.svg#icon-next"></use>
</svg>
</button>
</div>
<div class="product__thumbnails">
<div class="product__thumbnail-box product__thumbnail--active">
<img src="./images/image-product-1-thumbnail.jpg" alt="Thumbnail" class="product__thumbnail"
data-img-source="1">
</div>
<div class="product__thumbnail-box">
<img src="./images/image-product-2-thumbnail.jpg" alt="Thumbnail" class="product__thumbnail"
data-img-source="2">
</div>
<div class="product__thumbnail-box">
<img src="./images/image-product-3-thumbnail.jpg" alt="Thumbnail" class="product__thumbnail"
data-img-source="3">
</div>
<div class="product__thumbnail-box">
<img src="./images/image-product-4-thumbnail.jpg" alt="Thumbnail" class="product__thumbnail"
data-img-source="4">
</div>
</div>
</div>
<div class="product__overview">
<span class="product__brand secondary-heading">Sneaker Company</span>
<h1 class="product__title">Fall Limited Edition Sneakers</h1>
<p class="product__description">
These low-profile sneakers are your perfect casual wear companion. Featuring a durable rubber outer sole, they
will withstand everything the weather can offer.
</p>
<div class="product__costs">
<div class="product__curr-price">
<span class="product__price">$125.00</span> <span class="product__discount">50%</span>
</div>
<div class="product__actual-price">
$250.00
</div>
</div>
<div class="product__actions">
<div class="counter product__qty-counter-box">
<button class="product__icon product__icon-minus">
<svg class="product__counter-handler">
<use xlink:href="./images/sprite.svg#icon-minus"></use>
</svg>
</button>
<span class="product__counter">0</span>
<button class="product__icon product__icon-plus">
<svg class="product__counter-handler">
<use xlink:href="./images/sprite.svg#icon-plus"></use>
</svg>
</button>
</div>
<button class="product__add-to-cart">
<svg class="product__cart-icon">
<use xlink:href="./images/sprite.svg#icon-cart"></use>
</svg>
<span>Add to cart</span>
</button>
</div>
</div>
</section>
<div class="visual-overlay">
<div class="visual-overlay__box">
<div class="product__visuals">
<div class="product__selected">
<button class="product__selected-btn product__prev-btn visual-overlay__prev-btn">
<svg>
<use xlink:href="./images/sprite.svg#icon-previous"></use>
</svg>
</button>
<div class="product__image-box visual-overlay__image-box">
<img src="./images/image-product-1.jpg" alt="Current Selected View"
class="product__photo visual-overlay__photo">
</div>
<button class="product__selected-btn product__next-btn visual-overlay__next-btn">
<svg>
<use xlink:href="./images/sprite.svg#icon-next"></use>
</svg>
</button>
</div>
<div class="product__thumbnails visual-overlay__thumbnails">
<div class="product__thumbnail-box visual-overlay__thumbnail-box product__thumbnail--active">
<img src="./images/image-product-1-thumbnail.jpg" alt="Thumbnail" class="product__thumbnail"
data-img-source="1">
</div>
<div class="product__thumbnail-box visual-overlay__thumbnail-box">
<img src="./images/image-product-2-thumbnail.jpg" alt="Thumbnail" class="product__thumbnail"
data-img-source="2">
</div>
<div class="product__thumbnail-box visual-overlay__thumbnail-box">
<img src="./images/image-product-3-thumbnail.jpg" alt="Thumbnail" class="product__thumbnail"
data-img-source="3">
</div>
<div class="product__thumbnail-box visual-overlay__thumbnail-box">
<img src="./images/image-product-4-thumbnail.jpg" alt="Thumbnail" class="product__thumbnail"
data-img-source="4">
</div>
</div>
</div>
<svg class="visual-overlay__close-btn">
<use xlink:href="/images/sprite.svg#icon-close"></use>
</svg>
</div>
</div>
<script defer type="module" src="./src/js/controller.js"></script>
</body>
</html>