-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.html
317 lines (289 loc) · 9.89 KB
/
checkout.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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!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="./assets/favicon-32x32.png"
/>
<link rel="stylesheet" href="css/style.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<title>Frontend Mentor | Audiophile e-commerce website</title>
</head>
<body class="checkout-body">
<div class="container">
<header>
<button
class="toggle-button"
aria-label="toggle button"
onclick="toggleBtn()"
></button>
<a href="index.html">
<img
class="header-logo"
src="/assets/shared/desktop/logo.svg"
alt="company logo"
/></a>
<nav class="subtitle" id="desktop-menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="headphones.html">Headphones</a></li>
<li><a href="speakers.html">Speakers</a></li>
<li><a href="earphones.html">Earphones</a></li>
</ul>
</nav>
<button class="cart-button" id="top-cart-button">
<span class="count-products-cart-nav">0</span>
</button>
<div class="cart-modal cart-modal cart-content cart-content-hide">
<div class="cart-header">
<h6>Cart(<span class="count-products-cart">0</span>)</h6>
<a class="clear-storage-button">Remove all</a>
</div>
<div class="user-products"></div>
<div class="cart-total">
<p class="subtitle">Total</p>
<p class="total-price">0</p>
</div>
<a class="myButton button-warm checkout-button" href="/checkout.html"
>Checkout</a
>
</div>
<nav class="menu" id="mobile-menu">
<div class="headphones">
<h6>Headphones</h6>
<a href="headphones.html" class="subtitle">Shop</a>
</div>
<div class="speakers">
<h6>Speakers</h6>
<a href="speakers.html" class="subtitle">Shop</a>
</div>
<div class="earphones">
<h6>Earphones</h6>
<a href="earphones.html" class="subtitle">Shop</a>
</div>
</nav>
</header>
<main class="checkout-main">
<a class="go-back-button" onclick="goBackButton()">Go Back</a>
<section class="checkout-form">
<h1>Checkout</h1>
<form>
<h6 class="subtitle">Billing Details</h6>
<div class="form-grid">
<div class="form-field">
<label>Name</label>
<input
type="text"
placeholder="Alexei Ward"
pattern="[a-zA-Z\s\-\x27]+"
onfocusout="checkInputValidity(this)"
/>
</div>
<div class="form-field">
<label>Email address</label>
<input
type="email"
placeholder="alexei@mail.com"
onfocusout="checkInputValidity(this)"
/>
</div>
<div class="form-field">
<label>Phone number</label>
<input type="number" placeholder="+1202-555-0136" />
</div>
</div>
<h6 class="subtitle">Shipping info</h6>
<div class="form-grid">
<div class="form-field form-address">
<label>Address</label>
<input
type="text"
placeholder="1137 Williams Avenue"
pattern="[a-zA-Z0-9\s\-\x27]+"
onfocusout="checkInputValidity(this)"
/>
</div>
<div class="form-field">
<label>ZIP code</label>
<input type="number" placeholder="10001" />
</div>
<div class="form-field">
<label>City</label>
<input
type="text"
placeholder="New York"
pattern="[a-zA-Z\s\-\x27]+"
onfocusout="checkInputValidity(this)"
/>
</div>
<div class="form-field">
<label>Country</label>
<input
type="text"
placeholder="United States"
pattern="[a-zA-Z\s\-\x27]+"
onfocusout="checkInputValidity(this)"
/>
</div>
</div>
<h6 class="subtitle">Payment details</h6>
<div class="form-grid">
<div class="form-field">
<label>Payment Method</label>
</div>
<div class="form-field">
<div class="input-radio">
<input
type="radio"
id="online-payment"
value="e-Money"
name="payment"
/>
e-Money
</div>
<br />
<div class="input-radio">
<input
type="radio"
id="cash"
value="Cash on Delivery"
name="payment"
/>
Cash on Delivery
</div>
</div>
</div>
<div class="form-field">
<label>e-Money number</label>
<input type="number" placeholder="238521993" />
</div>
<div class="form-field">
<label>e-Money PIN</label>
<input type="password" placeholder="6891" maxlength="5" />
</div>
</form>
</section>
<section class="checkout-summary">
<!-- <div class="cart-content"> -->
<div class="cart-header">
<h4>Summary</h4>
</div>
<div class="summary-user-products"></div>
<div class="summary-total">
<p class="subtitle">Total</p>
<p class="summary-total-price subtitle">0</p>
</div>
<div class="summary-shipping">
<p class="subtitle">Shipping</p>
<p class="summary-shipping-price subtitle">0</p>
</div>
<div class="summary-vat">
<p class="subtitle">Vat (included)</p>
<p class="summary-vat-price subtitle">0</p>
</div>
<div class="summary-grand-total">
<p class="subtitle">Grand Total</p>
<p class="summary-grand-total-price subtitle">0</p>
</div>
<a class="myButton button-warm payment-button" onclick="openModal()"
>Continue & Pay</a
>
<div class="order-modal cart-shadow">
<div>
<i class="fas fa-check-circle"></i>
<h5>Thank you for your order</h5>
<p class="font-light">
You will receive an email confirmation shortly.
</p>
<div class="order-grid">
<div class="purchased-products grey-box new-product">
<img src="" alt="" />
<div>
<h6>XX99 MK II</h6>
<p class="font-light">$2,999</p>
</div>
<p class="font-light">x1</p>
</div>
<div class="grey-box-message">
<p>and 2 other item(s)</p>
</div>
<div class="grand-total">
<p class="subtitle font-light">Grand total</p>
<p>$5,526</p>
</div>
</div>
<a
class="myButton button-warm back-to-home-button"
href="/index.html"
>Back to home</a
>
</div>
</div>
<!-- </div> -->
</section>
<!-- The ‘Cash on Delivery’ option enables you to pay in cash when our delivery courier arrives
at your residence. Just make sure your address is correct so that your order will not be cancelled.
Summary
XX99 MK II x1
$2,999
XX59 x2
$899
YX1 x1
$599
Total $5,396
Shipping $10
VAT $120
Grand total $5,526
Continue & pay -->
</main>
</div>
<footer>
<div class="footer-logo">
<img src="/assets/shared/desktop/logo.svg" alt="company logo" />
</div>
<nav class="subtitle footer-nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="headphones.html">Headphones</a></li>
<li><a href="speakers.html">Speakers</a></li>
<li><a href="earphones.html">Earphones</a></li>
</ul>
</nav>
<p class="footer-text">
Audiophile is an all in one stop to fulfill your audio needs. We're a
small team of music lovers and sound specialists who are devoted to
helping you get the most out of personal audio. Come and visit our demo
facility - we’re open 7 days a week.
</p>
<p class="footer-copyright">Copyright 2021. All Rights Reserved</p>
<div class="footer-social">
<a href="#"
><img
src="/assets/shared/desktop/icon-facebook.svg"
alt="facebook icon"
/></a>
<a href="#"
><img
src="/assets/shared/desktop/icon-twitter.svg"
alt="twitter icon"
/></a>
<a href="#"
><img
src="/assets/shared/desktop/icon-instagram.svg"
alt="instagram icon"
/></a>
</div>
</footer>
<script type="module" src="cart.js"></script>
<script src="checkout.js"></script>
<script src="scripts.js"></script>
</body>
</html>