-
Notifications
You must be signed in to change notification settings - Fork 1
/
recipe-list.html
134 lines (123 loc) · 5.19 KB
/
recipe-list.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
<!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>Recipe Form | Grocery Grabber</title>
<link rel="apple-touch-icon" sizes="180x180" href="./assets/favicon_io/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon_io/favicon-32x32.png">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
<script src="https://kit.fontawesome.com/7f42bb4d5d.js" crossorigin="anonymous"></script>
</head>
<style>
h2 {
display: block;
font-size: 1.5em;
margin-block-start: 0.83em;
margin-block-end: 0.83em;
margin-inline-start: 0px;
margin-inline-end: 0px;
font-weight: bold;
}
</style>
<body>
<header class="flex flex-column items-center justify-center w-full">
<a href="index.html">
<img src="./assets/gg-transparent-logo2.png" alt="grocery Grabber logo">
</a>
<a href="about-us.html">
<img src="./assets/gg-team-logo.png" alt="grocery Grabber logo">
</a>
</header>
<main class="form-container pb-125">
<form id="recipe-form" method="POST" onsubmit="handleFormSubmit(event)">
<fieldset>
<legend>Add Recipe</legend>
<div class="flex flex-column ">
<div class="form-group flex flex-column">
<input type="text" id="recipe-name" name="recipe-name" placeholder="Recipe Name" required>
</div>
<div class="portions">
<div class="form-group">
<input type="number" id="current-portion-size" placeholder="Suggested Serving Size">
</div>
<div class="form-group">
<input type="number" id="desired-portion-size" placeholder="Desired Serving Size ">
</div>
</div>
</div>
<div class="recipeIngredients">
<div class="ingredient-input">
<h2>Recipe Ingredients:</h2>
<div class="form-group">
<select name="category" id="category" aria-label="Category">
<option value="" selected disabled>Category</option>
<option value="Fruit">Fruit</option>
<option value="Vegetable">Vegetable</option>
<option value="Canned Goods">Canned Goods</option>
<option value="Meat">Meat</option>
<option value="Seafood">Seafood</option>
<option value="Deli">Deli</option>
<option value="Bakery">Bakery</option>
<option value="Frozen Foods">Frozen Foods</option>
<option value="Personal Care">Personal Care</option>
<option value="Pet">Pet</option>
</select>
</div>
<div class="form-group"><input type="text" id="ingredient-input" placeholder="Ingredient"></div>
<div class="form-group"><input type="number" id="quantity-input" placeholder="Quantity"></div>
<div class="form-group">
<select id="unit-input">
<option value="" selected disabled>Select a measurement</option>
<option value="g">g</option>
<option value="ml">ml</option>
<option value="tsp">tsp</option>
<option value="tbsp">tbsp</option>
<option value="cup">cup</option>
<option value="pcs">pcs</option>
</select>
</div>
</div>
<button class="button " type="button" id="add-ingredient" onclick="addIngredient()">Add Ingredient</button>
</div>
<table id="ingredient-table">
<thead>
<tr>
<th><abbr title="Category">Cat</th><abbr></th>
<th>Ingredient</th>
<th>Qty</th>
<th><abbr title="Unit of Measurement">UOM</th><abbr></th>
<th>Remove</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<button class="button mt-1" type="submit">Submit Recipe</button>
</fieldset>
</form>
<h2 class="text-center">Recipe List</h2>
<table id="recipe-name-table">
<thead>
<tr>
<th colspan="3">Recipe Name</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</main>
<footer class="">
<nav class="flex flex-row justify-around items-center">
<a href="./index.html" class="homeToolTip"><i class="fa-solid fa-house-chimney fa-xl" style="color: #c0aa5d;"></i><span class="tooltiptext">Home</span></a>
<a href="./grocery-list.html" class="groceryToolTip"><i class="fa-solid fa-list-check fa-xl" style="color: #c0aa5d;"></i><span class="tooltiptext">Grocery List</span></a>
<a href="./recipe-list.html" class="recipeToolTip"><i class="fa-solid fa-book-open fa-xl" style="color: #c0aa5d;"></i><span class="tooltiptext">Recipe List</span></a>
<a href="./about-us.html" class="teamToolTip"><i class="fa-solid fa-code fa-xl" style="color: #c0aa5d;"></i><span class="tooltiptext">Meet the Team</span></a>
</nav>
<p class="text-center">© 2023 <a href="https://github.com/re-factored" target="_blank" rel="noopener noreferrer">RE-FACTORED Inc.</a><br> All Rights Reserved</p>
</footer>
<script src="js/recipe.js"></script>
</body>
</html>