forked from todtsies/Project-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
302 lines (263 loc) · 12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Foo Bar Finder</title>
<!-- Bootstrap -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
crossorigin="anonymous"
/>
<!-- Font Awesome CDN -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"
integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w=="
crossorigin="anonymous"
/>
<!-- Custom Stylesheet-->
<link rel="stylesheet" href="assets/style.css" />
</head>
<body>
<main>
<!-- RECIPE SIDE -->
<section id="food-side">
<!-- HEADER -->
<header class="bg-success px-1 py-2 mb-3 text-white">
<div class="container d-flex justify-content-between align-items-center">
<h1 class="m-0">
<i class="fas fa-utensils mr-1"></i>
FOO
</h1>
<div class="button-section">
<button class="btn button-outline-success active button-single button-left" data-mode="recipes">
Food
</button>
<button class="btn button-outline-info button-single button-right" data-mode="drinks">
Drinks
</button>
</div>
</div>
</header>
<!-- MAIN RECIPES CONTENT CONTAINER -->
<div id="content" class="container mb-5">
<div class="row">
<!-- RECIPES FORM -->
<div class="col-12 col-md-4 col-xl-3">
<form class="mb-3 p-3 rounded list-group-item-success">
<p class="h5 m-0">Choose an Option:</p>
<hr>
<label for="ingredient-input" class="mb-1">
Option 1: Input an Ingredient
</label>
<input type="text" id="recipe-ingredient" class="form-control mb-3 ingredient"/>
<label for="category" class="mb-1">
Option 2: Select a Category
</label>
<select id="recipe-categories" class="form-control mb-3 category">
<option id="select" value="" selected>
Select...
</option>
<option id="category-beef">Beef</option>
<option id="category-breakfast">Breakfast</option>
<option id="category-chicken">Chicken</option>
<option id="category-dessert">Dessert</option>
<option id="category-goat">Goat</option>
<option id="category-lamb">Lamb</option>
<option id="category-misc">Miscellaneous</option>
<option id="category-pasta">Pasta</option>
<option id="category-pork">Pork</option>
<option id="category-seafood">Seafood</option>
<option id="category-side">Side</option>
<option id="category-starter">Starter</option>
<option id="category-vegan">Vegan</option>
<option id="category-vegetarian">Vegetarian</option>
</select>
<hr />
<button id="search" type="button" class="btn btn-success btn-block search-btn" data-mode="recipes">
Get Recipes!
</button>
<button id="save-recipe" type="button" class="btn btn-success btn-block save-recipe-btn" data-mode="recipes">
Save Recipe
</button>
</form>
<!-- SAVED RECIPES CONTAINER: COLLAPSIBLE -->
<div class="saved-recipes list-group-item-success rounded p-3 mb-3">
<div id="saved-recipes-header" data-toggle="collapse" data-target="#saved-recipes" aria-expanded="false" aria-controls="saved-recipes">
<p class="h5 m-0">
<i id="recipe-arrow" class="fas fa-chevron-down mr-1" data-direction="down"></i>
Saved Recipes
</p>
</div>
<div id="saved-recipes" class="collapse mt-3">
<div id="saved-recipes-container">
<!-- SAVED RECIPES DYNAMICALLY INSERTED HERE -->
</div>
<hr>
<button id="delete-recipes" class="btn btn-block btn-success my-1">
<i class="fas fa-trash-alt mr-1"></i>
Delete Recipes
</button>
</div>
</div>
</div>
<!-- RECIPE DATA -->
<div class="col-12 col-md-8 col-xl-9">
<div class="card">
<!-- RECIPE TITLE + CYCLE BUTTONS-->
<div class="card-header list-group-item-success d-flex justify-content-between">
<p class="h3 m-0 cycle-backward">
<i class="fas fa-angle-left"></i>
</p>
<p id="recipe-title" class="h3 m-0 text-center"></p>
<p class="h3 m-0 cycle-forward">
<i class="fas fa-angle-right"></i>
</p>
</div>
<div class="row card-body">
<!-- RECIPE THUMBNAIL -->
<div class="col-12 col-lg-6">
<img id="recipe-thumbnail" src="" alt="" class="img-fluid rounded" />
</div>
<!-- RECIPE INGREDIENTS + DETAILS -->
<div class="col-12 col-lg-6">
<ul id="recipe-info" class="list-group list-group-flush mt-3 mt-lg-0 text-center text-lg-left">
<!-- INGREDIENTS AND DETAILS DYNAMICALLY INSERTED HERE -->
</ul>
</div>
</div>
<!-- RECIPE INSTRUCTIONS -->
<div id="drawer" class="collapse">
<div class="card-footer">
<p id="recipe-instructions"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- DRINKS SIDE -->
<section id="drinks-side">
<!-- HEADER -->
<header class="bg-info px-1 py-2 mb-3 text-white">
<div class="container d-flex justify-content-between align-items-center">
<h1 class="m-0">
<i class="fas fa-cocktail mr-1"></i>
BAR
</h1>
<div class="button-section">
<button class="btn button-outline-info button-single button-left" data-mode="recipes">
Food
</button>
<button class="btn button-outline-success active button-single button-right" data-mode="drinks">
Drinks
</button>
</div>
</div>
</header>
<!-- MAIN DRINKS CONTENT CONTAINER -->
<div id="content" class="container mb-5">
<div class="row">
<!-- DRINKS FORM-->
<div class="col-12 col-md-4 col-xl-3">
<form class="mb-3 p-3 rounded list-group-item-info">
<label for="ingredient-input" class="mb-1">
Option 1: Input a Liquor
</label>
<input type="text" id="drink-ingredient" class="form-control mb-3 ingredient"/>
<label for="category" class="mb-1">
Option 2: Select a Category
</label>
<select id="drink-categories" class="form-control mb-3 catergory">
<option id="select" value="" selected>
Select...
</option>
<option id="category-ordinary">Ordinary Drink</option>
<option id="category-cocktail">Cocktail</option>
<option id="category-homemade-liqueur">Homemade Liqueur</option>
<option id="category-beer">Beer</option>
</select>
<hr />
<button id="search" type="button" class="btn btn-info btn-block search-btn" data-mode="drinks">
Get Drinks!
</button>
<button id="save-drink" type="button" class="btn btn-info btn-block save-drink-btn" data-mode="drinks">
Save Drink
</button>
</form>
<!-- SAVED DRINKS CONTAINER: COLLAPSIBLE -->
<div class="saved-drinks list-group-item-info rounded p-3 mb-3">
<div id="saved-drinks-header" data-toggle="collapse" data-target="#saved-drinks" aria-expanded="false" aria-controls="saved-drinks">
<p class="h5 m-0">
<i id="drink-arrow" class="fas fa-chevron-down mr-1" data-direction="down"></i>
Saved Drinks
</p>
</div>
<div id="saved-drinks" class="collapse mt-3">
<div id="saved-drinks-container">
<!-- SAVED DRINKS DYNAMICALLY INSERTED HERE -->
</div>
<hr>
<button id="delete-drinks" class="btn btn-block btn-info my-1">
<i class="fas fa-trash-alt mr-1"></i>
Delete Drinks
</button>
</div>
</div>
</div>
<!-- DRINKS DATA -->
<div class="col-12 col-md-8 col-xl-9">
<div class="card">
<!-- DRINK TITLE + CYCLE BUTTONS -->
<div class="card-header list-group-item-info d-flex justify-content-between">
<p class="h3 m-0 cycle-backward">
<i class="fas fa-angle-left"></i>
</p>
<p id="drink-title" class="h3 m-0"></p>
<p class="h3 m-0 cycle-forward">
<i class="fas fa-angle-right"></i>
</p>
</div>
<div class="row card-body">
<!-- DRINK THUMBNAIL -->
<div class="col-12 col-lg-6">
<img id="drink-thumbnail" src="" alt="" class="img-fluid rounded" />
</div>
<!-- DRINK INGREDIENTS + DETAILS -->
<div class="col-12 col-lg-6">
<!-- API Response: Ingredients -->
<ul id="drink-info" class="list-group list-group-flush mt-3 mt-lg-0 text-center text-lg-left">
<!-- DRINKS AND DETAILS DYNAMICALLY INSERTED HERE -->
</ul>
</div>
</div>
<!-- DRINK INSTRUCTIONS -->
<div id="drawer" class="collapse">
<div class="card-footer">
<p id="drink-instructions"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- FOOTER -->
<footer id="sticky-footer" class="fixed-bottom bg-success py-3">
<p class="h6 text-white text-center m-0">© Copyright 2021</p>
</footer>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<!-- Popper.js -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script>
<!-- App Script -->
<script src="assets/script.js"></script>
</body>
</html>