-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
219 lines (198 loc) · 8.49 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
<!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" />
<title>Meal Planner</title>
<link rel="stylesheet" href="./style.css" />
<script src="https://kit.fontawesome.com/24e3680989.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="row" id="menu">
<div class="col-sm-2"></div>
<div class="col-sm-10">
<div class="row">
<div class="col-sm-2">
<a href="./index.html" class="menu-item">Home</a>
</div>
<div class="col-sm-2">
<a href="./allrecipes.html" class="menu-item">Recipes</a>
</div>
<div class="col-sm-2">
<a href="./mealplans.html" class="menu-item">Meal Planner</a>
</div>
<div class="col-sm-2">
<a href="./index.html" class="menu-item">My Plans</a>
</div>
<div class="col-sm-2">
<a href="./Login/account.html" class="menu-item">Account</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<h2 class="page-title">Add new recipe</h2>
</div>
</div>
<form>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="recipe-name-input">Recipe Name</label>
</div>
<div class="col-sm-3">
<input id="recipe-name-input" class="input-recipe">
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="servings-input"># Servings</label>
</div>
<div class="col-sm-3">
<input type="number" list="servings" id="servings-input">
<datalist id="servings" class="input-recipe" name="servings">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</datalist>
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="recipe-description-input">Recipe Description</label>
</div>
<div class="col-sm-3">
<textarea id="recipe-description-input" class="input-recipe"></textarea><br>
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="recipe-instructions-input">Recipe Instructions</label>
</div>
<div class="col-sm-3">
<textarea id="recipe-instructions-input" class="input-recipe"></textarea>
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="recipe-favorite-input">Favorite</label>
</div>
<div class="col-sm-3">
<input id="recipe-favorite-input" type="checkbox" class="input-favorite">
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="recipe-rating">Rating</label>
</div>
<div class="col-sm-3">
<span class="fa fa-star"></span>
<span class="fa fa-star"></span>
<span class="fa fa-star"></span>
<span class="fa fa-star-o"></span>
<span class="fa fa-star-o"></span>
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<h5 class="new-recipe-label">Meal Types</h5>
</div>
<div class="col-sm-3">
<input id="recipe-mealtype-input-breakfast" name="mealtypes" type="checkbox" value="breakfast" class="input-mealtype"><label for="recipe-mealtype-input-breakfast" class="mealtypes"> Breakfast</label>
<input id="recipe-mealtype-input-lunch" name="mealtypes" type="checkbox" value="lunch" class="input-mealtype"><label for="recipe-mealtype-input-lunch" class="mealtypes"> Lunch</label>
<input id="recipe-mealtype-input-dinner" name="mealtypes" type="checkbox" value="dinner" class="input-mealtype"><label for="recipe-mealtype-input-dinner" class="mealtypes"> Dinner</label>
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<h5 class="new-recipe-label nutrition">Nutrition Values per Serving</h5>
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="net-carbs">Net Carbs</label>
</div>
<div class="col-sm-3">
<input id="net-carbs" name="nutrition-values-per-serving" type="number" class="input-recipe">
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="carbs">Carbs</label>
</div>
<div class="col-sm-3">
<input id="carbs" name="nutrition-values-per-serving" type="number" class="input-recipe">
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="fats">Fats</label>
</div>
<div class="col-sm-3">
<input id="fats" name="nutrition-values-per-serving" type="number" class="input-recipe">
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="protein">Protein</label>
</div>
<div class="col-sm-3">
<input id="protein" name="nutrition-values-per-serving" type="number" class="input-recipe">
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<label class="new-recipe-label" for="calories">Calories</label>
</div>
<div class="col-sm-3">
<input id="calories" name="nutrition-values-per-serving" type="number" class="input-recipe">
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<button class="btn btn-info" onclick="addRecipe()">ADD RECIPE</button>
</div>
</div>
</form>
<script src="./script.js"></script>
</body>
</html>