forked from rochak-ms/find-a-meal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
126 lines (114 loc) · 4.39 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
<!DOCTYPE html>
<html lang="en">
<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" />
<!-- linking bulma CSS framework and fontawesome -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- linking style.css -->
<link rel="stylesheet" href="./assets/css/style.css" />
<title>Find A Meal</title>
</head>
<body>
<section class="hero is-widescreen">
<div class="hero-body content is-size-2">
<h1 class="ml-1 is-size-1-mobile mb-1"> Find A Meal</h1>
</div>
</section>
<nav class="navbar"></nav>
<div class="container is-widescreen is-fluid is-flex is-flex-direction-column is-justify-content-center is-justify-content-center has-text-centered"
>
<!-- header title for the page -->
<h1
class="title effect is-size-2 is-size-1-tablet has-text-weight-bold mt-6"
>
<span class="icon">
<i class="fas fa-utensils mr-2"></i>
</span>
Find a Meal
</h1>
<div class="field has-addons is-flex is-justify-content-center is-justify-content-center">
<!-- user input for searching recipes -->
<form class="control is-flex" id="submit">
<input class="input p1-search" id="search" placeholder="Search for a Recipe. eg. Chicken" type="text"/>
<p class="control">
<button class="button is-rounded" type="submit">
<i class="fas fa-search fa-beat-fade has-text-white"></i>
</button>
</p>
</form>
</div>
</div>
<!-- creating the card to show the result to user using Bulma CSS framework -->
<section class="section">
<div class="hero result-header has-text-centered"></div>
<div class="columns is-variable is-6 is-multiline is-mobile has-text-centered"
id="recipes">
</div>
</section>
<!-- creating modal to show the instruction and ingridient for the recepie -->
<div id="modal" class="modal">
<div class="modal-background"></div>
<div id="recipie-area" class="recipie-area">
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title" id="recipe-name"></p>
<div><button id="close-popup" class="modal-close is-large" aria-label="close"></button> </div>
</header>
<section class="modal-card-body">
<div class="content">
<img id="recipe-img" class="infoImg" src="" alt="">
<!-- Nutritional section starts -->
<section class="panel is-warning has-text-centered">
<h2 class="nutrition panel-heading">Nutritional Information</h2>
<p class="panel-tabs">
<input class="input is-warning" id="amount-servings" type="text" name="amount-servings" placeholder="Enter the number of servings">
<button class="button has-background-info" id="split">Split</button>
</p>
<table class="table is-bordered">
<thead class="nutrient-list">
<tr class="is-warning">
<th class="is-warning">Calories</th>
<th class="is-warning">Fat</th>
<th class="is-warning">Carbs</th>
<th class="is-warning">Protein</th>
<th class="is-warning">Sugar</th>
</tr>
</thead>
<tbody>
<tr>
<td id="calories-display"></td>
<td id="fat-display"></td>
<td id="carb-display"></td>
<td id="protien-display"></td>
<td id="sugar-display"></td>
</tr>
</tbody>
</table>
</section>
<!-- meal instruction and ingredients -->
<h3 class="title is-size-4 mt-5 mb-3">Ingredients:</h3>
<ul id="ingredients"></ul>
<h3 class="title is-size-4 mt-5 mb-3">Instruction:</h3>
<p id="instructions"></p>
</div>
</section>
</div>
</div>
<!-- jQuery linked -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="./assets/js/main.js"></script>
</body>
</html>