-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathindex.html
400 lines (363 loc) · 18.9 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.0">
<title>Wave Cafe HTML Template by Tooplate</title>
<link rel="stylesheet" href="fontawesome/css/all.min.css"> <!-- https://fontawesome.com/ -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet" /> <!-- https://fonts.google.com/ -->
<link rel="stylesheet" href="css/tooplate-wave-cafe.css">
<!--
Tooplate 2121 Wave Cafe
https://www.tooplate.com/view/2121-wave-cafe
-->
</head>
<body>
<div class="tm-container">
<div class="tm-row">
<!-- Site Header -->
<div class="tm-left">
<div class="tm-left-inner">
<div class="tm-site-header">
<i class="fas fa-coffee fa-3x tm-site-logo"></i>
<h1 class="tm-site-name">Wave Cafe</h1>
</div>
<nav class="tm-site-nav">
<ul class="tm-site-nav-ul">
<li class="tm-page-nav-item">
<a href="#drink" class="tm-page-link active">
<i class="fas fa-mug-hot tm-page-link-icon"></i>
<span>Drink Menu</span>
</a>
</li>
<li class="tm-page-nav-item">
<a href="#about" class="tm-page-link">
<i class="fas fa-users tm-page-link-icon"></i>
<span>About Us</span>
</a>
</li>
<li class="tm-page-nav-item">
<a href="#special" class="tm-page-link">
<i class="fas fa-glass-martini tm-page-link-icon"></i>
<span>Special Items</span>
</a>
</li>
<li class="tm-page-nav-item">
<a href="#contact" class="tm-page-link">
<i class="fas fa-comments tm-page-link-icon"></i>
<span>Contact</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
<div class="tm-right">
<main class="tm-main">
<div id="drink" class="tm-page-content">
<!-- Drink Menu Page -->
<nav class="tm-black-bg tm-drinks-nav">
<ul>
<li>
<a href="#" class="tm-tab-link active" data-id="cold">Iced Coffee</a>
</li>
<li>
<a href="#" class="tm-tab-link" data-id="hot">Hot Coffee</a>
</li>
<li>
<a href="#" class="tm-tab-link" data-id="juice">Fruit Juice</a>
</li>
</ul>
</nav>
<div id="cold" class="tm-tab-content">
<div class="tm-list">
<div class="tm-list-item">
<img src="img/iced-americano.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Iced Americano<span class="tm-list-item-price">$20.50</span></h3>
<p class="tm-list-item-description">Here is a short description for the first item. Wave Cafe Template is provided by Tooplate.</p>
</div>
</div>
<div class="tm-list-item">
<img src="img/iced-cappuccino.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Iced Cappuccino<span class="tm-list-item-price">$12.50</span></h3>
<p class="tm-list-item-description">Here is a list of 4 items or add more. You can use this template for commercial purposes.</p>
</div>
</div>
<div class="tm-list-item">
<img src="img/iced-espresso.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Iced Espresso<span class="tm-list-item-price">$14.25</span></h3>
<p class="tm-list-item-description">You are not permitted to redistribute this template ZIP file on any other template websites.</p>
</div>
</div>
<div class="tm-list-item">
<img src="img/iced-latte.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Iced Latte<span class="tm-list-item-price">$11.50</span></h3>
<p class="tm-list-item-description">Contents are organized into 3 tabs. Please <a href="https://www.tooplate.com/contact" rel="nofollow" target="_parent">contact Tooplate</a> if you have anything to ask.</p>
</div>
</div>
</div>
</div>
<div id="hot" class="tm-tab-content">
<div class="tm-list">
<div class="tm-list-item">
<img src="img/hot-americano.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Hot Americano<span class="tm-list-item-price">$8.50</span></h3>
<p class="tm-list-item-description">Here is a short description for the item along with a squared thumbnail.</p>
</div>
</div>
<div class="tm-list-item">
<img src="img/hot-cappuccino.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Hot Cappuccino<span class="tm-list-item-price">$9.50</span></h3>
<p class="tm-list-item-description">Here is a list of 4 items that can add more as you need. Only content area will be scrolling.</p>
</div>
</div>
<div class="tm-list-item">
<img src="img/hot-espresso.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Hot Espresso<span class="tm-list-item-price">$7.50</span></h3>
<p class="tm-list-item-description">Left side logo and main menu are fixed. The video background is fixed.</p>
</div>
</div>
<div class="tm-list-item">
<img src="img/hot-latte.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Hot Latte<span class="tm-list-item-price">$6.50</span></h3>
<p class="tm-list-item-description">Page contents are organized into 3 tabs to show different lists of items.</p>
</div>
</div>
</div>
</div>
<div id="juice" class="tm-tab-content">
<div class="tm-list">
<div class="tm-list-item">
<img src="img/smoothie-1.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Strawberry Smoothie<span class="tm-list-item-price">$12.50</span></h3>
<p class="tm-list-item-description">Here is a short description for the item along with a squared thumbnail.</p>
</div>
</div>
<div class="tm-list-item">
<img src="img/smoothie-2.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Red Berry Smoothie<span class="tm-list-item-price">$14.50</span></h3>
<p class="tm-list-item-description">Here is a list of 4 items or add more. You can use this template for commercial purposes.</p>
</div>
</div>
<div class="tm-list-item">
<img src="img/smoothie-3.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Pineapple Smoothie<span class="tm-list-item-price">$16.50</span></h3>
<p class="tm-list-item-description">Left side logo and main menu are fixed. The video background is fixed.</p>
</div>
</div>
<div class="tm-list-item">
<img src="img/smoothie-4.png" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Spinach Smoothie<span class="tm-list-item-price">$18.50</span></h3>
<p class="tm-list-item-description">You are not allowed to redistribute the template ZIP file on other template sites.</p>
</div>
</div>
</div>
</div>
<!-- end Drink Menu Page -->
</div>
<!-- About Us Page -->
<div id="about" class="tm-page-content">
<div class="tm-black-bg tm-mb-20 tm-about-box-1">
<h2 class="tm-text-primary tm-about-header">About Wave Cafe</h2>
<div class="tm-list-item tm-list-item-2">
<img src="img/about-1.png" alt="Image" class="tm-list-item-img tm-list-item-img-big">
<div class="tm-list-item-text-2">
<p>Wave Cafe is a one-page video background HTML CSS template from Tooplate. You can use this for your business websites.</p>
<p>You can also use this for your client websites which you get paid for your website services. Please tell your friends about us.</p>
</div>
</div>
</div>
<div class="tm-black-bg tm-mb-20 tm-about-box-2">
<div class="tm-list-item tm-list-item-2">
<div class="tm-list-item-text-2">
<h2 class="tm-text-primary">How we began</h2>
<p>If you wish to support us, please contact Tooplate. Thank you. Duis bibendum erat nec ipsum consectetur sodales.</p>
</div>
<img src="img/about-2.png" alt="Image" class="tm-list-item-img tm-list-item-img-big tm-img-right">
</div>
<p>Donec non urna elit. Quisque ut magna in dui mattis iaculis eu finibus metus. Suspendisse vel mi a lacus finibus vehicula vel ut diam. Nam pellentesque, mi quis ullamcorper.</p>
</div>
</div>
<!-- end About Us Page -->
<!-- Special Items Page -->
<div id="special" class="tm-page-content">
<div class="tm-special-items">
<div class="tm-black-bg tm-special-item">
<img src="img/special-01.jpg" alt="Image">
<div class="tm-special-item-description">
<h2 class="tm-text-primary tm-special-item-title">Special One</h2>
<p class="tm-special-item-text">Here is a short text description for the first special item. You are not allowed to redistribute this template ZIP file.</p>
</div>
</div>
<div class="tm-black-bg tm-special-item">
<img src="img/special-02.jpg" alt="Image">
<div class="tm-special-item-description">
<h2 class="tm-text-primary tm-special-item-title">Second Item</h2>
<p class="tm-special-item-text">You are allowed to download, modify and use this template for your commercial or non-commercial websites.</p>
</div>
</div>
<div class="tm-black-bg tm-special-item">
<img src="img/special-03.jpg" alt="Image">
<div class="tm-special-item-description">
<h2 class="tm-text-primary tm-special-item-title">Third Special Item</h2>
<p class="tm-special-item-text">Pellentesque in ultrices mi, quis mollis nulla. Quisque sed commodo est, quis tincidunt nunc.</p>
</div>
</div>
<div class="tm-black-bg tm-special-item">
<img src="img/special-04.jpg" alt="Image">
<div class="tm-special-item-description">
<h2 class="tm-text-primary tm-special-item-title">Special Item Fourth</h2>
<p class="tm-special-item-text">Vivamus finibus nulla sed metus sagittis, sed ultrices magna aliquam. Mauris fermentum.</p>
</div>
</div>
<div class="tm-black-bg tm-special-item">
<img src="img/special-05.jpg" alt="Image">
<div class="tm-special-item-description">
<h2 class="tm-text-primary tm-special-item-title">Sixth Sense</h2>
<p class="tm-special-item-text">Here is a short text description for sixth item. This text is four lines.</p>
</div>
</div>
<div class="tm-black-bg tm-special-item">
<img src="img/special-06.jpg" alt="Image">
<div class="tm-special-item-description">
<h2 class="tm-text-primary tm-special-item-title">Seventh Item</h2>
<p class="tm-special-item-text">Curabitur eget erat sit amet sapien aliquet vulputate quis sed arcu.</p>
</div>
</div>
</div>
</div>
<!-- end Special Items Page -->
<!-- Contact Page -->
<div id="contact" class="tm-page-content">
<div class="tm-black-bg tm-contact-text-container">
<h2 class="tm-text-primary">Contact Wave</h2>
<p>Wave Cafe Template has a video background. You can use this layout for your websites. Please contact Tooplate's Facebook page. Tell your friends about our website.</p>
</div>
<div class="tm-black-bg tm-contact-form-container tm-align-right">
<form action="" method="POST" id="contact-form">
<div class="tm-form-group">
<input type="text" name="name" class="tm-form-control" placeholder="Name" required="" />
</div>
<div class="tm-form-group">
<input type="email" name="email" class="tm-form-control" placeholder="Email" required="" />
</div>
<div class="tm-form-group tm-mb-30">
<textarea rows="6" name="message" class="tm-form-control" placeholder="Message" required=""></textarea>
</div>
<div>
<button type="submit" class="tm-btn-primary tm-align-right">
Submit
</button>
</div>
</form>
</div>
</div>
<!-- end Contact Page -->
</main>
</div>
</div>
<footer class="tm-site-footer">
<p class="tm-black-bg tm-footer-text">Copyright 2020 Wave Cafe
| Design: <a href="https://www.tooplate.com" class="tm-footer-link" rel="sponsored" target="_parent">Tooplate</a></p>
</footer>
</div>
<!-- Background video -->
<div class="tm-video-wrapper">
<i id="tm-video-control-button" class="fas fa-pause"></i>
<video autoplay muted loop id="tm-video">
<source src="video/wave-cafe-video-bg.mp4" type="video/mp4">
</video>
</div>
<script src="js/jquery-3.4.1.min.js"></script>
<script>
function setVideoSize() {
const vidWidth = 1920;
const vidHeight = 1080;
const windowWidth = window.innerWidth;
const windowHeight = window.innerHeight;
const tempVidWidth = windowHeight * vidWidth / vidHeight;
const tempVidHeight = windowWidth * vidHeight / vidWidth;
const newVidWidth = tempVidWidth > windowWidth ? tempVidWidth : windowWidth;
const newVidHeight = tempVidHeight > windowHeight ? tempVidHeight : windowHeight;
const tmVideo = $('#tm-video');
tmVideo.css('width', newVidWidth);
tmVideo.css('height', newVidHeight);
}
function openTab(evt, id) {
$('.tm-tab-content').hide();
$('#' + id).show();
$('.tm-tab-link').removeClass('active');
$(evt.currentTarget).addClass('active');
}
function initPage() {
let pageId = location.hash;
if(pageId) {
highlightMenu($(`.tm-page-link[href^="${pageId}"]`));
showPage($(pageId));
}
else {
pageId = $('.tm-page-link.active').attr('href');
showPage($(pageId));
}
}
function highlightMenu(menuItem) {
$('.tm-page-link').removeClass('active');
menuItem.addClass('active');
}
function showPage(page) {
$('.tm-page-content').hide();
page.show();
}
$(document).ready(function(){
/***************** Pages *****************/
initPage();
$('.tm-page-link').click(function(event) {
if(window.innerWidth > 991) {
event.preventDefault();
}
highlightMenu($(event.currentTarget));
showPage($(event.currentTarget.hash));
});
/***************** Tabs *******************/
$('.tm-tab-link').on('click', e => {
e.preventDefault();
openTab(e, $(e.target).data('id'));
});
$('.tm-tab-link.active').click(); // Open default tab
/************** Video background *********/
setVideoSize();
// Set video background size based on window size
let timeout;
window.onresize = function(){
clearTimeout(timeout);
timeout = setTimeout(setVideoSize, 100);
};
// Play/Pause button for video background
const btn = $("#tm-video-control-button");
btn.on("click", function(e) {
const video = document.getElementById("tm-video");
$(this).removeClass();
if (video.paused) {
video.play();
$(this).addClass("fas fa-pause");
} else {
video.pause();
$(this).addClass("fas fa-play");
}
});
});
</script>
</body>
</html>