forked from damiengomez/red-queen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart2.html
419 lines (401 loc) · 21.8 KB
/
cart2.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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Red-queen</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:[email protected]" rel="stylesheet">
<link href="assets/css/red-queen.css" rel="stylesheet">
</head>
<body>
<div class="toast-container position-fixed top-0 end-0 p-3">
<div id="cartToast" class="toast align-items-center text-bg-primary border-0" role="alert" aria-atomic="true" data-bs-autohide="false">
<div class="d-flex">
<div class="toast-body">
<i class="bi bi-bag-fill" role="img"></i>
Un article à été ajouté au panier
</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Fermer la notification du panier"></button>
</div>
</div>
<div id="favToast" class="toast align-items-center text-bg-primary border-0" role="alert" aria-atomic="true" data-bs-autohide="false">
<div class="d-flex">
<div class="toast-body">
<i class="bi bi-heart-fill" role="img"></i>
Un article à été ajouté aux favoris
</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Fermer la notification des favoris"></button>
</div>
</div>
</div>
<header role="banner">
<nav role="navigation" class="container skippy visually-hidden-focusable overflow-hidden" aria-label="Liens d'évitement">
<ul class="nav list-unstyled">
<li class="nav-item"><a class="nav-link" href="#">Aller au menu principal</a></li>
<li class="nav-item"><a class="nav-link" href="#">Aller au contenu</a></li>
</ul>
</nav>
<nav role="navigation" class="navbar navbar-expand-sm bg-light border-top" aria-label="Choix de langue et devise">
<div class="container justify-content-end">
<ul class="nav">
<li class="dropdown">
<a class="btn btn-secondary btn-sm dropdown-toggle mx-2" href="#" aria-current="true" role="button" data-bs-toggle="dropdown" aria-label="Version Française">Fr</a>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item" href="#" lang="en" hreflang="en" aria-label="English version">En</a></li>
</ul>
</li>
<li class="dropdown">
<a class="btn btn-secondary btn-sm dropdown-toggle ms-1" href="#" aria-current="true" role="button" data-bs-toggle="dropdown" aria-label="Afficher les prix en Euro"><abbr title="Euro">EUR</abbr></a>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item" href="#" lang="en" hreflang="en" aria-label="Afficher les prix en Great Britain Pound"><abbr lang="en" title="Great Britain Pound">GBP</abbr></a></li>
<li><a class="dropdown-item" href="#" lang="en" hreflang="en" aria-label="Afficher les prix en United States Dollar"><abbr lang="en" title="United States Dollar">USD</abbr></a></li>
<li><a class="dropdown-item" href="#" lang="en" hreflang="en" aria-label="Afficher les prix en Canadian Dollar"><abbr lang="en" title="Canadian Dollar">CAD</abbr></a></li>
</ul>
</li>
</ul>
<a class="nav-link" display:none href="https://christopherabate.github.io/a11yce/cart.html">
<img src="assets/images/accessibility.png" aria-label="redirection vers le site de démo A11yce - panier" title="Redirection vers le site de démo A11yce - panier" role="img"/>
</a>
</div>
</nav>
<nav role="navigation" class="navbar navbar-expand-lg py-3" aria-label="Navigation principale">
<div class="container">
<a class="navbar-brand fs-1 fw-lighter" href="./" style="font-family: 'Montserrat', sans-serif;"><span class="fw-bold">R</span>ed-Q<span class="fw-bold">u</span>ee<span class="fw-bold">n</span></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#main-nav" aria-controls="main-nav" aria-label="Menu de navigation principale">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main-nav">
<ul class="navbar-nav me-auto">
<li class="nav-item dropdown position-static">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">La boutique</a>
<div class="dropdown-menu w-100 mt-0 border-0 rounded-0 pb-2 text-bg-light">
<div class="container">
<div class="row row-cols-1">
<div class="col mb-3">
<p class="fw-bold text-uppercase fs-6">Catégories</p>
<ul class="nav flex-column">
<li>
<a href="#">Femme</a>
</li>
<li>
<a href="#">Homme</a>
</li>
<li>
<a href="#">Accessoires</a>
</li>
<li>
<a href="#">Nouveautés</a>
</li>
<li>
<a href="#">Tendances</a>
</li>
</ul>
</div>
<div class="col mb-3">
<p class="fw-bold text-uppercase fs-6">Newsletter</p>
<p>Inscrivez-vous à notre newsletter et recevez une réduction de 10% sur votre première commande.</p>
<form>
<div class="input-group mb-3">
<div class="form-floating">
<input type="email" class="form-control" id="newsletter" required="required" placeholder="[email protected]">
<label for="newsletter">Adresse email</label>
</div>
<button class="btn btn-dark" type="submit">S'inscrire <span class="visually-hidden">à la newsletter</span></button>
</div>
</form>
</div>
</div>
</div>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Soldes</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Le blog</a>
</li>
</ul>
<ul class="navbar-text flex-shrink list-inline mb-0">
<li class="list-inline-item">
<a href="search.html"><i class="bi bi-search" role="img" aria-label="Rechercher"></i></a>
</li>
<li class="list-inline-item">
<a href="#"><i class="bi bi-person" role="img" aria-label="Mon compte"></i></a>
</li>
<li class="list-inline-item">
<a href="#" class="position-relative">
<i class="bi bi-heart text-danger" role="img" aria-label="Mes favoris"></i>
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill text-bg-dark">0 <span class="visually-hidden">articles favoris</span></span>
</a>
</li>
<li class="list-inline-item">
<a href="cart.html" aria-current="page" class="position-relative">
<i class="bi bi-bag text-warning" role="img" aria-label="Mon panier"></i>
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill text-bg-dark">3 <span class="visually-hidden">articles dans le panier</span></span>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main role="main" class="bg-light">
<h1 class="visually-hidden">Commander</h1>
<div class="container py-5">
<div class="row row-cols-1 row-cols-lg-2">
<div class="col-lg-8 mb-3 order-2 order-lg-1">
<form class="needs-validation" novalidate>
<ul class="nav nav-tabs nav-tabs-light">
<li class="nav-item">
<a class="nav-link w-bold text-uppercase" href="cart.html">Adresse de Facturation</a>
</li>
<li class="nav-item">
<h2 class="nav-link w-bold text-uppercase active" href="#" aria-current="page">Adresse de livraison</h2>
</li>
</ul>
<div class="row gy-3 py-5">
<div class="col-6">
<span class="form-label"></label>
<input type="text" class="form-control" required="required" id="first name" placeholder="Prénom" value="">
<div class="invalid-feedback">
Champ vide
</div>
</div>
<div class="col-6">
<span class="form-label"></label>
<input type="text" aria-label="nom" class="form-control" required="required" id="last name" placeholder="Nom" value="">
<div class="invalid-feedback">
Champ vide
</div>
</div>
<div class="col-12">
<label for="email" class="form-label">Email</label>
<input type="mail" aria-invalid="true" class="form-control" id="mail" required="required" pattern="^@]+@^@]+\.[a-zA-Z]{2,6}" placeholder="exemple: [email protected]">
<div class="invalid-feedback">
erreur
</div>
</div>
<div class="col-12">
<label for="adresse" class="form-label">Adresse</label>
<input type="text" class="form-control" required="required" id="address" placeholder="exemple: 42 rue du handicap'" required="false">
<div class="invalid-feedback">
erreur de saisie, veuillez entrer une adresse valide
</div>
</div>
<div class="col-12">
<input type="text" class="form-control" id="adresse 2" placeholder="Adresse 2">
</div>
<div class="col-5">
<label for="Pays" class="form-label">Pays</label>
<select class="form-select" required="required" id="country">
<option value="">Sélectionner...</option>
<option>Bretagne</option>
<option>France</option>
<option>Belgique</option>
<option>Listenbourg</option>
</select>
<div class="invalid-feedback">
Sélectionner un pays
</div>
</div>
<div class="col-4">
<label for="Région" class="form-label">Région *</label>
<select class="form-select" id="state">
<option value="">Sélectionner</option>
<option>Bretagne libre</option>
<option>Autre</option>
</select>
<div class="invalid-feedback">
erreur
</div>
</div>
<div class="col-3">
<label for="Code postal" class="form-label">Code postal</label>
<input type="text" class="form-control" required="required" id="zip" placeholder="exemple: 95110">
<div class="invalid-feedback">
Veuillez indiquer un code postal valide
</div>
</div>
</div>
<h2 class="fw-bold text-uppercase">Informations de paiement</h2>
<div class="row gy-3 py-5">
<div class="col-6">
<label for="Nom présent sur la carte banquaire" class="form-label">Nom de la carte banquaire</label>
<input type="text" class="form-control" required="required" id="cc-name" placeholder="">
<small class="text-muted">Nom complet présent sur la carte banquaire.</small>
<div class="invalid-feedback">
Veuillez indiquer le nom complet présent sur la carte banquaire
</div>
</div>
<div class="col-6">
<label for="Numéro présent sur la carte banquaire" class="form-label">Numéro de carte bleu</label>
<input type="text" class="form-control" required="required" id="cc-number" placeholder="exemple: 4976 4562 2356 4578">
<small class="text-muted">Série de 16 chiffres indiqués sur la carte banquaire.</small>
<div class="invalid-feedback">
Veuillez indiquer les chiffres présent sur la carte banquaire
</div>
</div>
<div class="col-3">
<label for="Date d'expiration de la carte bleu" class="form-label">Expiration</label>
<input type="text" class="form-control" required="required" id="cc-expiration" placeholder="exemple: 06/24">
<div class="invalid-feedback">
Veuillez remplir ce champ
</div>
</div>
<div class="col-3">
<label for="nombre">Sélectionnez votre CVV entre 001 et 999:</label>
<input type="range" id="nombre" name="nombre" min="1" max="999" value="1" step="1" oninput="updateOutput(this.value)">
<output name="nombre" id="output">001</output>
<script>
var range = document.getElementById("nombre");
var output = document.getElementById("output");
output.innerHTML = ('00' + range.value).slice(-3);
range.oninput = function() {
output.innerHTML = ('00' + this.value).slice(-3);
}
function updateRange(event) {
var step = parseInt(range.getAttribute('step')) || 1;
var value = parseInt(range.value);
switch (event.keyCode) {
case 37: // flèche gauche
value -= step;
break;
case 39: // flèche droite
value += step;
break;
}
if (value < parseInt(range.min)) {
value = parseInt(range.min);
} else if (value > parseInt(range.max)) {
value = parseInt(range.max);
}
range.value = value;
output.innerHTML = ('00' + value).slice(-3);
}
range.addEventListener('keydown', updateRange);
</script>
<!-- <label for="Numéro de CVV présent au dos de la carte bleu" class="form-label">CVV</label>
<input type="text" class="form-control" id="cc-cvv" placeholder="exemple: 111">
<div class="invalid-feedback">
erreur
</div> -->
</div>
</div>
<button class="w-100 btn btn-primary btn-lg" type="submit">Valider le paiement</button>
</form>
</div>
<div class="col-lg-4 mb-3 order-1 order-lg-2">
<div class="fw-bold text-uppercase">Mon panier <span class="badge text-bg-dark rounded-pill align-top">3 <span class="visually-hidden">articles dans le panier</span></span></h2>
<ul class="list-group my-5">
<li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<p class="fw-bold product-name text-uppercase my-0">Sac cuir caramel</p>
<small class="text-muted">Brief description</small>
</div>
<span class="text-muted">63€</span>
</li>
<li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<p class="fw-bold product-name text-uppercase my-0">Sac cuir caramel</p>
<small class="text-muted">Brief description</small>
</div>
<span class="text-muted">$8</span>
</li>
<li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<p class="fw-bold product-name text-uppercase my-0">Sac cuir caramel</p>
<small class="text-muted">Brief description</small>
</div>
<span class="text-muted">$5</span>
</li>
<li class="list-group-item d-flex justify-content-between bg-light">
<div class="text-success">
<h6 class="my-0">Code promo</h6>
<small>MOINS10</small>
</div>
<span class="text-success">−$5</span>
</li>
<li class="list-group-item d-flex justify-content-between">
<span>Total (USD)</span>
<strong>$20</strong>
</li>
</ul>
<form class="card p-1 mb-5">
<div class="input-group">
<div class="form-floating">
<input type="text" class="form-control" id="promo-code" required="required" placeholder="Code promo">
<label for="promo-code">Code promo</label>
</div>
<button class="btn btn-dark" type="submit">Appliquer <span class="visually-hidden">le code</span></button>
</div>
</form>
</div>
</div>
</div>
</main>
<footer class="border-top" role="contentinfo">
<div class="bg-light">
<div class="container py-5">
<div class="visually-hidden">Pied de page</h2>
<div class="row row-cols-1 row-cols-lg-4">
<div class="col mb-3">
<p class="fs-3 fw-lighter" style="font-family: 'Montserrat', sans-serif;">A<span class="fw-bold">11</span>YCE</p>
<p>Cette boutique est factice et sert de support à des tests d'accessibilité numérique.</p>
<ul class="nav list-unstyled">
<li class="me-3"><a href="#"><i class="bi bi-twitter" role="img" aria-label="Twitterr"></i></a></li>
<li class="me-3"><a href="#"><i class="bi bi-instagram" role="img" aria-label="Instagram"></i></a></li>
<li class="me-3"><a href="#"><i class="bi bi-facebook" role="img" aria-label="Facebook"></i></a></li>
</ul>
</div>
<div class="col mb-3 order-3">
<h3 class="fw-bold text-uppercase fs-6">Informations pratiques</h3>
<div class="nav flex-column">
<a href="#">Qui sommes-nous ?</a>
<a href="#">Conditions générales de ventes</a>
<a href="#">Livraison</a>
<a href="#"><abbr title="Foire Aux Questions">FAQ</abbr></a>
<a href="#">Blog</a>
<a href="#">Nous contacter</a>
</div>
</div>
<div class="col mb-3 order-1">
<h3 class="fw-bold text-uppercase fs-6">Catégories</h3>
<div class="nav flex-column">
<a href="#">Femme</a>
<a href="#">Homme</a>
<a href="#">Accessoires</a>
<a href="#">Nouveautés</a>
<a href="#">Tendances</a>
</div>
</div>
<div class="col mb-3 order-2">
<h3 class="fw-bold text-uppercase fs-6">Newsletter</h3>
<p>Inscrivez-vous à notre newsletter et recevez une réduction de 10% sur votre première commande.</p>
<form>
<div class="input-group mb-3">
<div class="form-floating">
<input type="email" class="form-control" id="newsletter" required="required" placeholder="[email protected]">
<label for="newsletter">Adresse email</label>
</div>
<button class="btn btn-dark" type="submit">S'inscrire <span class="visually-hidden">à la newsletter</span></button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="container py-3">
Crédits photo <a href="https://burst.shopify.com">Burst</a>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
<script src="assets/js/toast.js"></script>
<script src="assets/js/slider.js"></script>
<script src="assets/js/validate.js"></script>
</body>
</html>