-
Notifications
You must be signed in to change notification settings - Fork 0
/
mixology.html
373 lines (331 loc) · 13.5 KB
/
mixology.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Mixology</title>
<meta charset="utf-8" />
<!-- Preconnect to Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<!-- Import Google Font with font-display swap -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap" />
<style>
body {
font-family: "Mulish", sans-serif;
}
section {
padding-top: 4em;
padding-bottom: 8em;
border-top: 0.75em solid #222;
}
article {
margin: 2rem 0;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
}
h1 {
text-transform: uppercase;
font-size: 2em;
line-height: 1.2em;
margin-bottom: 2em;
letter-spacing: 0.2em;
}
h1, h3 {
text-align: center;
}
h1, h2, h3, h4 {
font-weight: normal;
}
h1, h2, h3, h4, p {
margin: 0;
}
p {
margin: 1em auto;
}
ul, ol {
list-style: none;
margin: 0px;
padding: 0px;
}
a, a:visited {
color: #222;
text-decoration: none;
-webkit-transition: all 200ms ease-out;
-moz-transition: all 200ms ease-out;
-o-transition: all 200ms ease-out;
transition: all 200ms ease-out;
}
.trunk {
width: 90%;
height: 100vh;
max-width: 1100px;
margin-left: auto;
margin-right: auto;
}
.L-1-5 { width: 20%; }
.L-1-2 { width: 50%; }
.L-3-5 { width: 60%; }
.centered {
margin-left: auto;
margin-right: auto;
}
.cocktail {
position: relative;
}
.cocktail .image {
height: 0%;
padding-bottom: 225%;
width: 100%;
background-size: 80%;
background-repeat: no-repeat;
background-position: center center;
transition: background-size 500ms ease-out;
}
.cocktail:hover .image, .cocktail.selected .image {
width: 100%;
transition: all 0.75s;
transform:scale(1.25);
}
.gin .image { background-image: url(./assets/images/mixology/gin.png); }
.rum .image { background-image: url(./assets/images/mixology/rum.png); }
.tequila .image { background-image: url(./assets/images/mixology/tequila.png); }
.vodka .image { background-image: url(./assets/images/mixology/vodka.png); }
.whiskey .image { background-image: url(./assets/images/mixology/whiskey.png); }
.gin_section, .rum_section, .tequila_section, .vodka_section, .whiskey_section {
display: none;
text-align: center;
}
@media screen and (max-width:736px){
.gin_section, .rum_section, .tequila_section, .vodka_section, .whiskey_section {
display: initial;
}
}
.gin_section.selected, .rum_section.selected, .tequila_section.selected, .vodka_section.selected, .whiskey_section.selected {
display: initial;
margin: 5px auto 0 auto;
}
.section_title {
font-size: 32px;
}
.section_description {
width: 75%;
line-height: 1.5;
margin: 10px auto;
}
/* .section_ingredients {
margin-top: 15px;
font-size: 15px;
font-style: italic;
}*/
.section_ingredients {
font-family: 'Caveat Brush', cursive;
background-image: url('./assets/images/mixology/slate.png');
border-radius: 4px;
letter-spacing: 2px;
background-color: grey;
color: white;
width: 25%;
padding: 25px 0;
line-height: 2;
margin: 25px auto 0 auto;
font-size: 17px;
font-style: italic;
}
.section_ingredients_title {
font-size: 24px;
font-style: normal;
margin-bottom: 15px;
}
.cocktail .buy {
display: block;
box-sizing: border-box;
width: 100%;
position: absolute;
bottom: 0;
padding: 0 0.75em 0.75em 0.75em;
background-color: white;
text-align: center;
filter: alpha(opacity=0);
opacity: 0;
transition: 500ms ease-out;
}
.cocktail:hover .buy {
display: block;
filter: alpha(opacity=100);
opacity: 1;
}
.cocktail .buy p {
margin: 0;
font-size: 1.25em;
font-weight: bold;
}
.cocktail .buy button {
width: 100%;
margin-top: 0.5em;
background-color: transparent;
border: none;
display: block;
cursor: pointer;
}
.gutters {
padding-left: 15px;
padding-right: 15px;
}
.cocktails {
height: 450px;
}
.float-container > * {
float: left;
}
</style>
</head>
<body>
<section class="trunk" id="bottled-cocktails">
<h1>My top 5 cocktails recommended</h1>
<br />
<h3>Start by choosing one of these bottles</h3>
<div class="float-container cocktails">
<div class="cocktail gin L-1-5 S-1-3" id="gin_button">
<div class="image"></div>
<div class="buy gutters">
<p>Hendrick's Gin</p>
<button id="gin_button">See the cocktail</button>
</div>
</div>
<div class="cocktail rum L-1-5 S-1-3" id="rum_button">
<div class="image"></div>
<div class="buy">
<p>Rum Don Papa</p>
<button id="rum_button">See the cocktail</button>
</div>
</div>
<div class="cocktail tequila L-1-5 S-1-3" id="tequila_button">
<div class="image"></div>
<div class="buy gutters">
<p>Tequila Patrón</p>
<button id="tequila_button">See the cocktail</button>
</div>
</div>
<div class="cocktail vodka L-1-5 S-1-3" id="vodka_button">
<div class="image"></div>
<div class="buy gutters">
<p>Vodka Cîroc</p>
<button id="vodka_button">See the cocktail</button>
</div>
</div>
<div class="cocktail whiskey L-1-5 S-1-3" id="whiskey_button">
<div class="image"></div>
<div class="buy gutters">
<p>Whiskey Maker's Mark</p>
<button id="whiskey_button">See the cocktail</button>
</div>
</div>
</div>
<section class="gin_section">
<div class="section_title">
Bijou
</div>
<div class="section_description">
A bijou is composed of gin, vermouth, and chartreuse.
<br />
This cocktail was invented by Harry Johnson, "the father of professional bartending", who called it bijou because it combined the colors of three jewels: gin for diamond, vermouth for ruby, and chartreuse for emerald.
</div>
<div class="section_ingredients">
<div class="section_ingredients_title">Ingredients</div>
<ul>
<li>2cl of gin</li>
<li>2cl of sweet vermouth</li>
<li>2cl of green chartreuse</li>
<li>Dash orange bitters</li>
</ul>
Garnish with lemon twist
</div>
</section>
<section class="rum_section">
<div class="section_title">
Negrense Sour
</div>
<div class="section_description">
This cocktail paints a vivid portrait of Sugarlandia.
<br />
Charged with agave syrup and lime, it’s straight from a place that believes in revolutionary ideals.
</div>
<div class="section_ingredients">
<ul>
<li>6cl dark rum</li>
<li>2cl fresh lime juice</li>
<li>1cl agave syrup</li>
<li>1 egg white</li>
</ul>
</div>
</section>
<section class="tequila_section">
<div class="section_title">
Juan Collins
</div>
<div class="section_description">
The Juan Collins is a Collins cocktail made from tequila, lime juice, sugar or some other sweetening agent, and club soda.
<br />
It is a variation of the original Tom Collins, first memorialized in writing in 1876 by "the father of American mixology" Jerry Thomas.
</div>
<div class="section_ingredients">
<ul>
<li>6cl of tequila</li>
<li>3cl of lemon juice</li>
<li>1.5cl of agave nectar</li>
<li>9cl of soda</li>
</ul>
Garnish with lime and cherry
</div>
</section>
<section class="vodka_section">
<div class="section_title">
Vodka Violet Sour
</div>
<div class="section_description">
The sweetness of this cocktail makes it easy to drink while its sourness makes its taste unique.
The vodka sublimates the round taste of the cocktail.
</div>
<div class="section_ingredients">
<ul>
<li>6vl vodka</li>
<li>3cl violet syrup</li>
<li>3cl lemon juice</li>
<li>1 egg white</li>
</ul>
Garnish with edible flowers
</div>
</section>
<section class="whiskey_section">
<div class="section_title">
Old Fashioned
</div>
<div class="section_description">
By the 1860s, it was common for orange curaçao, absinthe, and other liqueurs to be added to basic cocktails.
<br />
The original concoction, albeit in different proportions, came back into vogue, and was referred to as "old-fashioned".
</div>
<div class="section_ingredients">
<ul>
<li>6cl rye or bourbon</li>
<li>2 dashes angostura bitters</li>
<li>1 sugar cube</li>
<li>club soda</li>
</ul>
Garnish with an orange twist
</div>
</section>
</section>
<script src="assets/js/jquery-3.7.1.min.js"></script>
<script style="text/javascript">
$('button, .cocktail').on('click', function(elem){
console.log(elem);
$(".selected").removeClass('selected');
console.log(elem.target);
const cocktail_id = elem.currentTarget.id.replace("_button", "");
$('.'+cocktail_id).addClass('selected');
$('.'+cocktail_id+'_section').addClass('selected');
});
</script>
</body>
</html>