/
index.html
400 lines (327 loc) · 14.5 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Chowdown Beta</title>
<link href="https://unpkg.com/basscss@8.0.2/css/basscss.min.css" rel="stylesheet">
<style>
@import url('https://rsms.me/inter/inter-ui.css');
:root {
--white: #FFFFFF;
--black: #000000;
--dark: #1F0F66;
--light: #EEEEEE;
--blue: #007FFF;
}
.white, a.white{
color: var(--white);
}
.black, a.black{
color: var(--black);
}
.dark, a.dark{
color: var(--dark);
}
.light, a.light{
color: var(--light);
}
.bg-blue{
background:var(--blue);
color:var(--white);
}
body{
margin:0;
padding:0;
font-family: 'Inter UI', sans-serif;
font-size:1rem;
line-height: 1.25;
}
nav{
position: fixed;
z-index: 10;
bottom:0;
left:0;
right:0;
background:rgba(255,255,255,0.95);
border-top:2px solid var(--white);
}
nav .item{
text-align: center;
text-decoration: none;
color:var(--dark);
font-size:.8rem;
padding:.5rem 0;
font-weight: 500;
transition: .2s ease all;
}
nav .item.active{
color:var(--blue;);
}
nav .item.active svg{
animation: zap .2s ease forwards;
}
nav .item path, nav .item g{
transition: .2s ease all;
}
nav .item.active path, nav .item.active g{
fill:#007fff;
}
nav .item:not(.active){
opacity: .4;
}
nav .label{
margin:0;
}
.recipe .image{
transition: .2s ease opacity;
}
.recipe:hover .image{
opacity:.6;
}
.ratio{
padding-top:50%;
}
.bg-cover{
background-size:cover;
background-position:50% 50%;
}
.slider-outer{
width:100%;
overflow: hidden;
}
#slider{
width:400%;
transition: .3s ease all;
}
#slider.recipes{
transform: translateX(0);
}
#slider.search{
transform: translateX(-25%);
}
#slider.books{
transform: translateX(-50%);
}
#slider.updates{
transform: translateX(-75%);
}
input{
width:100%;
padding:.75rem;
box-sizing: border-box;
}
@keyframes zap {
0% {
transform: scale(1.0);
}
50% {
transform: scale(1.2) rotate(8deg);
}
100%{
transform: scale(1.0);
}
}
</style>
</head>
<body>
<div class="slider-outer">
<div id="slider">
<div class="recipes mb4 col col-3">
<div class="clearfix p1">
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/stuffed-peppers.html">
<div class="image ratio bg-cover" style="background-image:url(/images/stuffed-peppers.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Stuffed Peppers</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/broccoli-cheese-soup.html">
<div class="image ratio bg-cover" style="background-image:url(/images/broccoli-beer-cheese-soup.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Broccoli Beer Cheese Soup</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/crockpot-buffalo-chicken.html">
<div class="image ratio bg-cover" style="background-image:url(/images/crockpot-buffalo-chicken.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Crockpot Buffalo Chicken</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/downtown-chowdown-marinade.html">
<div class="image ratio bg-cover" style="background-image:url(/images/downtown-marinade.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Downtown Marinade</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/green-chile-stew.html">
<div class="image ratio bg-cover" style="background-image:url(/images/green-chile-stew.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Green Chile Stew</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/mongolian-beef.html">
<div class="image ratio bg-cover" style="background-image:url(/images/mongolian-beef.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Mongolian Beef</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/new-york-strip.html">
<div class="image ratio bg-cover" style="background-image:url(/images/new-york-strip.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">New York Strip</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/nilla-wafer-french-toast.html">
<div class="image ratio bg-cover" style="background-image:url(/images/nilla-wafer.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Nilla Wafer French Toast</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/one-minute-muffin.html">
<div class="image ratio bg-cover" style="background-image:url(/images/one-minute-muffin.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">One Minute Muffin</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/pork-steaks.html">
<div class="image ratio bg-cover" style="background-image:url(/images/pork-steaks.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Pork Steaks</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/red-berry-tart.html">
<div class="image ratio bg-cover" style="background-image:url(/images/red-berry-tart.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Red Berry Tart</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/roasted-brussels-sprouts.html">
<div class="image ratio bg-cover" style="background-image:url(/images/roasted-brussels-sprouts.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Roasted Brussels Sprouts</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/roasted-okra.html">
<div class="image ratio bg-cover" style="background-image:url(/images/roasted-okra.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Roasted Okra</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/smashed-carrots.html">
<div class="image ratio bg-cover" style="background-image:url(/images/smashed-carrots.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Smashed Carrots</h1>
</a>
</div>
<div class="recipe sm-col sm-col-6 md-col-4 py1">
<a class="block relative bg-blue mx1" href="/recipes/banana-bread.html">
<div class="image ratio bg-cover" style="background-image:url(/images/banana-bread.jpg);"></div>
<h1 class="title p2 m0 absolute bold white bottom-0 left-0">Banana Bread</h1>
</a>
</div>
</div>
</div>
<div class="search col col-3">
<div class="search container max-width-2 p2">
<div id="search-container">
<input type="text" id="search-input" placeholder="Search titles or ingredients...">
</div>
</div>
<div class="clearfix">
<div class="recipes p1 center" id="results-container">
</div>
</div>
</div>
<div class="books col col-3">
<div class="px2"><h2>Coming Soon!</h2></div>
</div>
<div class="updates col col-3">
<div class="px2"><h2>Coming Soon!</h2></div>
</div>
</div>
</div>
<nav class="flex justify-around">
<a href="#" class="item recipes active">
<svg width="33" height="32" xmlns="http://www.w3.org/2000/svg">
<g fill="#1F0F66" fill-rule="nonzero">
<path d="M17 27.533c6.37 0 11.533-5.163 11.533-11.533C28.533 9.63 23.37 4.467 17 4.467 10.63 4.467 5.467 9.63 5.467 16c0 6.37 5.163 11.533 11.533 11.533zM17 30C9.268 30 3 23.732 3 16S9.268 2 17 2s14 6.268 14 14-6.268 14-14 14z"/>
<g transform="rotate(45 -3.503 17.164)">
<path d="M11.634 3.153V2.24h4.835c.24 0 .438.202.438.456a.447.447 0 0 1-.438.456h-4.835zm4.835 1.322c.974 0 1.76-.799 1.76-1.778 0-.98-.786-1.778-1.76-1.778h-6.157v3.555h6.157z"/>
<path d="M6.088 4.604c-.745-.168-1.626-.862-2.598-1.971-.37-.422.217.325-.335-.392h7.089v2.4H6.413c-.104 0-.212-.012-.325-.037zm4.816 1.36h.661V.92H.45l.818 1.063c.57.74.833 1.07 1.228 1.521C3.64 4.808 4.703 5.646 5.797 5.893c.206.046.412.07.616.07h4.491z"/>
</g>
<g transform="rotate(45 2.18 30.663)">
<path d="M2.354 7.178v11.18a.66.66 0 1 0 1.321 0V7.178a.66.66 0 0 0-1.321 0z"/>
<path d="M5.525 5.227a2.511 2.511 0 1 1-5.022 0h5.022zM.503.921h.977v4.306H.503V.921zm4.046 0h.976v4.306H4.55V.921zm-2.023 0h.977v4.306h-.977V.921z"/>
</g>
</g>
</svg>
<p class="label">Recipes</p>
</a>
<a href="#" class="item search">
<svg width="32" height="32" xmlns="http://www.w3.org/2000/svg">
<path d="M19.087 18.205a4.882 4.882 0 1 0 .002-9.764 4.882 4.882 0 0 0-.002 9.764zm5.706-.292l5.726 5.726a1.216 1.216 0 0 1-.002 1.723 1.22 1.22 0 0 1-1.724.002l-5.828-5.827a7.324 7.324 0 1 1 1.829-1.624zM2 10.272c0-.674.414-1.221.913-1.221H8.41c.505 0 .913.542.913 1.22 0 .675-.414 1.222-.913 1.222H2.913c-.505 0-.913-.543-.913-1.221zm0 7.323c0-.674.414-1.221.913-1.221H8.41c.505 0 .913.542.913 1.22 0 .675-.414 1.222-.913 1.222H2.913c-.505 0-.913-.543-.913-1.221zm0 7.323c0-.674.402-1.22.914-1.22H20.31c.505 0 .915.542.915 1.22 0 .674-.402 1.221-.915 1.221H2.914c-.504 0-.914-.542-.914-1.221z" fill="#000" fill-rule="nonzero"/>
</svg>
<p class="label">Search</p>
</a>
<a href="#" class="item books">
<svg width="32" height="32" xmlns="http://www.w3.org/2000/svg">
<path d="M25.568 2.5H6.43C4.814 2.5 3.5 3.86 3.5 5.476v20.877a2.934 2.934 0 0 0 2.93 2.932h19.138a2.936 2.936 0 0 0 2.932-2.932V5.476c0-1.616-1.316-2.976-2.932-2.976zM18.38 4.88h3.571v7.049l-1.041-.833a1.189 1.189 0 0 0-1.488 0l-1.042.833V4.88zM5.88 26.354V5.433a.55.55 0 0 1 .549-.552h1.832v22.024H6.43a.55.55 0 0 1-.549-.551zm20.238 0a.55.55 0 0 1-.551.552H10.643V4.88H16v9.524a1.189 1.189 0 1 0 1.935.93l2.232-1.786 2.232 1.786a1.189 1.189 0 0 0 1.258.144c.414-.2.676-.616.676-1.074V4.88h1.235a.55.55 0 0 1 .551.55v20.922z" fill="#1F0F66" fill-rule="nonzero"/>
</svg>
<p class="label">Books</p>
</a>
<a href="#" class="item updates">
<svg width="32" height="32" xmlns="http://www.w3.org/2000/svg">
<g fill="#1F0F66" fill-rule="nonzero">
<path d="M20.12 4.92a.715.715 0 0 0-.269-.05c-.319 0-.604.21-.708.522a.814.814 0 0 0 .478 1 9.651 9.651 0 0 1 4.96 4.622 9.65 9.65 0 0 1 .718 6.742.814.814 0 0 0 .512.982c.08.026.163.04.246.04a.74.74 0 0 0 .717-.54 11.19 11.19 0 0 0-.807-7.916 11.202 11.202 0 0 0-5.846-5.401z"/>
<path d="M30.294 8.156A15.983 15.983 0 0 0 21.653.32a.739.739 0 0 0-.263-.049.759.759 0 0 0-.717.525.8.8 0 0 0 .482.994 14.448 14.448 0 0 1 7.752 7.06 14.437 14.437 0 0 1 .99 10.436.799.799 0 0 0 .506.982c.08.027.162.04.244.04.34 0 .63-.215.722-.538 1.12-3.88.737-8.003-1.075-11.616zM14.052 6.796c-.767 0-1.492.168-2.153.497-1.46.73-2.403 2.18-2.77 3.967-2.972 2.963-6.818 5.581-6.858 5.608-2.111 1.43-2.86 4.035-1.78 6.191.818 1.638 2.473 2.586 4.277 2.586.574 0 1.163-.095 1.745-.295.045-.017 4.427-1.517 8.579-2.118.891.425 1.81.658 2.704.658.768 0 1.492-.168 2.153-.497 1.572-.786 2.596-2.39 2.88-4.513.271-2.014-.16-4.282-1.21-6.384-1.706-3.409-4.747-5.7-7.567-5.7zm7.252 11.879c-.215 1.604-.941 2.79-2.044 3.341a3.243 3.243 0 0 1-1.464.335c-2.253 0-4.74-1.948-6.19-4.85-1.84-3.68-1.4-7.643.982-8.835a3.248 3.248 0 0 1 1.463-.334c2.253 0 4.74 1.948 6.19 4.85.916 1.832 1.294 3.782 1.063 5.493z"/>
<path d="M16.043 13.151a.776.776 0 0 0-.35.08c-.607.302-.701 1.35-.21 2.331.386.773 1.061 1.312 1.642 1.312a.759.759 0 0 0 .35-.081c.586-.293.685-1.383.21-2.333-.386-.77-1.06-1.309-1.642-1.309z"/>
<path d="M14.796 15.907c-.484-.968-.51-1.98-.14-2.672l-3.312.984c.149.957.461 1.963.95 2.94a10.03 10.03 0 0 0 1.784 2.523l2.78-2.063c-.794-.125-1.596-.78-2.062-1.712zM12.014 24.6a59.376 59.376 0 0 0-4.988 1.388L8.89 29.71c.28.561.765.982 1.365 1.18a2.34 2.34 0 0 0 1.8-.124l.324-.161a2.364 2.364 0 0 0 1.055-3.167l-1.42-2.839z"/>
</g>
</svg>
<p class="label">Books</p>
</a>
</nav>
<script type="text/javascript" src='https://code.jquery.com/jquery-3.3.1.min.js'></script>
<script src="/plugins/simple-jekyll-search.min.js" type="text/javascript"></script>
<script>
SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '/search.json',
searchResultTemplate: '<div class="recipe sm-col sm-col-6 md-col-4 py1"><a class="block relative bg-blue mx1" href="{url}"><div class="image ratio bg-cover" ></div><h1 class="title p2 m0 absolute bold white bottom-0 left-0">{title}</h1></a></div>'
})
</script>
<script>
$( document ).ready(function() {
$('#search-input').on('input', function() {
currentHeight = $('#search-container').outerHeight();
$('.search').addClass('used').css('height', currentHeight);
});
$(".item.recipes").click(function() {
$('#slider').removeClass().addClass('recipes');
$('.item').removeClass('active');
$(this).addClass('active');
return false;
});
$(".item.search").click(function() {
$('#slider').removeClass().addClass('search');
$('.item').removeClass('active');
$(this).addClass('active');
return false;
});
$(".item.books").click(function() {
$('#slider').removeClass().addClass('books');
$('.item').removeClass('active');
$(this).addClass('active');
return false;
});
$(".item.updates").click(function() {
$('#slider').removeClass().addClass('updates');
$('.item').removeClass('active');
$(this).addClass('active');
return false;
});
});
</script>
</body>
</html>