-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (157 loc) · 5.39 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
<!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">
<title>Frontend Mentor | E-commerce product page</title>
<link rel="stylesheet" href ="css/main.css">
<script src="script/script.js"></script>
</head>
<body >
<div class = "Lightbox" id="Lightbox">
<div class="iconContainer" id="previous">
<button onclick="previous()">
<img src="images/icon-previous.svg" >
</button>
</div>
<input type="image" src="images/image-product-1.jpg" id="lightBoxImg">
<div class="iconContainer" id="next">
<button onclick="next()">
<img src="images/icon-next.svg" >
</button>
</div>
<button onclick="closeLightbox()" id ="close">
<svg width="14" height="15" xmlns="http://www.w3.org/2000/svg"><path d="m11.596.782 2.122 2.122L9.12 7.499l4.597 4.597-2.122 2.122L7 9.62l-4.595 4.597-2.122-2.122L4.878 7.5.282 2.904 2.404.782l4.595 4.596L11.596.782Z" fill="#FFFFFF" fill-rule="evenodd"/></svg>
</button>
</div>
<div class="basketContainer" id="basketContainer">
<div class="Cart">
<span>
Cart
</span>
</div>
<div class="empty" id="empty">
<span>
Your cart is empty
</span>
</div>
<div class="filled" id="filled">
<img src="images/image-product-1-thumbnail.jpg" >
<span id="name">
Fall Limited Edition Sneakers
</span>
<span id="originalprice">
$125 x
</span>
<span id="amount">
3
</span>
<span id="price">
$375
</span>
<input type="image" src="images/icon-delete.svg" onclick="deleteItem()">
<button>
<span>
Checkout
</span>
</button>
</div>
</div>
<div class="HeroBanner" >
<div class = "Logo" onclick="document.getElementById('basketContainer').style.display='none'">
<img src="images/logo.svg" alt="Logo",id="Logo">
<span >
<span >
Collections
</span>
<span>
Men
</span>
<span>
Women
</span>
<span>
About
</span>
<span>
Contact
</span>
</span>
</div>
<div class = "AvatarCart">
<div class="Cart">
<div class="Notification" id="Notification">
<span id="NotificationAmount">
0
</span>
</div>
<input type="image" src="images/icon-cart.svg" onclick="document.getElementById('basketContainer').style.display='grid'">
</div>
<img class ="Avatar" src="images/image-avatar.png">
</div>
</div>
<div class = "Content" onclick="document.getElementById('basketContainer').style.display='none'">
<div class = "MainImage">
<input type="image" src="images/image-product-1.jpg" id="mainImage" onclick="showLightbox()">
<div class ="Thumbnail">
<input type="image" src = "images/image-product-1-thumbnail.jpg" onclick="document.getElementById('mainImage').src ='images/image-product-1.jpg'">
<input type="image" src = "images/image-product-2-thumbnail.jpg" onclick="document.getElementById('mainImage').src ='images/image-product-2.jpg'">
<input type="image" src = "images/image-product-3-thumbnail.jpg" onclick="document.getElementById('mainImage').src ='images/image-product-3.jpg'">
<input type="image" src = "images/image-product-4-thumbnail.jpg" onclick="document.getElementById('mainImage').src ='images/image-product-4.jpg'">
</div>
</div>
<div class = "Description">
<h2>
SNEAKER COMPANY
</h2>
<h1>
Fall Limited Edition Sneakers
</h1>
<span>
These low-profile sneakers are your perfect casual wear companion. Featuring a
durable rubber outer sole, they’ll withstand everything the weather can offer.
</span>
<div class ="PriceBox">
<span class = "Price">
$125.00
</span>
<span class = "Reduction">
50%
</span>
</div>
<span class="OldPrice">
$250.00
</span>
<div class ="ButtonsBox">
<div class ="ItemCount">
<input type="image" src = "images/icon-minus.svg" onclick="decrementCount()">
<span id="Amount">0</span>
<input type="image" src="images/icon-plus.svg" onclick="incrementCount() ">
</div>
<div class="Add">
<button onclick="addToCart()">
<img src="images/icon-cart-white.svg" >
<span>
Add To Cart
</span>
</button>
</div>
</div>
</div>
</div>
<!-- Sneaker Company
Fall Limited Edition Sneakers
These low-profile sneakers are your perfect casual wear companion. Featuring a
durable rubber outer sole, they’ll withstand everything the weather can offer.
$125.00
50%
$250.00
0 -->
<!-- Add to cart -->
<!-- <div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Your Name Here</a>.
</div> -->
</body>
</html>