-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
285 lines (278 loc) · 9.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>The Baratie</title>
<meta
name="description"
content="The Baratie app let's you browse recipes provided by TheMealDB API"
/>
<meta name="author" content="Chirag-S-Kotian" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="//fonts.googleapis.com/css?family=Raleway:400,300,600"
rel="stylesheet"
type="text/css"
/>
<link
href="https://fonts.googleapis.com/css?family=Roboto+Slab&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/skeleton.css" />
<link rel="stylesheet" href="css/app.css" />
<link rel="icon" type="image/png" href="images/favicon.png" />
</head>
<body>
<main role="main" id="main">
<header>
<nav class="navbar">
<div class="container">
<div class="row">
<div class="eight columns">
<a class="brand" tabindex="0" title="The Baratie"
> The Baratie</a
>
</div>
<div class="four columns">
<ul class="navbar-list">
<li class="navbar-item">
<a
class="navbar-link btnRandomRecipe clear-field"
tabindex="0"
href="#random"
title="Show a random recipe"
>Random</a
>
</li>
<li class="navbar-item">
<a class="navbar-link" tabindex="0" href="#about-section"
>About</a
>
</li>
</ul>
</div>
</div>
</div>
</nav>
</header>
<div class="back">
<a href="#main" tabindex="-1"
><img src="images/scroll.svg" title="Back to top"
/></a>
</div>
<section id="landing">
<div class="container">
<div class="row">
<div class="twelve columns">
<div class="row d-flex">
<div class="four columns" style="align-self: center">
<h1 class="heading">The Baratie!</h1>
</div>
<div class="eight columns">
<div class="row">
<div class="eight columns">
<h4>
Confused what to cook? <br />
<small>Search a recipe or try a random recipe!</small>
</h4>
</div>
<div class="four columns">
<img
src="images/chef.svg"
class="u-max-full-width chefimg"
/>
<a
class="button btnRandomRecipe"
href="#random"
title="Show a random recipe"
onclick="clear()"
>Random Recipe</a
>
</div>
</div>
<div class="row">
<div class="eight columns">
<input
class="u-full-width"
type="text"
placeholder="Search recipes"
id="searchRecipe"
/>
</div>
<div
class="four columns"
style="position: relative"
id="randomMealBtnContainer"
>
<a
class="button btnSearchRecipe"
href="#mealCardsSection"
title="Search"
>Search Recipe</a
>
</div>
</div>
<div class="row">
<div class="eight columns">
<ul
class="navbar-list u-full-width"
style="text-align: center"
id="NavBarCategory"
></ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="mealCardsSection">
<br />
<div class="container" style="display: none">
<div class="row">
<div class="four columns">
<h3 class="heading">The Recipes You Wanted</h3>
<br />
</div>
<div class="row">
<div class="eight columns">
<div class="row">
<div
class="eight columns"
style="text-align: center; font-size: 20px"
>
<p>You searched for: <span id="userInput"></span></p>
</div>
<div class="four columns" style="text-align: right">
<img
src="images/chef.svg"
class="u-max-full-width chefimg"
alt="Chef icon"
/>
<a href="#landing" class="button">Search again?</a>
</div>
</div>
</div>
</div>
</div>
<div class="row mealCards d-flex"><div class="loader"></div></div>
</div>
</section>
<section id="random">
<br />
<div class="container">
<div class="row">
<div class="four columns">
<h3 class="heading" id="dynamicTitle">The Random Recipe</h3>
<br />
</div>
<div class="eight columns" style="text-align: right">
<br />
<a
id="searchAgainBtn"
class="button btnRandomRecipe"
href="#landing"
title="Searh again"
style="margin-right: 10px"
>Search again</a
>
<img
src="images/chef.svg"
class="u-max-full-width chefimg"
alt="Chef icon"
/>
<button
id="dynamicButton"
class="button btnRandomRecipe"
title="Show another random recipe"
>
Randomize
</button>
</div>
</div>
<div class="row">
<div class="four columns mealImg" id="randomMealImg">
<div class="loader"></div>
</div>
<div
class="eight columns mealMetadata"
id="randomMealMetadata"
></div>
</div>
<div class="row">
<div
class="twelve columns mealInstructions"
id="randomMealInstructions"
></div>
</div>
</div>
</section>
<section id="about-section">
<div class="container">
<div class="row">
<div class="twelve columns">
<div class="row d-flex">
<div class="four columns" style="align-self: center">
<h1 class="heading">About The Baratie!</h1>
</div>
<div class="eight columns">
<p>
" The Baratie " is powered by the free API provided by
<a
href="https://www.themealdb.com/"
target="_blank"
title="TheMealDB.com"
>TheMealDB</a
>, an open source database of recipes from around the world.
</p>
<p>
This web application uses HTML for structure, CSS for styles
and JavaScript for dynamic content. It allows users to
either search TheMealDB for specific recipes or returns a
random recipe to get some inspiration.
<br />
<br />This project is open source. Thank you! <br />Github
repo -
<a
href="https://github.com/Chirag-S-Kotian/Baratie.git"
title="The Baratie on Github"
target="_blank"
>https://github.com/Chirag-S-Kotian/Baratie.git</a
>
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<footer>
<div>
Icons by
<a
href="https://www.flaticon.com/authors/those-icons"
title="Those Icons"
>Those Icons</a
>
and
<a href="https://www.flaticon.com/authors/freepik" title="Freepik"
>Freepik</a
>
<br />
from
<a href="https://www.flaticon.com/" title="Flaticon"
>www.flaticon.com</a
>
</div>
</footer>
</main>
</body>
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"
></script>
<script src="app.js"></script>
</html>