forked from OpenClassrooms-Student-Center/GameOn-website-FR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
170 lines (136 loc) · 7.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Reservation</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="css/modal.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=DM+Sans" rel="stylesheet"/>
</head>
<body>
<!--logo Game on-->
<div class="topnav" id="myTopnav">
<div class="header-logo"><img alt="logo" src="images/Logo.png" /></div>
<!--Nav acceuil-->
<div class="main-navbar">
<a href="#" class="active"><span>Accueil</span></a>
<a href="#"><span>Détails de l'évènement</span></a>
<a href="#"><span>À propos</span></a>
<a href="#"><span>Contact</span></a>
<a href="#"><span>Évènements passés</span></a>
<a href="javascript:void(0);" class="icon" onclick="editNav()">
<i class="fa fa-bars"></i>
</a>
</div>
</div>
<main>
<!--Titre et informations-->
<div class="hero-section">
<div class="hero-content">
<h1 class="hero-headline">Marathon national<br>de jeux vidéos</h1>
<p class="hero-text">Vous aimez jouer ? Notre prochain évènement gaming est ouvert
aux réservations... Places limitées !</p>
<button class="btn-signup modal-btn">je m'inscris</button>
</div>
<div class="hero-img"><img src="images/bg_img.jpg" alt="img" /></div>
<button class="btn-signup modal-btn">je m'inscris</button>
</div>
<div class="bground">
<!--Fenêtre du formulaire de reservation-->
<div class="content">
<span class="close"></span>
<div class="modal-body">
<!--Formulaire de reservation-->
<form name="reserve" id="reserve" action="index.html" method="get" onsubmit="return validate(this);">
<div class="formData" >
<label for="first">Prénom</label><br>
<input class="text-control" type="text" id="first" name="first" minlength="2" value="" data-error-visible=""/>
<br>
<!--Pour afficher le message d'erreur -->
<span class="error" id="first_error"></span>
</div>
<div class="formData">
<label for="last">Nom</label><br>
<input class="text-control" type="text" id="last" name="last" minlength="2" value="" data-error-visible=""/>
<br>
<span class="error" id="last_error"></span>
</div>
<div class="formData">
<!--pattern=".+@globex\.com"-->
<label for="email">E-mail</label>
<br>
<input class="text-control" type="email" id="email" name="email" placeholder="nomutilisateur@example.com" minlength="3" maxlength="64" />
<br>
<span class="error" id="email_error"></span>
</div>
<div class="formData">
<label for="birthdate">Date de naissance</label><br>
<input class="text-control" type="date" id="birthdate" name="birthdate" data-error-visible=""/>
<br>
<span class="error" id="birthdate_error"></span>
</div>
<div class="formData">
<label for="quantity">À combien de tournois GameOn avez-vous déjà participé ?</label><br>
<input type="text" class="text-control" id="quantity" name="quantity" data-error-visible=""/>
<br>
<span class="error" id="quantity_error"></span>
</div>
<!-- l'ajout des éléments <fieldset> et <legend> permettent de grouper les options à la fois pour la mise en forme et pour
assurer une meilleure sémantique du document-->
<fieldset>
<legend class="text-label">Quelles villes ?</legend>
<div class="formData">
<input class="checkbox-input" type="radio" id="location1" name="location" value="New York" data-error-visible=""/>
<label class="checkbox-label" for="location1"><span class="checkbox-icon"></span>New York</label>
<input class="checkbox-input" type="radio" id="location2" name="location" value="San Francisco" data-error-visible=""/>
<label class="checkbox-label" for="location2"><span class="checkbox-icon"></span>San Francisco</label>
<input class="checkbox-input" type="radio" id="location3" name="location" value="Seattle" data-error-visible=""/>
<label class="checkbox-label" for="location3"><span class="checkbox-icon"></span>Seattle</label>
<input class="checkbox-input" type="radio" id="location4" name="location" value="Chicago" data-error-visible=""/>
<label class="checkbox-label" for="location4"><span class="checkbox-icon"></span>Chicago</label>
<input class="checkbox-input" type="radio" id="location5" name="location" value="Boston" data-error-visible=""/>
<label class="checkbox-label" for="location5"><span class="checkbox-icon"></span>Boston</label>
<input class="checkbox-input" type="radio" id="location6" name="location" value="Portland" data-error-visible=""/>
<label class="checkbox-label" for="location6"><span class="checkbox-icon"></span>Portland</label>
<br>
<span class="error" id="radio_error"></span>
</div>
</fieldset>
<div class="formData">
<input class="checkbox-input" type="checkbox" id="checkbox1" name="conditions_generales" data-error-visible=""/>
<label class="checkbox2-label" for="checkbox1">
<span class="checkbox-icon" ></span>
J'ai lu et accepté les conditions d'utilisation.
</label>
<br>
<span class="error" id="conditions_generales_error"></span>
<input class="checkbox-input" type="checkbox" id="checkbox2" name="souscribe"/>
<label class="checkbox2-label" for="checkbox2"><span class="checkbox-icon"></span>Je souhaite être prévenu des prochains évènements.</label>
<br>
</div>
<input class="btn-submit " type="submit" value="C'est parti"/>
</form>
</div>
</div>
</div>
<!-- message de confirmation -->
<div class="confirmation-overlay">
<div class="confirmation-overlay-message">
<span class="confirmation-message-icon-close"></span>
<p>
Merci !
<br>
Votre réservation a été reçue.
</p>
</div>
<button class="confirmation-message-btn-close">Fermer</button>
</div>
</main>
<footer>
<p class="copyrights">Copyright 2014 - 2020, GameOn Inc.</p>
</footer>
<script src="js/modal.js"></script>
<script src="js/form_validation.js"></script>
</body>
</html>