-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
245 lines (244 loc) · 8.46 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
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
<!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" />
<title>Home</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css"
/>
</head>
<body class="bg-light container">
<div class="d-flex flex-column align-items-center py-5">
<img
src="https://getbootstrap.com/docs/4.0/assets/brand/bootstrap-solid.svg"
alt=""
width="72"
height="72"
/>
<h2 class="mt-4">Check out form</h2>
<p class="fs-5 fw-light text-center">
Below is an example form built entirely with Bootstrap's form controls.
Each required form group has a validation state that can be triggered by
attempting to submit the form without completing it.
</p>
</div>
<div class="row">
<div class="col-sm-4 order-md-2 mb-4">
<h4 class="d-flex justify-content-between opacity-50 mb-3">
<span>Your cart</span>
<span class="bg-dark text-white px-3 rounded-pill">3</span>
</h4>
<div class="border rounded mb-4">
<div class="border-bottom bg-white">
<div class="d-flex justify-content-between p-3">
<div>
<h6>Product name</h6>
<small>Brief description</small>
</div>
<div class="opacity-50">$12</div>
</div>
</div>
<div class="border-bottom bg-white">
<div class="d-flex justify-content-between p-3">
<div>
<h6>Second product</h6>
<small>Brief description</small>
</div>
<div class="opacity-50">$8</div>
</div>
</div>
<div class="border-bottom bg-white">
<div class="d-flex justify-content-between p-3">
<div>
<h6>Third product</h6>
<small>Brief description</small>
</div>
<div class="opacity-50">$5</div>
</div>
</div>
<div class="border-bottom bg-light">
<div class="text-success d-flex justify-content-between p-3">
<div>
<h6>Promo code</h6>
<small>EXAMPLECODE</small>
</div>
<div class="opacity-50">-$5</div>
</div>
</div>
<div class="bg-white">
<div class="d-flex justify-content-between p-3">
<div>
<h6 class="fw-normal">Total (USD)</h6>
</div>
<div class="fw-bold">$20</div>
</div>
</div>
</div>
<div class="border bg-white p-2 rounded">
<div class="input-group">
<input
type="text"
class="form-control"
placeholder="Promo code"
aria-describedby="button-addon2"
/>
<button class="btn btn-secondary" type="button" id="button-addon2">
Redeem
</button>
</div>
</div>
</div>
<div class="col-sm-8 order-md-1">
<h4>Billing address</h4>
<div class="row">
<div class="col-sm-6">
<label for="first_name" class="mb-2">First name</label>
<input type="text" id="first_name" class="form-control" />
</div>
<div class="col-sm-6">
<label for="last_name" class="mb-2">Last name</label>
<input type="text" id="last_name" class="form-control" />
</div>
</div>
<div class="mt-3">
<label for="username" class="mb-2">Username</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">@</span>
<input
id="username"
type="text"
class="form-control"
placeholder="Username"
aria-label="Username"
aria-describedby="basic-addon1"
/>
</div>
</div>
<div class="mt-3">
<label for="email" class="mb-2"
>Email
<label for="email" class="opacity-50">(Optional)</label>
</label>
<input
type="text"
id="email"
class="form-control"
placeholder="you@example.com"
/>
</div>
<div class="mt-3">
<label for="address" class="mb-2">Address </label>
<input
type="text"
id="address"
class="form-control"
placeholder="1234 Main St"
/>
</div>
<div class="mt-3">
<label for="address2" class="mb-2"
>Address 2
<label for="email" class="opacity-50">(Optional)</label>
</label>
<input
type="text"
id="address2"
class="form-control"
placeholder="apartment or suite"
/>
</div>
<div class="row mt-3">
<div class="col-sm-5">
<label class="mb-2" for="country">Country</label>
<select class="form-select" id="country" required>
<option value>Choose...</option>
<option value="United States">United States</option>
</select>
</div>
<div class="col-sm-4">
<label class="mb-2" for="state">State</label>
<select class="form-select" id="state" required>
<option value>Choose...</option>
<option value="California">California</option>
</select>
</div>
<div class="col-sm-3">
<label class="mb-2" for="zip">Zip</label>
<input type="text" class="form-control" id="zip" required />
</div>
</div>
<hr class="mt-4" />
<div>
<input type="checkbox" id="same_address" />
<label for="same_address"
>Shipping address is the same as my billing address</label
>
</div>
<div>
<input type="checkbox" id="save_info" />
<label for="save_info">Save this information for next time</label>
</div>
<hr />
<h4 class="my-3">Payment</h4>
<div>
<input type="radio" name="payment" id="credit" />
<label for="credit">Credit card</label>
</div>
<div>
<input type="radio" name="payment" id="debit" />
<label for="debit">Debit card</label>
</div>
<div>
<input type="radio" name="payment" id="paypal" />
<label for="paypal">Paypal</label>
</div>
<div class="row mt-4">
<div class="col-sm-6">
<label for="name_on_card" class="mb-2">Name on card</label>
<input type="text" id="name_on_card" class="form-control" />
<small class="text-muted">Full name as displayed on card</small>
</div>
<div class="col-sm-6">
<label for="card_number" class="mb-2">Credit card number</label>
<input type="text" id="card_number" class="form-control" />
</div>
</div>
<div class="row my-4">
<div class="col-sm-3">
<label for="expiration" class="mb-2">Expiration</label>
<input type="text" id="expiration" class="form-control" />
</div>
<div class="col-sm-3">
<label for="cvv" class="mb-2">CVV</label>
<input type="text" id="cvv" class="form-control" />
</div>
</div>
<hr />
<div class="d-grid mb-2">
<button class="mt-2 btn btn-primary btn-block" type="submit">
Continue to checkout
</button>
</div>
</div>
</div>
<footer class="my-5 py-5 text-muted text-center text-small">
<p class="mb-1">© 2017-2018 Company Name</p>
<ul class="list-inline">
<li class="list-inline-item">
<a class="text-decoration-none" href="#">Privacy</a>
</li>
<li class="list-inline-item">
<a class="text-decoration-none" href="#">Terms</a>
</li>
<li class="list-inline-item">
<a class="text-decoration-none" href="#">Support</a>
</li>
</ul>
<p>Coder: Nguyen Ba Tuan</p>
</footer>
</body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js"></script>
</html>