-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (71 loc) · 3.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Food Recipe App</title>
<link rel="stylesheet" href="CSS/style.css">
<script src="https://kit.fontawesome.com/ab0d24cb8e.js" crossorigin="anonymous"></script>
</head>
<body>
<main class="search center-content">
<h2>Discover Recipes Based on Your Ingredient</h2>
<p>Enter an ingredient, and we will recommend recipes.</p>
<!-- <form action="JS/main.js"> -->
<div class="search-bar">
<input type="text" name="recipes" id="ingredient-name" placeholder="Enter your main ingredient.....">
<button type="button" class="search-btn btn" id="search-btn">
<i class="fas fa-search"></i>
</div>
<button id="randomButton" class="button">Random Recipe!</button>
<div class="category-container">
<label for="Category">Filter Recipes:</label>
<select name="Category" id="Category" placeholder="Category">
<option value="All">All</option>
<option value="Beef">Beef</option>
<option value="Chicken">Chicken</option>
<option value="Dessert">Dessert</option>
<option value="Lamb">Lamb</option>
<option value="Pasta">Pasta</option>
<option value="Pork">Pork</option>
<option value="Seafood">Seafood</option>
<option value="Side">Side</option>
<option value="Starter">Starter</option>
<option value="Vegan">Vegan</option>
<option value="Vegetarian">Vegetarian</option>
<option value="Goat">Goat</option>
</select>
<!-- <select name="Area" id="Area" placeholder="Area">
<option value="All">All</option>
<option value="American">American</option>
<option value="British">British</option>
<option value="Canadian">Canadian</option>
<option value="Chinese">Chinese</option>
<option value="Croatian">Croatian</option>
<option value="Dutch">Dutch</option>
<option value="Egyptian">Egyptian</option>
<option value="Filipino">Filipino</option>
<option value="French">French</option>
<option value="Vegan">Greek</option>
<option value="Vegetarian">Indian</option>
<option value="Italian">Italian</option>
<option value="Jamaican">Jamaican</option>
<option value="Japanese">Japanese</option>
<option value="Mexican">Mexican</option>
<option value="Turkish">Turkish</option>
<option value="Vietnamese">Vietnamese</option>
</select> -->
</div>
<!-- </form> -->
<h2>Results: </h2>
<div id="recipe"></div> <!-- Displays all the meals here -->
<div id="MealDetails"></div> <!-- Displays all the MealDetails here -->
</main>
<script type="module" src="JS/main.js"></script>
<script>
function togglePopup() {
document.getElementById('popup-1').classList.toggle('active');
}
</script>
</body>
</html>