-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
235 lines (224 loc) · 7.17 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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
href="https://fonts.googleapis.com/css?family=Nunito+Sans:400,600,700"
rel="stylesheet"
/>
<link rel="shortcut icon" href="src/img/favicon.png" type="image/x-icon" />
<link rel="stylesheet" href="src/sass/main.scss" />
<script defer type="module" src="src/js/controller.js"></script>
<title>forkify - Search over 1 000 000 recipes</title>
</head>
<body>
<div class="container">
<header class="header">
<img src="src/img/logo.png" alt="Logo" class="header__logo" />
<form class="search">
<input
type="text"
class="search__field"
placeholder="Search over 1,000,000 recipes..."
/>
<button class="btn search__btn">
<svg class="search__icon">
<use href="src/img/icons.svg#icon-search"></use>
</svg>
<span>Search</span>
</button>
</form>
<nav class="nav">
<ul class="nav__list">
<li class="nav__item">
<button class="nav__btn nav__btn--bookmarks">
<svg class="nav__icon">
<use href="src/img/icons.svg#icon-cart"></use>
</svg>
<span>Shopping List</span>
</button>
<div class="bookmarks">
<ul class="shopping__list">
<!-- generated code starts here - replaces message div -->
<div class="message">
<div>
<svg>
<use href="src/img/icons.svg#icon-smile"></use>
</svg>
</div>
<p>
No ingredients yet. Find a nice recipe and add its
ingredients ;)
</p>
</div>
<!-- generated code end -->
</ul>
</div>
</li>
<li class="nav__item">
<button class="nav__btn nav__btn--add-recipe">
<svg class="nav__icon">
<use href="src/img/icons.svg#icon-edit"></use>
</svg>
<span>Add recipe</span>
</button>
</li>
<li class="nav__item">
<button class="nav__btn nav__btn--bookmarks">
<svg class="nav__icon">
<use href="src/img/icons.svg#icon-bookmark"></use>
</svg>
<span>Bookmarks</span>
</button>
<div class="bookmarks">
<ul class="bookmarks__list">
<!-- generated code starts here - replaces message div -->
<div class="message">
<div>
<svg>
<use href="src/img/icons.svg#icon-smile"></use>
</svg>
</div>
<p>
No bookmarks yet. Find a nice recipe and bookmark it :)
</p>
</div>
<!-- generated code end -->
</ul>
</div>
</li>
</ul>
</nav>
</header>
<div class="search-results">
<ul class="results">
<!-- generated code -->
</ul>
<div class="pagination">
<!-- generated code -->
</div>
<p class="copyright">
© Design by
<a
class="twitter-link"
target="_blank"
href="https://twitter.com/jonasschmedtman"
>Jonas Schmedtmann</a
>. Implemented by
<a
class="twitter-link"
target="_blank"
href="https://www.linkedin.com/in/antónio-sérgio-dias-morais-973296207"
>Antonio Sergio</a
>.
</p>
</div>
<div class="recipe">
<!-- generated code start - replaces message div -->
<div class="message">
<div>
<svg>
<use href="src/img/icons.svg#icon-smile"></use>
</svg>
</div>
<p>Start by searching for a recipe or an ingredient. Have fun!</p>
</div>
<!-- generated code end -->
</div>
</div>
<div class="overlay hidden"></div>
<div class="add-recipe-window hidden">
<button class="btn--close-modal">×</button>
<form class="upload">
<h3 class="upload__heading">Recipe data</h3>
<h3 class="upload__heading">Ingredients</h3>
<div class="upload__column">
<label>Title</label>
<input required name="title" type="text" placeholder="My Recipe" />
<label>URL</label>
<input
required
name="sourceUrl"
type="text"
placeholder="https://forkify-antoniosergio.netlify.app/"
/>
<label>Image URL</label>
<input
required
name="image"
type="text"
placeholder="https://forkify-antoniosergio.netlify.app/logo.8a7af738.png"
/>
<label>Publisher</label>
<input
required
name="publisher"
type="text"
placeholder="Myself and I"
/>
<label>Prep time</label>
<input
required
name="cookingTime"
type="number"
placeholder="in minutes"
/>
<label>Servings</label>
<input
required
name="servings"
type="number"
placeholder="in people"
/>
</div>
<div class="upload__column">
<label>Ingredient 1</label>
<input
type="text"
required
name="ingredient-1"
placeholder="Format: 'Quantity,Unit,Description'"
/>
<label>Ingredient 2</label>
<input
type="text"
name="ingredient-2"
placeholder="Format: 'Quantity,Unit,Description'"
/>
<label>Ingredient 3</label>
<input
type="text"
name="ingredient-3"
placeholder="Format: 'Quantity,Unit,Description'"
/>
<label>Ingredient 4</label>
<input
type="text"
name="ingredient-4"
placeholder="Format: 'Quantity,Unit,Description'"
/>
<label>Ingredient 5</label>
<input
type="text"
name="ingredient-5"
placeholder="Format: 'Quantity,Unit,Description'"
/>
<label>Ingredient 6</label>
<input
type="text"
name="ingredient-6"
placeholder="Format: 'Quantity,Unit,Description'"
/>
</div>
<button class="btn upload__btn">
<svg>
<use href="src/img/icons.svg#icon-upload-cloud"></use>
</svg>
<span>Upload</span>
</button>
</form>
</div>
</body>
</html>