-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
215 lines (215 loc) · 10.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@200;600;700&family=Poppins:wght@700&family=Roboto&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css" />
</head>
<body class="page">
<div class="hero">
<div class="header">
<img class= "logo" src="./img/logo.svg">
<button class="cart" id="cart"></button>
<div class="cartWrapper displayNone" id="cartWrapper">
<p class="productTitle">Shopping Cart</p>
<p class="cartSubTitle">Checkout is almost done!</p>
<div id="cartItems"></div>
<div class="cartBottom">
<p>Total amount: <span class="boldNumbers" id="totalAmount">0 ptc.</span></p>
<p>Total price: <span class="boldNumbers" id="totalPrice">0$</span></p>
</div>
<div class="buyWrapper">
<button class="buyButton">Buy</button>
</div>
</div>
</div>
<div class="bannerHolder">
<div class="banner">
<h1 class="title">IPad Air</h1>
<button class="addToCart">Add to cart</button>
</div>
</div>
</div>
<div id="searchBar">
<div class="searchBar">
<button type="submit" class="filterSearchButton" ></button>
<input class="search" type="text" name="device" id="searchedDevice" placeholder="Enter device name...">
<div class="buttonsWrapper">
<button class="filterButton" id="sideFiltersButton"></button>
<button class="sortButton" id="sortButton"></button>
</div>
</div>
<div class="items">
<div class="filterModal displayNone" id="filterModal">
<button class="close"></button>
<div class="categoryFilterWrapper">
<span>Category</span>
<span>Stock</span>
<div class="categoryFilter">All categories</div>
<div class="categoryFilter">Any</div>
</div>
<div class="categoryFilterFooter">
<button class="filerRersultsButton">Filter results</button>
</div>
</div>
<div class="sortModal displayNone" id="sortModal">
<button class="close"></button>
<div class="orderTitle">Order</div>
<form>
<button class="orderButton orderButtonChecked" id="defaultButton">Default</button>
<button class="orderButton " id ="ascendingButton"><div class="orderButtonWrapper"><span class="smallArrow up"></span><span>Ascending</span></button>
<button class="orderButton" id="descendingButton"><div class="orderButtonWrapper"><span class="smallArrow down"></span><span>Descending</span></button>
</form>
</div>
<div class="filters displayNone" id="sideFiters">
<div class="price">
<div class="filterTitle">Price<button class="price arrow down"> </button></div>
<div class="price filterWrapper">
<div class="priceSettings">
<div class="settingText">From<input type="number" class="inputPrice" name="startingPrice" id="startingPrice" /></div>
<div class="settingText">To<input type="number" class="inputPrice" name="endingPrice" id="endingPrice" /></div>
</div>
</div>
<div class="color">
<div class="filterTitle">Color <button class="color arrow down"> </button></div>
<div class="color filterWrapper">
<div class="filterSettings">
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="color" value="Red">Red
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="color" value="Green">Green
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="color" value="Black">Black
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="color" value="White">White
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="color" value="Blue">Blue
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="color" value="Grey">Grey
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="color" value="Gold">Gold
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="color" value="Yellow">Yellow
</label>
</div>
</div>
</div>
<div class="memory">
<div class="filterTitle">Memory <button class="memory arrow down"> </button> </div>
<div class="memory filterWrapper">
<div class="filterSettings">
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="memory" value="32">32 Gb
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="memory" value="512">512 Gb
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="memory" value="64">64 Gb
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="memory" value="1024">1 TB
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="memory" value="128">128 Gb
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="memory" value="2048">2 TB
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="memory" value="256">256 GB
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="memory" value="4096">4 TB
</label>
</div>
</div>
</div>
<div class="OS">
<div class="filterTitle">OS <button class="OS arrow down" > </button></div>
<div class="OS filterWrapper">
<div class="filterSettings">
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="OS" value="IOS">IOS
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="OS" value="macOS">Mac OS
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="OS" value="tvOS">tvOS
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="OS" value="watchOS">Watch OS
</label>
</div>
</div>
</div>
<div class="display">
<div class="filterTitle">Display <button class="display arrow down"> </button></div>
<div class="display filterWrapper">
<div class="filterSettings">
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="display" min="2" max="5">2 - 5 inch
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="display" min="5" max="7">5 - 7 inch
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="display" min="7" max="12">7 - 12 inch
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="display" min="12" max="16">12 - 16 inch
</label>
<label class="filterCheckboxWrapper">
<span class="checkmark"></span>
<input class="filterCheckbox" type="checkbox" name="display" min="16" max="100">+16 inch
</label>
</div>
</div>
</div>
</div>
</div>
<div class="itemsWrapper" id="items">Loading...</div>
</div>
</div>
<div class="itemInfoWindowWrapper displayNone " id="itemInfoWindowWrapper" ></div>
<div class="itemInfoWindow displayNone" id="itemInfoWindow" ></div>
<script src="./js/script.js"></script>
</body>
</html>