-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphotographer.html
More file actions
165 lines (155 loc) · 5.28 KB
/
Copy pathphotographer.html
File metadata and controls
165 lines (155 loc) · 5.28 KB
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
<!DOCTYPE html>
<html lang="fr">
<head>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/photographer.css" rel="stylesheet" type="text/css">
<meta charset="utf-8">
<link rel="icon" type="image/png" href="assets/favicon.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>Fisheye - photographe</title>
</head>
<body>
<header>
<!-- link home page added + aria-label -->
<a href="index.html" aria-label="Accéder à la page d'accueil">
<img src="assets/images/logo.png" class="logo" alt="Logo Fisheye">
</a>
</header>
<main>
<div class="photograph-header">
<!-- on supprime le bouton Contactez-moi du code html pour l'intégrer via le template photographer -->
<!-- <button class="contact_button" onclick="displayModal()">Contactez-moi</button> -->
</div>
<div id="sort">
<div class="dropdown">
<button
onclick="toggleOptions()"
class="dropbtn first-option"
aria-haspopup="true"
aria-label="Trier les médias par Popularité"
aria-current="true"
>
Popularité
</button>
<div id="myDropdown" class="dropdown-content">
<button
onclick="selectOption(0)"
aria-label="Trier les médias par Date"
>
Date
</button>
<button
onclick="selectOption(1)"
aria-label="Trier les médias par Titre"
>
Titre
</button>
</div>
</div>
</div>
<div class="gallery-container">
<div class="gallery"></div>
</div>
<!-- on ajoute l'encart avec le nb total de likes et le tarif/jour -->
<div class="insert">
<!-- <div class="total-likes">297 081 🖤</div>
<div class="price">300 € / jour</div> -->
</div>
</main>
<!-- MODAL FORMULAIRE -->
<div id="contact_modal">
<div
role="dialog"
class="modal"
tabindex="0"
aria-modal="true"
aria-hidden="true"
aria-labelledby="modal-heading"
>
<header>
<h2 id="modal-heading">Contactez-moi</h2>
<img
src="assets/icons/close.svg"
alt="Fermer la modale"
tabindex="0"
onclick="closeModal()"
>
</header>
<form
id="form-photographer"
name="contact-photographer"
action="photographer.html"
method="get"
novalidate
>
<!-- onsubmit="return validate();" -->
<div class="formData">
<label id="firstname-label" for="firstname">Prénom</label>
<input
class="text-control"
type="text"
id="firstname"
name="firstname"
pattern="[A-Za-zÀ-ÿ\-']+"
aria-labelledby="firstname-label"
autocomplete="given-name"
required
>
<!-- Adding a span error-"field" in order to send an error text message if needed -->
<span id="error-firstname" role="alert" aria-live="polite"></span>
</div>
<div class="formData">
<label id="lastname-label" for="lastname">Nom</label>
<input
type="text"
id="lastname"
name="lastname"
pattern="[A-Za-zÀ-ÿ\-']+"
aria-labelledby="lastname-label"
autocomplete="family-name"
required
>
<span id="error-lastname" role="alert" aria-live="polite"></span>
</div>
<div class="formData">
<label id="email-label" for="email">E-mail</label>
<input
type="email"
id="email"
name="email"
aria-labelledby="email-label"
autocomplete="email"
required
>
<span id="error-email" role="alert" aria-live="polite"></span>
</div>
<div class="formData">
<label id="message-label" for="message">Votre message</label>
<textarea
id="message"
name="message"
rows="6"
aria-labelledby="message-label"
required
></textarea>
<span id="error-message" role="alert" aria-live="polite"></span>
</div>
<button
class="contact_button"
type="submit"
aria-label="Envoyer le formulaire"
>
Envoyer
</button>
</form>
</div>
</div>
<div class="lightbox"></div>
<script src="scripts/pages/photographer.js"></script>
<script src="scripts/templates/photographer.js"></script>
<script src="scripts/factories/MediaFactory.js"></script>
<script src="scripts/utils/filter.js"></script>
<script src="scripts/utils/lightBox.js"></script>
<script src="scripts/utils/contactForm.js"></script>
</body>
</html>