-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.html
267 lines (253 loc) · 16.8 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" integrity="sha256-h20CPZ0QyXlBuAw7A+KluUYx/3pK+c7lYEpqLTlxjYQ=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<link rel="stylesheet" href="css/style.css">
<title>Project 2</title>
</head>
<body class="bg-secondary">
<div class="container-fluid bg-dark">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo03" aria-controls="navbarTogglerDemo03" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="/index.html"><i class="fas fa-gamepad animated infinite pulse"></i></a>
<div class="collapse navbar-collapse" id="navbarTogglerDemo03">
<ul class="navbar-nav ml-auto mt-2 mt-lg-0">
<li class="nav-item mr-5">
<a class="nav-link" href="/index.html">Home</a>
</li>
<li class="nav-item mr-5">
<a class="nav-link" href="/about.html">About</a>
</li>
<li class="nav-item mr-5">
<a class="nav-link" href="/catalog.html">Catalog</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/cart.html" tabindex="-1" aria-disabled="true"><i class="fas fa-shopping-cart"></i></a>
</li>
</ul>
</div>
</nav>
</div>
<div class="px-4 pb-5 mt-5">
<div class="container">
<div class="row py-4 p-4 bg-white mb-5">
<div class="col-12">
<div class="bg-light px-4 py-3 font-weight-bold text-center">ORDER SUMMARY</div>
<div class="p-4">
<ul class="list-unstyled">
<li class="d-flex justify-content-between py-3 border-bottom"><strong>Subtotal</strong>$179.97</li>
<li class="d-flex justify-content-between py-3 border-bottom"><strong>Tax</strong>$15.98</li>
<li class="d-flex justify-content-between py-3 border-bottom"><strong>Shipping Fee</strong>$8.72</li>
<li class="d-flex justify-content-between py-3 border-bottom text-success"><strong>Coupon Applied: FREESHIPPING</strong>– $8.72</li>
<li class="d-flex justify-content-between py-3 border-bottom"><strong>Total</strong>$195.95</li>
</ul>
</div>
</div>
</div>
<div class="row py-4 p-4 bg-white">
<div class="col-12">
<div class="bg-light px-4 py-3 font-weight-bold text-center">BILLING ADDRESS</div>
<form method="get" class="needs-validation" novalidate>
<div class="form-row mt-4">
<div class="col-md-4 mb-3">
<label for="validationCustom01">First Name</label>
<input type="text" class="form-control" name="first-name" id="validationCustom01" required>
<div class="invalid-feedback">
Please enter your first name.
</div>
</div>
<div class="col-md-4 mb-3">
<label for="validationCustom02">Last Name</label>
<input type="text" class="form-control" name="last-name" id="validationCustom02" required>
<div class="invalid-feedback">
Please enter your last name.
</div>
</div>
<div class="col-md-4 mb-3">
<label for="validationCustomUsername">Username</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroupPrepend">@</span>
</div>
<input type="text" class="form-control" name="username" id="validationCustomUsername" placeholder="Username" aria-describedby="inputGroupPrepend" required>
<div class="invalid-feedback">
Please enter your username.
</div>
</div>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label for="validationCustom03">Email<span class="text-muted"> (Optional)</span></label>
<input type="email" class="form-control" name="email" id="validationCustom03" placeholder="[email protected]">
</div>
<div class="col-md-6 mb-3">
<label for="validationCustom04">Address</label>
<input type="text" class="form-control" name="address" id="validationCustom04" placeholder="123 Jefferson Ave" required>
<div class="invalid-feedback">
Please enter your address.
</div>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label for="validationCustom05">City</label>
<input type="text" class="form-control" name="city" id="validationCustom05" required>
<div class="invalid-feedback">
Please enter your city.
</div>
</div>
<div class="col-md-3 mb-3">
<label for="validationCustom06">State</label>
<select class="custom-select" name="state" id="validationCustom06" required>
<option selected disabled value="">Choose...</option>
<option>New York</option>
</select>
<div class="invalid-feedback">
Please select a state.
</div>
</div>
<div class="col-md-3 mb-3">
<label for="validationCustom07">Zip</label>
<input type="text" class="form-control" name="zip" id="validationCustom07" required>
<div class="invalid-feedback">
Please enter your zip.
</div>
</div>
</div>
<hr/>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="same-shipping-and-billing" name="checkbox01" id="shippingAndBilling">
<label class="form-check-label" for="shippingAndBilling">
Shipping address is the same as my billing address
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="save-billing-address" name="checkbox02" id="saveInfo01">
<label class="form-check-label" for="saveInfo01">
Save this information for next time
</label>
</div>
</div>
<hr/>
<div class="bg-light px-4 py-3 font-weight-bold text-center">PAYMENT</div>
<div class="custom-control custom-radio mt-4">
<input type="radio" class="custom-control-input" id="customControlValidation0" name="payment-method" value="credit-card" required>
<label class="custom-control-label" for="customControlValidation0">
Credit Card
</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customControlValidation1" name="payment-method" value="debit-card" required>
<label class="custom-control-label" for="customControlValidation1">
Debit Card
</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customControlValidation2" name="payment-method" value="paypal" required>
<label class="custom-control-label" for="customControlValidation2">
Paypal
</label>
<div class="invalid-feedback">
Please select one of the payment options.
</div>
</div>
<div class="form-row mt-3">
<div class="col-md-6 mb-3">
<label for="validationCustom08">Name On Card</label>
<input type="text" class="form-control" name="name-on-card" id="validationCustom08" required>
<div class="invalid-feedback">
Please enter the full name as displayed on the card.
</div>
</div>
<div class="col-md-6 mb-3">
<label for="validationCustom09">Credit Card Number</label>
<input type="text" class="form-control" name="credit-card-number" id="validationCustom09" required>
<div class="invalid-feedback">
Please enter your credit card number.
</div>
</div>
</div>
<div class="form-row">
<div class="col-md-3 mb-3">
<label for="validationCustom10">Expiration Date</label>
<input type="text" class="form-control" name="card-exp-date" id="validationCustom10" required>
<div class="invalid-feedback">
Please enter the expiration date.
</div>
</div>
<div class="col-md-3 mb-3">
<label for="validationCustom11">CVV</label>
<input type="text" class="form-control" name="security-code" id="validationCustom11" required>
<div class="invalid-feedback">
Please enter the security code.
</div>
</div>
</div>
<hr/>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="save-payment-info" name="checkbox03" id="saveInfo02">
<label class="form-check-label" for="saveInfo02">
Save this information for next time
</label>
</div>
</div>
<hr/>
<div class="form-group">
<div class="row">
<div class="col-md-4">
<a href="/cart.html" class="btn btn-info btn-block mt-2">Back To Cart</a>
</div>
<div class="col-md-4">
<button class="btn btn-danger btn-block mt-2" type="reset">Reset</button>
</div>
<div class="col-md-4">
<button class="btn btn-success btn-block mt-2" type="submit">Place Order</button>
</div>
</div>
</div>
</form>
<script>
// Example starter JavaScript for disabling form submissions if there are invalid fields
(function() {
'use strict';
window.addEventListener('load', function() {
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
</script>
</div>
</div>
</div>
</div>
<div class="container-fluid bg-dark text-center py-4 text-light">
Copyright 2020
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</body>
</html>