-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
244 lines (214 loc) · 9.95 KB
/
index.html
File metadata and controls
244 lines (214 loc) · 9.95 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Add recipe e-Cook-Book</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="assets/css/recipe.css" media="screen">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous">
</script>
<script src="assets/js/script.js"></script>
</head>
<body>
<!-- logo + background image -->
<header class="header">
<div class="logo"></div>
<div class="styleSwitch">
<a id="css-pink" href="#pink">Pink</a>
<a id="css-blue" href="#blue">Blue</a>
<a id="css-green" href="#green">Green</a>
</div>
</header>
<section class="content container">
<!-- navigation + slogan -->
<nav class="row">
<ul class ="navigation col-lg-7">
<li class="home"><a href="#">home</a></li>
<li class="categories"><a href="#">categories of recipes</a></li>
</ul>
</nav>
<form>
<!-- Add title to recipe (label, input) -->
<label for="">Add title to recipe</label>
<input type="text" name="" value="" id="title-recipe">
<!-- Choos category of recipes to recipe (label, select) -->
<label for="">Choose category of recipes for recipe</label>
<select class="" name="" id="recips-category">
<option value="">First category of recipes</option>
</select>
<!-- List of added ingredients: (h3) -->
<h3>List of added ingredients</h3>
<!-- List of added ingredients with quantity, unit and option 'delete' (ul, button) -->
<ol id="List-of-ingredients">
<li>First ingredient <span>1</span> spoon<button type="button" name="button">Delete</button></li>
<li>Second ingredient <span>1</span> kilo<button type="button" name="button">Delete</button></li>
</ol>
<!-- List of added needed things: (h3) -->
<h3>List of added needed things</h3>
<!-- List of added needed things with option 'delete' (ul, button) -->
<ol id="list-of-needed-things">
<li>First thing <button type="button" name="button">Delete</button></li>
</ol>
<!-- Recipe: (h3) -->
<h3>Recipe</h3>
<!-- File for description of recipe (textarea) -->
<textarea name="name" id="description-of-recipe" rows="15" cols="60"></textarea>
<!-- Additional elements: (h3) -->
<h3>Additional elements</h3>
<!-- Add image, choose image from computer, delete added file (label, input, button) -->
<label for="">Add image</label>
<input name="" type="file" value="Choose file" accept="image/*" id="inputImg">
<input type="submit" name="" value="Upload" />
<button type="button" name="button">Delete file</button>
<img src="" alt="" id="uploadedImg">
<!-- Add time needed to make a recipe (label, input) -->
<label for="">Add time to make</label>
<input type="text" name="" id="time-to-make" value="00:00">
<!-- For how many person (label, input) -->
<label for="">No. of portions</label>
<input type="text" name="" id="how-many-person" value="">
<!-- See recipe (button) -->
<button type="button" name="button" id="see-recipe">See recipe</button>
<!-- Save recipe (button) -->
<button type="button" name="button">Save recipe</button>
</form>
<!-- Add recipe -->
<!-- List of categories of recipies: -->
<h3 id='recipesDrop'>Categories of recipes »</h3>
<!-- This code will be open in drop down element when element <h3>List of categories of recipes</h3> be clicked -->
<div id='recipesDropForm'>
<form>
<!-- Add new category of recipes to list of categories of recipes (label, input) -->
<label for="">Add new category of recipes to list</label>
<input type="text" name="" value="Category name">
<button type="button" name="button">Add</button>
<!-- List of category of recipes with options: 'See recipes' and 'Delete' (ul, button, button) -->
<ol id="categories">
<li><a href="#">First Category of recipes</a>
<button id="show-recipes-btn" type="button" name="button">See recipes</button>
<button type="button" name="button">Delete</button>
<!-- List-of-recipes-part-of-code -->
<!-- First category of recipes -->
<!-- This code will be open in popup when button 'See recipes' will be clicked-->
<div class='recipes-popup'>
<div class='recipes-popup-content'>
<h2>First Category of recipes</h2>
<form name="FirstCategoryOfRecipes">
<!-- Display list of recipes with options: 'Delete from list' and 'See recipe' -->
<ul>
<li>
<input type="checkbox"><label>First recipe </label>
<button name="" type="button">See Recipe</button>
</li>
<li>
<input type="checkbox"><label>Second recipe </label>
<button name="" type="button">See Recipe</button>
</li>
<li>
<input type="checkbox"><label>Third recipe</label>
<button name="" type="button">See Recipe</button>
</li>
</ul>
</form>
<button type="button" name="button">Delete chosen recipes from this list</button>
<!-- Close popup window (button) -->
<button id='close-recipes-popup-btn' name="" type="">Close List</button>
</div>
</div>
</li>
</ol>
</form>
</div>
<!-- List of categories of ingredients: (h3) -->
<h3 id='ingredientsDrop'>Categories of ingredients »</h3>
<!-- This code will be open in drop down element when element <h3>List of categories of ingredients »</h3> be clicked -->
<!-- Add new category of ingredients to list of categories of ingredients (label, input)-->
<div id='ingredientsDropForm'>
<form>
<label for="">Add new category of ingredients</label>
<input type="text" name="" value="Category name">
<button type="button" name="button">Add</button> <br>
<!-- Add new ingredient to choosen category of ingredients (label, select, input) -->
<label for="">Add new ingredient to chosen category</label> <select>
<option value="">Choose category</option>
<option value="">category 1</option>
<option value="">category 2</option>
<option value="">category 3</option>
</select>
<input type="list" name="" value="Ingredient name">
<button type="button" name="button">Add</button>
<!-- List of category of ingredients with options: 'See list' and 'Delete' (ul, button, button) -->
<ol id="categories">
<li><a href="#">First Category of ingredients</a>
<button id='show-ingredients-popup-btn' type="button" name="button">See list</button>
<button type="button" name="button">Delete</button>
<!-- This part of code will be open in popup window when button 'See list' will be clicked -->
<!-- List-of-ingredients-part-of-code -->
<div class='ingredients-popup'>
<div class='ingredients-popup-content'>
<h2>List of Ingredients - First Category</h2>
<form name="FirstCategoryOfRecipes">
<p>Qty</p><p>Unit</p>
<ul>
<li>
<input type="checkbox"><label>First ingredient </label>
<input type="" name="quantity"><input type="text" name="unit">
</li>
<li><input type="checkbox"><label>Second ingredient </label>
<input type="" name="quantity"><input type="text" name="unit">
</li>
<li><input type="checkbox"><label>Third ingredient </label>
<input type="" name="quantity"><input type="text" name="unit">
</li>
</ul>
<button type="button">Add choosen ingredients to recipe</button>
<button type="button">Delete choosen ingredients from list</button>
<!-- Close popup window (button) -->
<button id='close-ingredients-popup-btn' name="" type="">Close List</button>
</form>
</div>
</div>
<!-- End of List-of-ingredients-part-of-code -->
</li>
</ol>
</form>
</div>
<!-- Needed things: (h3) -->
<h3 id='thingsDrop'>Needed things »</h3>
<!-- This code will be open in drop down element when <h3>Needed things:</h3> be clicked -->
<!-- Add thing to list of needed things with option 'See list' (label, input, button)-->
<div id='thingsDropForm'>
<form>
<label for="">Add things to list</label>
<input type="text" name="" value="">
<button type="button" name="button">Add</button>
<button id='show-needed-popup-btn' type="button" name="button">See list</button>
<!-- This part of code will be open in popup window when button 'See list' will be clicked -->
<div class='needed-popup'>
<div class='needed-popup-content'>
<h2>List of needed things</h2>
<form>
<ul id="needed-things">
<li><input type="checkbox"><label>First thing </label></li>
<li><input type="checkbox"><label>Second thing </label></li>
<li><input type="checkbox"><label>Third thing </label></li>
</ul>
<button type="button" id="add-needed-things">Add choosen things to recipe</button>
<button type="button">Delete choosen things from needed things list</button>
<!-- Close popup window (button) -->
<button id='close-needed-popup-btn' name="" type="">Close List</button>
</form>
</div>
</div>
</form>
</div>
</section>
<p class="info">Project made with the help of community of Udacity fewd-challange</p>
</body>
</html>