-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
349 lines (285 loc) · 13.3 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>RecipEZ</title>
<link
rel="shortcut icon"
href="./assets/images/favicon.png"
type="image/x-icon"
/>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link
href="https://fonts.googleapis.com/css?family=Open+Sans"
rel="stylesheet"
/>
<!-- Bulma Version 0.9.0 -->
<link
rel="stylesheet"
href="https://unpkg.com/bulma@0.9.0/css/bulma.min.css"
/>
<link
rel="stylesheet"
href="https://unpkg.com/bulma-modal-fx/dist/css/modal-fx.min.css"
/>
<!-- landing css -->
<link rel="stylesheet" type="text/css" href="./assets/css/landing.css" />
</head>
<body>
<section class="hero is-info is-medium is-bold">
<div class="hero-head">
<nav class="navbar">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="../">
<img
src="./assets/images/recipEZ.png"
alt="RecipEZ logo"
/>
</a>
</div>
<div id="navbarMenu" class="navbar-menu">
<div class="navbar-end">
<div class="tabs is-right">
<ul>
<li class="is-active"><a>Home</a></li>
<li><a href="">Recipes</a></li>
<li><a href="./assets/subPages/about-us.html">About Us</a></li>
<li><a href="">Contact Us</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
</div>
<div class="hero-body">
</div>
</section>
<div class="box cta">
<p class="has-text-centered">
<span class="tag is-primary">New</span> Searching for a recipe has never been easier! Search by category, ingredient, or recipe name to see what we suggest!
</p>
</div>
<!-- quick search form -->
<label for="sort">Quick Search:</label>
<select name="sort" id="sort">
<option value="recipe">Recipe</option>
<option value="drink">Drink</option>
<input type="text" id="searchInput" name="sort" placeholder="Search Recipes">
</select>
<button id="submit-btn">Search</button>
<button id="clear">Clear Search</button>
<!-- advanced search for recipes -->
<details style="margin: 25px;">
<summary> Advanced Search Options:</summary>
<form name="advanced-recipe-search" action="">
<h4>Any fields left blank will not be used in the search parameters.</h4>
<!-- same parameter as general search -->
<label for="key-word">Search Key Word</label>
<input id="key-word" type="text" name="key-word" placeholder="General search terms">
<br/>
<!-- include cuisine type search - make this one a drop down menu -->
<details id="cuisine">
<summary>Select any specific cuisine types you would like to search for</summary>
<label for="african">African</label>
<input id="african" type="radio" name="cuisine"><br/>
<label for="american">American</label>
<input id="american" type="radio" name="cuisine"> <br/>
<label for="british">British</label>
<input id="british" type="radio" name="cuisine"> <br/>
<label for="cajun">Cajun</label>
<input id="cajun" type="radio" name="cuisine"> <br/>
<label for="caribbean">Caribbean</label>
<input id="caribbean" type="radio" name="cuisine"> <br/>
<label for="chinese">Chinese</label>
<input id="chinese" type="radio" name="cuisine"> <br/>
<label for="eastern-european">Eastern European</label>
<input id="eastern-european" type="radio" name="cuisine"> <br/>
<label for="european">European</label>
<input id="european" type="radio" name="cuisine"> <br/>
<label for="french">French</label>
<input id="french" type="radio" name="cuisine"> <br/>
<label for="german">German</label>
<input id="german" type="radio" name="cuisine"> <br/>
<label for="greek">Greek</label>
<input id="greek" type="radio" name="cuisine"> <br/>
<label for="irish">Irish</label>
<input id="irish" type="radio" name="cuisine"> <br/>
<label for="italian">Italian</label>
<input id="italian" type="radio" name="cuisine"> <br/>
<label for="japanese">Japanese</label>
<input id="japanese" type="radio" name="cuisine"> <br/>
<label for="jewish">Jewish</label>
<input id="jewish" type="radio" name="cuisine"> <br/>
<label for="korean">Korean</label>
<input id="korean" type="radio" name="cuisine"><br/>
<label for="latin-american">Latin American</label>
<input id="latin-american" type="radio" name="cuisine"><br/>
<label for="mediterranean">Mediterranean</label>
<input id="mediterranean" type="radio" name="cuisine"><br/>
<label for="mexican">Mexican</label>
<input id="mexican" type="radio" name="cuisine"><br/>
<label for="middle-eastern">Middle Eastern</label>
<input id="middle-eastern" type="radio" name="cuisine"><br/>
<label for="nordic">Nordic</label>
<input id="nordic" type="radio" name="cuisine"><br/>
<label for="southern">Southern</label>
<input id="southern" type="radio" name="cuisine"><br/>
<label for="thai">Thai</label>
<input id="thai" type="radio" name="cuisine"><br/>
<label for="vietnamese">Vietnamese</label>
<input id="vietnamese" type="radio" name="cuisine"><br/>
<br/>
</details>
<!-- intolerance's/allergies make this one a checkbox or radial selection type -->
<details id="intolerance">
<summary>Select any ingredients you would like to exclude for allergies.</summary>
<label for="dairy">Dairy</label>
<input id="dairy" type="radio" name="dairy"><br/>
<label for="egg">Egg</label>
<input id="egg" type="radio" name="egg"><br/>
<label for="gluten">Gluten</label>
<input id="gluten" type="radio" name="gluten"><br/>
<label for="grain">Grain</label>
<input id="grain" type="radio" name="grain"><br/>
<label for="peanut">Peanut</label>
<input id="peanut" type="radio" name="peanut"><br/>
<label for="seafood">Seafood</label>
<input id="seafood" type="radio" name="seafood"><br/>
<label for="sesame">Sesame</label>
<input id="sesame" type="radio" name="sesame"><br/>
<label for="shellfish">Shellfish</label>
<input id="shellfish" type="radio" name="shellfish"><br/>
<label for="soy">Soy</label>
<input id="soy" type="radio" name="soy"><br/>
<label for="sulfite">Sulfite</label>
<input id="sulfite" type="radio" name="sulfite"><br/>
<label for="tree-nut">Tree Nut</label>
<input id="tree-nut" type="radio" name="tree-nut"><br/>
<label for="wheat">Wheat</label>
<input id="wheat" type="radio" name="wheat"><br/>
</details>
<!-- include ingredients, search for recipes containing specific ingredients -->
<label for="include-ingredients">Ingredients to include, list ingredients separated by a comma.</label>
<input id="include-ingredients" type="text" name="include-ingredients" placeholder="Chicken, Broccoli, Carrots, ect.">
<br/>
<!-- exclude ingredients - anything the recipe must not have -->
<label for="exclude-ingredients">Ingredients to exclude</label>
<input id="exclude-ingredients" type="text" name="exclude-ingredients" placeholder="Anything you dont want the recipes to include">
<br/>
<!-- meal type - check boxes or buttons of some kind -->
<details id="meal-type">
<summary>Meal Types</summary>
<label for="main-course">Main Course</label>
<input id="main-course" type="radio" name="meal-type"><br/>
<label for="side-dish">Side Dish</label>
<input id="side-dish" type="radio" name="meal-type"><br/>
<label for="dessert">Dessert</label>
<input id="dessert" type="radio" name="meal-type"><br/>
<label for="appetizer">Appetizer</label>
<input id="appetizer" type="radio" name="meal-type"><br/>
<label for="salad">Salad</label>
<input id="salad" type="radio" name="meal-type"><br/>
<label for="bread">Bread</label>
<input id="bread" type="radio" name="meal-type"><br/>
<label for="breakfast">Breakfast</label>
<input id="breakfast" type="radio" name="meal-type"><br/>
<label for="soup">soup</label>
<input id="soup" type="radio" name="meal-type"><br/>
<label for="beverage">Beverage</label>
<input id="beverage" type="radio" name="meal-type"><br/>
<label for="sauce">Sauce</label>
<input id="sauce" type="radio" name="meal-type"><br/>
<label for="marinade">Marinade</label>
<input id="marinade" type="radio" name="meal-type"><br/>
<label for="fingerfood">Finger Food</label>
<input id="fingerfood" type="radio" name="meal-type"><br/>
<label for="snack">Snack</label>
<input id="snack" type="radio" name="meal-type"><br/>
<label for="drink">Drink</label>
<input id="drink" type="radio" name="meal-type"><br/>
</details>
<!-- Max prep time - input field that only accepts numbers in minutes -->
<label for="max-prep">Max prep time (in minutes)</label>
<input id="max-prep" type="text" name="max-prep" placeholder="Example: 30">
<br/>
<!-- max carbs - numerical input in grams -->
<label for="max-carbs">Max Carbs</label>
<input id="max-carbs" type="text" name="max-carbs" placeholder="Maximum amount of carbs in grams">
<br/>
<!-- max calories - numerical input field -->
<label for="max-cal">Max Calories</label>
<input id="max-cal" type="text" name="max-cal" placeholder="Max number of calories per serving">
<br/>
<!-- max sugar -->
<label for="max-sugar">Max Sugar</label>
<input id="max-sugar" type="text" name="max-sugar" placeholder="Max sugar per serving (grams)">
<br/>
<!-- number of results to return between 1 and 100 -->
<label for="max-results">How many recipes to return</label>
<input id="max-results" type="text" name="max-results" placeholder="Number of recipes from 1-100">
<br/>
<!-- sort results option - make this a drop down menu -->
<label for="sort">Sort Results By:</label>
<select name="sort" id="sort">
<option value="popularity">Popularity</option>
<option value="time">Time</option>
<option value="random">Random</option>
<option value="calories">Calories</option>
</select>
<br/>
<button type="button" id="adv-search-btn">Search</button>
</form>
</details>
<!-- featured or favorite recipes that generate when the page loads
<div class="container columns" id="">
<div class="column is-full" id="">
cards load here
</div>
</div>-->
<!-- search results -->
<div class="container columns" id="recipeContainer">
<div class="container columns is-full" id="searchResults">
<!-- cards load here -->
</div>
</div>
<!-- drink cards -->
<div class="container columns" id="drinkContainer">
<div class="column is-full" id="drinkSearchResults">
<!-- cards load here -->
</div>
</div>
<!-- spare
<div class="container columns" id="">
<div class="column is-full" id="">
<cards load here
</div>
</div>-->
<!-- footer -->
<footer class="footer">
<div class="container">
<div class="columns">
<div class="column is-3 is-offset-2">
<h2><strong>Navigation</strong></h2>
<ul>
<li><a href="#">To the top</a></li>
<li><a href="">Recipe</a></li>
<li><a href="./assets/subPages/about-us.html">About Us</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="./assets/js/script.js"></script>
<script src="./assets/js/advancedFoodSearch.js"></script>
</body>
</html>