-
Notifications
You must be signed in to change notification settings - Fork 11
/
add-new-card.html
368 lines (351 loc) · 22.1 KB
/
add-new-card.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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Add new card | Grocery Mart</title>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="76x76" href="./assets/favicon/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicon/favicon-16x16.png" />
<link rel="manifest" href="./assets/favicon/site.webmanifest" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<!-- Fonts -->
<link rel="stylesheet" href="./assets/fonts/stylesheet.css" />
<!-- Styles -->
<link rel="stylesheet" href="./assets/css/main.css" />
<!-- Scripts -->
<script src="./assets/js/scripts.js"></script>
</head>
<body>
<!-- Header -->
<header id="header" class="header"></header>
<script>
load("#header", "./templates/header-logined.html");
</script>
<!-- MAIN -->
<main class="profile">
<div class="container">
<!-- Search bar -->
<div class="profile-container">
<div class="search-bar d-none d-md-flex">
<input type="text" name="" id="" placeholder="Search for item" class="search-bar__input" />
<button class="search-bar__submit">
<img src="./assets/icons/search.svg" alt="" class="search-bar__icon icon" />
</button>
</div>
</div>
<!-- Profile content -->
<div class="profile-container">
<div class="row gy-md-3">
<div class="col-3 col-xl-4 d-lg-none">
<aside class="profile__sidebar">
<!-- User -->
<div class="profile-user">
<img src="./assets/img/avatar/avatar-3.png" alt="" class="profile-user__avatar" />
<h1 class="profile-user__name">Imran Khan</h1>
<p class="profile-user__desc">Registered: 17th May 2022</p>
</div>
<!-- Menu 1 -->
<div class="profile-menu">
<h3 class="profile-menu__title">Manage Account</h3>
<ul class="profile-menu__list">
<li>
<a href="./edit-personal-info.html" class="profile-menu__link">
<span class="profile-menu__icon">
<img src="./assets/icons/profile.svg" alt="" class="icon" />
</span>
Personal info
</a>
</li>
<li>
<a href="#!" class="profile-menu__link">
<span class="profile-menu__icon">
<img src="./assets/icons/location.svg" alt="" class="icon" />
</span>
Addresses
</a>
</li>
<li>
<a href="#!" class="profile-menu__link">
<span class="profile-menu__icon">
<img src="./assets/icons/message-2.svg" alt="" class="icon" />
</span>
Communications & privacy
</a>
</li>
</ul>
</div>
<!-- Menu 2 -->
<div class="profile-menu">
<h3 class="profile-menu__title">My items</h3>
<ul class="profile-menu__list">
<li>
<a href="#!" class="profile-menu__link">
<span class="profile-menu__icon">
<img src="./assets/icons/download.svg" alt="" class="icon" />
</span>
Reorder
</a>
</li>
<li>
<a href="#!" class="profile-menu__link">
<span class="profile-menu__icon">
<img src="./assets/icons/heart.svg" alt="" class="icon" />
</span>
Lists
</a>
</li>
<li>
<a href="#!" class="profile-menu__link">
<span class="profile-menu__icon">
<img src="./assets/icons/gift-2.svg" alt="" class="icon" />
</span>
Registries
</a>
</li>
</ul>
</div>
<!-- Menu 3 -->
<div class="profile-menu">
<h3 class="profile-menu__title">Subscriptions & plans</h3>
<ul class="profile-menu__list">
<li>
<a href="#!" class="profile-menu__link">
<span class="profile-menu__icon">
<img src="./assets/icons/shield.svg" alt="" class="icon" />
</span>
Protection plans
</a>
</li>
</ul>
</div>
<!-- Menu 4 -->
<div class="profile-menu">
<h3 class="profile-menu__title">Customer Service</h3>
<ul class="profile-menu__list">
<li>
<a href="#!" class="profile-menu__link">
<span class="profile-menu__icon">
<img src="./assets/icons/info.svg" alt="" class="icon" />
</span>
Help
</a>
</li>
<li>
<a href="#!" class="profile-menu__link">
<span class="profile-menu__icon">
<img src="./assets/icons/danger.svg" alt="" class="icon" />
</span>
Terms of Use
</a>
</li>
</ul>
</div>
</aside>
</div>
<div class="col-9 col-xl-8 col-lg-12">
<div class="cart-info">
<div class="row gy-3">
<div class="col-12">
<h2 class="cart-info__heading">
<a href="./profile.html">
<img
src="./assets/icons/arrow-left.svg"
alt=""
class="icon cart-info__back-arrow"
/>
</a>
Add credit or debit card
</h2>
<form action="./profile.html" class="form form-card">
<!-- Form row 1 -->
<div class="form__row">
<div class="form__group">
<label for="first-name" class="form__label form-card__label">
First Name
</label>
<div class="form__text-input">
<input
type="text"
name=""
id="first-name"
placeholder="First name"
class="form__input"
required
autofocus
/>
<img
src="./assets/icons/form-error.svg"
alt=""
class="form__input-icon-error"
/>
</div>
<p class="form__error">Please enter your first name</p>
</div>
<div class="form__group">
<label for="last-name" class="form__label form-card__label">
Last Name
</label>
<div class="form__text-input">
<input
type="text"
name=""
id="last-name"
placeholder="Last name"
class="form__input"
required
/>
<img
src="./assets/icons/form-error.svg"
alt=""
class="form__input-icon-error"
/>
</div>
<p class="form__error">Please enter your last name</p>
</div>
</div>
<!-- Form row 2 -->
<div class="form__row">
<div class="form__group">
<label for="card-number" class="form__label form-card__label">
Card Number
</label>
<div class="form__text-input">
<input
type="text"
name=""
id="card-number"
placeholder="Card Number"
class="form__input"
required
/>
<img
src="./assets/icons/form-error.svg"
alt=""
class="form__input-icon-error"
/>
</div>
<p class="form__error">Please enter a valid card number</p>
</div>
<div class="form__group">
<label for="expiration-date" class="form__label form-card__label">
Expiration Date
</label>
<div class="form__text-input">
<input
type="text"
name=""
id="expiration-date"
placeholder="Expiration Date"
class="form__input"
required
/>
<img
src="./assets/icons/form-error.svg"
alt=""
class="form__input-icon-error"
/>
</div>
<p class="form__error">Please enter a valid expiration date</p>
</div>
</div>
<!-- Form row 3 -->
<div class="form__row">
<div class="form__group">
<label for="card-cvv" class="form__label form-card__label">
CVV
</label>
<div class="form__text-input">
<input
type="text"
name=""
id="card-cvv"
placeholder="123"
class="form__input"
required
/>
<img
src="./assets/icons/form-error.svg"
alt=""
class="form__input-icon-error"
/>
</div>
<p class="form__error">Please enter a valid CVV</p>
</div>
<div class="form__group">
<label for="phone-number" class="form__label form-card__label">
Phone Number
</label>
<div class="form__text-input">
<input
type="text"
name=""
id="phone-number"
placeholder="Phone Number"
class="form__input"
required
/>
<img
src="./assets/icons/form-error.svg"
alt=""
class="form__input-icon-error"
/>
</div>
<p class="form__error">Please enter a valid phone number</p>
</div>
</div>
<div class="form__group">
<label for="set-default-card" class="form__label form-card__label">
Card Preferences
</label>
<label class="form__checkbox">
<input
type="checkbox"
name=""
id="set-default-card"
checked
class="form__checkbox-input d-none"
/>
<span class="form__checkbox-label">Set as default card</span>
</label>
</div>
<div class="form-card__bottom">
<a class="btn btn--text" href="./profile.html">Cancel</a>
<button class="btn btn--primary btn--rounded">Save card</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer id="footer" class="footer"></footer>
<script>
load("#footer", "./templates/footer.html");
</script>
<!-- Modal: confirm remove shopping cart item -->
<div id="delete-confirm" class="modal modal--small hide">
<div class="modal__content">
<p class="modal__text">Do you want to remove this item from shopping cart?</p>
<div class="modal__bottom">
<button class="btn btn--small btn--outline modal__btn js-toggle" toggle-target="#delete-confirm">
Cancel
</button>
<button
class="btn btn--small btn--danger btn--primary modal__btn btn--no-margin js-toggle"
toggle-target="#delete-confirm"
>
Delete
</button>
</div>
</div>
<div class="modal__overlay js-toggle" toggle-target="#delete-confirm"></div>
</div>
</body>
</html>