-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
135 lines (126 loc) · 5.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>What's for Dinner?</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/foundation-sites@6.6.3/dist/css/foundation.min.css" integrity="sha256-ogmFxjqiTMnZhxCqVmcqTvjfe1Y/ec4WaRj/aQPvn+I=" crossorigin="anonymous">
<link rel="stylesheet" href="./CSS/style.css"/>
</head>
<body>
<!--Page Header-->
<header class="subnav-hero-section">
<img src="Assets/plate.png" alt="Website logo" class="logo-left">
<h1 class="subnav-hero-headline">What's for Dinner...?</h1>
<img src="Assets/plate.png" alt="Website logo" class="logo-right">
<ul class="subnav-hero-subnav">
<li><a href="#" class="is-active">Search by ingredients</a></li>
<li><a href="./Pages/saved.html">Saved Searches</a></li>
</ul>
</header>
<!--Main search bar to add ingredients-->
<section>
<div>
<p class="instructions">Add to your list of ingredients below. Once you're ready to search, click the search button to see your recipe results!</p>
</div>
<div class="search">
<div class="input-group input-group-rounded">
<input id="form-input" class="input-group-field" type="search" placeholder="Enter ingredient">
<div class="input-group-button">
<button id="add-button" type="submit" class="button secondary" value="Add">Add</button>
</div>
</div>
</div>
</section>
<!--Toggle switches for user's diet-->
<div class="switch-group">
<!-- Vegetarian -->
<div class="switch-label">Vegetarian?
<div class="switch small">
<input class="switch-input" id="vegetarian" type="checkbox" name="vegetarian">
<label class="switch-paddle" for="vegetarian">
<span class="show-for-sr">Vegetarian</span>
<span class="switch-active" aria-hidden="true">Yes</span>
<span class="switch-inactive" aria-hidden="true">No</span>
</label>
</div>
</div>
<!-- Vegan -->
<div class="switch-label">Vegan?
<div class="switch small">
<input class="switch-input" id="vegan" type="checkbox" name="vegan">
<label class="switch-paddle" for="vegan">
<span class="show-for-sr">Vegan</span>
<span class="switch-active" aria-hidden="true">Yes</span>
<span class="switch-inactive" aria-hidden="true">No</span>
</label>
</div>
</div>
<!-- Dairy free -->
<div class="switch-label">Dairy free?
<div class="switch small">
<input class="switch-input" id="dairy-free" type="checkbox" name="dairy-free">
<label class="switch-paddle" for="dairy-free">
<span class="show-for-sr">Dairy free</span>
<span class="switch-active" aria-hidden="true">Yes</span>
<span class="switch-inactive" aria-hidden="true">No</span>
</label>
</div>
</div>
<!-- Gluten free -->
<div class="switch-label">Gluten free?
<div class="switch small">
<input class="switch-input" id="gluten-free" type="checkbox" name="gluten-free">
<label class="switch-paddle" for="gluten-free">
<span class="show-for-sr">Gluten free</span>
<span class="switch-active" aria-hidden="true">Yes</span>
<span class="switch-inactive" aria-hidden="true">No</span>
</label>
</div>
</div>
<!-- Diabetic -->
<div class="switch-label">Diabetic?
<div class="switch small">
<input class="switch-input" id="diabetic" type="checkbox" name="diabetic">
<label class="switch-paddle" for="diabetic">
<span class="show-for-sr">Diabetic</span>
<span class="switch-active" aria-hidden="true">Yes</span>
<span class="switch-inactive" aria-hidden="true">No</span>
</label>
</div>
</div>
</div>
<!--Dynamically created ingredient list-->
<section class="flex">
<div class="card ingredient-card">
<div class="card-section">
<h6 class="class-head">Ingredient List</h6>
<hr>
<ul id="ingredient-list" class="list">
<!--Add dynamically created list items here-->
</ul>
</div>
<button id="search-button" type="button" class="secondary button">Search</button>
</div>
</section>
<!-- Buttons at the bottom for Tacos and Random -->
<div class="special-div">
<button id="taco-button" type="button" class="button special">
<img src="Assets/taco.png">
</button>
<button id="dice-button" type="button" class="button special">
<img src="Assets/dice.png">
</button>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script type = "text/javascript"
src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js">
</script>
<script type = "text/javascript"
src = "https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.6.3/js/foundation.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/foundation-sites@6.6.3/dist/js/foundation.min.js" integrity="sha256-pRF3zifJRA9jXGv++b06qwtSqX1byFQOLjqa2PTEb2o=" crossorigin="anonymous"></script>
<script src="./JS/script.js"></script>
</body>
</html>