-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
255 lines (255 loc) · 13 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
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html lang="fr">
<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>Les Petits Plats</title>
<meta name="description" content="Plus de 1500 recettes de cuisine !">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Anton&family=Manrope:wght@400;500&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/bed4092e49.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- Header -->
<header class="header-site position-absolute top-0 start-0 w-100">
<div class="container-xxl w-90 py-5 bg-transparent">
<nav class="navbar navbar-expand-lg py-0" aria-label="Navigation principale">
<a href="/" class="navbar-brand">
<img src="./assets/images/logo.png" alt="Les Petits Plats, page d'accueil" width="180" height="22">
</a>
</nav>
</div>
</header>
<!-- Main -->
<main>
<!-- Banner section -->
<section class="banner h-70vh">
<div class="d-flex justify-content-center position-relative w-100 h-100 pt-6">
<div class="container position-relative d-flex flex-column justify-content-center align-items-center mw-900px w-90 px-0">
<h1 class="d-flex flex-column align-items-center font-monospace text-uppercase text-primary mb-4">
<span class="d-inline-block">
Cherchez parmi plus de 1500 recettes
</span>
<span class="d-inline-block">
du quotidien, simples et délicieuses
</span>
</h1>
<form id="main_search" action="#" role="search" class="position-relative d-flex align-items-center w-100 main-search">
<input
id="recipes_search"
name="recipes_search"
class="form-control form-control-lg fs-6 ps-4 p-4 text-tertiary bg-white"
type="search"
placeholder="Rechercher une recette, un ingrédient..."
aria-label="Rechercher une recette, un ingrédient">
<button type="button" class="btn-close d-none position-absolute end-10" aria-label="Supprimer cet ingrédient">
</button>
<label
for="recipes_search"
tabindex="0"
class="position-absolute end-0 me-2 p-3 btn btn-secondary btn-outline-primary">
<svg
role="img"
xmlns="http://www.w3.org/2000/svg"
width="25"
height="25"
fill="#EDEDED"
class="bi bi-search"
viewBox="0 0 16 16"
aria-labelledby="search_label">
<title id="search_label">Rechercher une recette, un ingrédient</title>
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
</svg>
</label>
</form>
<span class="error-message d-inline-block fs-7 fw-bold m-2 p-3 rounded-3 text-primary bg-transparent"></span>
</div>
<div class="position-absolute top-0 start-0 z-n1 w-100 h-100">
<img
decoding="async"
width="1400"
height="1120"
class="object-fit-cover w-100 mh-100"
srcset="
./assets/images/showcase/vedette.jpg 576w,
./assets/images/showcase/vedette_768.jpg 768w,
./assets/images/showcase/vedette_992.jpg 992w,
./assets/images/showcase/vedette_1400.jpg 1400w"
sizes="(max-width: 1400px) 100vw, 1400px"
src="./assets/images/showcase/vedette_1400.jpg"
alt="">
</div>
</div>
</section> <!-- End Banner section -->
<!-- Recipes wrapper section -->
<div class="recipes-wrapper">
<div class="container-xxl w-90 px-0 py-4">
<!-- Filters -->
<div class="row d-flex align-items-center mb-5">
<div class="col-10">
<!-- Select boxes -->
<div class="row advanced-filters">
<!-- Ingredients dropdown -->
<div class="col-12 col-md-4 col-lg-2 col-xl-3">
<div class="position-relative mb-3">
<button
class="btn btn-lg d-flex justify-content-between w-100 py-3 border-white bg-white"
data-bs-toggle="dropdown"
role="combobox"
aria-haspopup="listbox"
aria-expanded="false"
aria-controls="ingredients_list"
aria-label="Trier par ingrédient">
Ingrédients
<span class="fa-solid fa-chevron-down mt-1" aria-hidden="true"></span>
</button>
<select id="ingredients" name="ingredients" class="form-select position-absolute top-0 start-50 z-n1 w-1 h-100 p-0 opacity-0" title="Sélectionner" aria-label="Tri par ingrédient">
</select>
<ul
id="ingredients_list"
role="listbox"
class="dropdown-menu w-100 h-300px m-auto border-top-0 overflow-hidden bg-white border-white">
<li class="display-inline position-relative pb-3">
<label
for="search_ingredient"
class="position-absolute z-n1 opacity-0">
Tri par ingrégrient
</label>
<input
id="search_ingredient"
type="search"
class="form-control w-90 mx-auto rounded-0 opacity-50 bg-white"
aria-label="Filtrer par ingrégrient">
<button type="button" class="btn-close d-none position-absolute bottom-50 end-20 badge opacity-50" aria-label="Supprimer cet ingrédient">
</button>
<span class="fa-solid fa-magnifying-glass text-black-50 position-absolute bottom-50 end-10 z-1 bg-white" aria-hidden="true"></span>
</li>
</ul>
</div>
</div> <!-- End Ingredients dropdown -->
<!-- Appliances dropdown -->
<div class="col-12 col-md-4 col-lg-2 col-xl-3">
<div class="position-relative mb-3">
<button
class="btn btn-lg d-flex justify-content-between w-100 py-3 border-white bg-white"
data-bs-toggle="dropdown"
role="combobox"
aria-haspopup="listbox"
aria-expanded="false"
aria-controls="appliances_list"
aria-label="Trier par appareil">
Appareils
<span class="fa-solid fa-chevron-down mt-1" aria-hidden="true"></span>
</button>
<select id="appliances" name="appliances" class="form-select position-absolute top-0 start-50 z-n1 w-1 h-100 p-0 opacity-0" title="Sélectionner" aria-label="Tri par appareil">
</select>
<ul
id="appliances_list"
role="listbox"
class="dropdown-menu w-100 h-300px m-auto border-top-0 overflow-hidden bg-white border-white">
<li class="display-inline position-relative pb-3">
<label
for="search_appliance"
class="position-absolute z-n1 opacity-0">
Tri par appareil
</label>
<input
id="search_appliance"
type="search"
class="form-control w-90 mx-auto rounded-0 opacity-50 bg-white"
aria-label="Filtrer par appareil">
<button type="button" class="btn-close d-none position-absolute bottom-50 end-20 badge opacity-50" aria-label="Supprimer cet appareil">
</button>
<span class="fa-solid fa-magnifying-glass text-black-50 position-absolute bottom-50 end-10 z-1 bg-white" aria-hidden="true"></span>
</li>
</ul>
</div>
</div> <!-- End Appliances dropdown -->
<!-- Ustensils dropdown -->
<div class="col-12 col-md-4 col-lg-2 col-xl-3">
<div class="position-relative mb-3 ">
<button
class="btn btn-lg d-flex justify-content-between w-100 py-3 border-white bg-white"
data-bs-toggle="dropdown"
role="combobox"
aria-haspopup="listbox"
aria-expanded="false"
aria-controls="ustensils_list"
aria-label="Trier par ustensile">
Ustensiles
<span class="fa-solid fa-chevron-down mt-1" aria-hidden="true"></span>
</button>
<select id="ustensils" name="ustensils" class="form-select position-absolute top-0 start-50 z-n1 w-1 h-100 p-0 opacity-0" title="Sélectionner" aria-label="Tri par ustensile">
</select>
<ul
id="ustensils_list"
role="listbox"
class="dropdown-menu w-100 h-300px m-auto border-top-0 overflow-hidden bg-white border-white">
<li class="display-inline position-relative pb-3">
<label
for="search_ustensil"
class="position-absolute z-n1 opacity-0">
Tri par ustensile
</label>
<input
id="search_ustensil"
type="search"
class="form-control w-90 mx-auto rounded-0 opacity-50 bg-white"
aria-label="Filtrer par ustensile">
<button type="button" class="btn-close d-none position-absolute bottom-50 end-20 badge opacity-50" aria-label="Supprimer cet ustensile">
</button>
<span class="fa-solid fa-magnifying-glass text-black-50 position-absolute bottom-50 end-10 z-1 bg-white" aria-hidden="true"></span>
</li>
</ul>
</div>
</div> <!-- End Ustensils dropdown -->
</div> <!-- End Select boxes -->
<!-- Filtered tags -->
<div class="row">
<div class="col-12">
<ul id="filter_tags" class="list-group list-group-horizontal d-flex flex-wrap gap-3">
</ul>
</div>
</div> <!-- End Filtered tags -->
</div>
<!-- Total number of recipes -->
<div class="recipes-counter col-12 col-md-12 col-lg-2 align-self-start text-end font-monospace fs-4">
</div> <!-- End Total number of recipes -->
</div> <!-- End Filters -->
<!-- Cards -->
<div class="recipe-cards row row-cols-1 row-cols-md-2 row-cols-lg-3 g-5 pb-7">
</div> <!-- End Cards -->
</div>
</div> <!-- End Recipes wrapper section -->
</main>
<!-- Bootstrap -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-fbbOQedDUMZZ5KreZpsbe1LCZPVmfTnH7ois6mU1QK+m14rQ1l2bGBq41eYeM/fS" crossorigin="anonymous"></script>
<!-- Factories -->
<script src="js/factories/RecipeFactories.js"></script>
<!-- Models -->
<script src="js/models/Recipe.js"></script>
<!-- Api -->
<script src="js/api/Api.js"></script>
<script src="js/api/DataApi.js"></script>
<!-- Templates -->
<script src="js/templates/ItemDropdown.js"></script>
<script src="js/templates/ActiveTag.js"></script>
<script src="js/templates/RecipeCard.js"></script>
<!-- Pages -->
<script src="js/pages/RecipesPage.js"></script>
<!-- components -->
<script src="/js/components/MainSearchBar.js"></script>
<script src="/js/components/MainSearchBarMatches.js"></script>
<script src="/js/components/AdvancedFilterSearchBar.js"></script>
<script src="/js/components/DropdownList.js"></script>
<script src="/js/components/FilterTags.js"></script>
<!-- utils -->
<script src="/js/utils/RecipesCounter.js"></script>
<!-- Entry point -->
<script src="js/RecipesApp.js"></script>
</body>
</html>