-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
215 lines (205 loc) · 8.22 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 information for character set and responsive design -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Title of the webpage -->
<title>Product Box Selection</title>
<!-- Link to external CSS file for styling -->
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- Main container for the webpage -->
<div class="flex-column">
<!-- Website name container with lines around the website name -->
<div class="website-name-container">
<div class="line"></div>
<div class="website-name">YAY! It's BOGO</div>
<div class="line"></div>
</div>
<div class="flex-column">
<!-- Product box 1 -->
<div class="box" class="flex-column" id="box1" onmouseover="selectBox(1)">
<div class="box-header">
<div class="left">
<!-- Radio button for selecting the product -->
<div class="radio">
<input type="radio" id="unit1" name="unit" />
<label for="unit1"></label>
</div>
<div class="details">
<!-- Unit and discount info -->
<div class="unit">
1 Unit <span class="discount">10% Off</span>
</div>
<div class="price" id="price1">Standard Price</div>
</div>
</div>
<div class="right">
<!-- Current price and original price display -->
<div class="current-price" data-price="10.00">10.00 USD</div>
<div class="original-price">24.00 USD</div>
</div>
</div>
<!-- Dropdown section for size and color selection -->
<div id="dropdown1" class="dropdown">
<div class="dropdown-header">
<label for="size-select">Size</label>
<label for="color-select">Colour</label>
</div>
<div class="dropdown-header">
<!-- Selection for size and color -->
<span>#1</span>
<select name="sizes" class="select-width" id="size-select">
<option value="S">S</option>
<option value="M">M</option>
<option value="Lg">Lg</option>
</select>
<select name="colors" class="select-width" id="color-select">
<option value="Red">Red</option>
<option value="Blue">Blue</option>
</select>
</div>
<div class="dropdown-header">
<!-- Selection for the second set of size and color -->
<span>#2</span>
<select name="sizes" class="select-width" id="size-select">
<option value="S">S</option>
<option value="M">M</option>
<option value="Lg">Lg</option>
</select>
<select name="colors" class="select-width" id="color-select">
<option value="Red">Red</option>
<option value="Blue">Blue</option>
</select>
</div>
</div>
</div>
<!-- Product box 2 (most popular) -->
<div class="box" class="flex-column" id="box2" onmouseover="selectBox(2)">
<div class="most-popular">MOST POPULAR</div>
<div class="box-header">
<div class="left">
<div class="radio">
<input type="radio" id="unit2" name="unit" />
<label for="unit2"></label>
</div>
<div class="details">
<div class="unit">
2 Unit <span class="discount">20% Off</span>
</div>
<div class="price" id="price2">Standard Price</div>
</div>
</div>
<div class="right">
<div class="current-price" data-price="18.00">18.00 USD</div>
<div class="original-price">24.00 USD</div>
</div>
</div>
<!-- Dropdown section for size and color selection for box 2 -->
<div id="dropdown2" class="dropdown">
<div class="dropdown-header">
<label for="size-select">Size</label>
<label for="color-select">Colour</label>
</div>
<div class="dropdown-header">
<span>#1</span>
<select name="sizes" class="select-width" id="size-select">
<option value="S">S</option>
<option value="M">M</option>
<option value="Lg">Lg</option>
</select>
<select name="colors" class="select-width" id="color-select">
<option value="Red">Red</option>
<option value="Blue">Blue</option>
</select>
</div>
<div class="dropdown-header">
<span>#2</span>
<select name="sizes" class="select-width" id="size-select">
<option value="S">S</option>
<option value="M">M</option>
<option value="Lg">Lg</option>
</select>
<select name="colors" class="select-width" id="color-select">
<option value="Red">Red</option>
<option value="Blue">Blue</option>
</select>
</div>
</div>
</div>
<!-- Product box 3 -->
<div class="box" class="flex-column" id="box3" onmouseover="selectBox(3)">
<div class="box-header">
<div class="left">
<div class="radio">
<input type="radio" id="unit3" name="unit" />
<label for="unit3"></label>
</div>
<div class="details">
<div class="unit">
3 Unit <span class="discount">30% Off</span>
</div>
<div class="price" id="price3">Standard Price</div>
</div>
</div>
<div class="right">
<div class="current-price" data-price="24.00">24.00 USD</div>
<div class="original-price">24.00 USD</div>
</div>
</div>
<!-- Dropdown section for size and color selection for box 3 -->
<div id="dropdown3" class="dropdown">
<div class="dropdown-header">
<label for="size-select">Size</label>
<label for="color-select">Colour</label>
</div>
<div class="dropdown-header">
<span>#1</span>
<select name="sizes" class="select-width" id="size-select">
<option value="S">S</option>
<option value="M">M</option>
<option value="Lg">Lg</option>
</select>
<select name="colors" class="select-width" id="color-select">
<option value="Red">Red</option>
<option value="Blue">Blue</option>
</select>
</div>
<div class="dropdown-header">
<span>#2</span>
<select name="sizes" class="select-width" id="size-select">
<option value="S">S</option>
<option value="M">M</option>
<option value="Lg">Lg</option>
</select>
<select name="colors" class="select-width" id="color-select">
<option value="Red">Red</option>
<option value="Blue">Blue</option>
</select>
</div>
</div>
</div>
<!-- Free delivery and total price section -->
<div>
<div class="free-delivery">
<span>Free Delivery</span>
<div class="total">
<span id="total-price" >Total :</span>
<span id="total-price" >$18.00 USD</span>
</div>
</div>
</div>
<!-- Button to add items to cart -->
<div>
<button class="add-to-cart">+ Add to Cart</button>
<!-- Footer section for the site -->
<span class="powered-by">© Powered by Pumper</span>
</div>
</div>
</div>
<!-- Link to external JavaScript file for functionality -->
<script src="script.js"></script>
</body>
</html>