-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
452 lines (414 loc) · 22.6 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
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
<!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">
<img src="img/New Way.png" alt="Image" class="tm-list-item-img">
<h1 class="tm-site-name">New Way Juices</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>Quem Somos</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>Itens Especiais</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>Contato</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">Sucos Detox</a>
</li>
<li>
<a href="#" class="tm-tab-link" data-id="hot">Café Quente</a>
</li>
<li>
<a href="#" class="tm-tab-link" data-id="juice">Sucos de Frutas</a>
</li>
<li>
<a href="#" class="tm-tab-link" data-id="sanduiches">Sanduiches Naturais</a>
</li>
</ul>
</nav>
<div id="cold" class="tm-tab-content">
<div class="tm-list">
<div class="tm-list-item">
<img src="img/alface.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Suco de Alface<span class="tm-list-item-price">$00.00</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/cenoura.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Suco de Cenoura<span class="tm-list-item-price">$00.00</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/beterraba.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Suco de Cenoura Beterraba e limão<span class="tm-list-item-price">$00.00</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/abacaxi.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Suco de <span class="tm-list-item-price">00.00</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 class="tm-list-item">
<img src="img/morango.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Suco de <span class="tm-list-item-price">00.00</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/cappucino.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Cappuccino com Ovomaltine<span class="tm-list-item-price">$00.00</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">Cappuccino quente<span class="tm-list-item-price">$00.00</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">Expresso Quente<span class="tm-list-item-price">$00.00</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">Latte Quente<span class="tm-list-item-price">$00.00</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 class="tm-list-item">
<img src="img/nescafe.jpg " alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Nescafé<span class="tm-list-item-price">00.00</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 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">Café Tradicional<span class="tm-list-item-price">00.00</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="juice" class="tm-tab-content">
<div class="tm-list">
<div class="tm-list-item">
<img src="img/morango.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Suco de Morango<span class="tm-list-item-price">$00.00</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">Smoothie de Amora Vermelha<span class="tm-list-item-price">$00.00</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">Smoothie de Abacaxi<span class="tm-list-item-price">$00.00</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">Smoothie de espinafre<span class="tm-list-item-price">$00.00</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>
<div id="sanduiches" class="tm-tab-content">
<div class="tm-list">
<div class="tm-list-item">
<img src="img/atum.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Sanduiche de Atum<span class="tm-list-item-price">$00.00</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/frango.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Sanduiche de Frango<span class="tm-list-item-price">$00.00</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/peru.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Sanduiche de Peito de Peru<span class="tm-list-item-price">$00.00</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/ceno.jpg" alt="Image" class="tm-list-item-img">
<div class="tm-black-bg tm-list-item-text">
<h3 class="tm-list-item-name">Sanduiche de Cenoura<span class="tm-list-item-price">$00.00</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">Sobre a New Way Juices</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>Somos um comércio de bebidas especializadas, mais voltadamente pra sucos naturais, e também alguns alimentos, também naturais, pensando no seu bem estar! temos o intuito de proporcionar aos nossos clientes, a possibilidade de manter sua saúde e bons hábitos em dia, com praticidade, e com um cuidado especial e carinho que temos ! Na correria do seu dia-á-dia, podem contar conosco! nosso propósito é proporcionar a melhor opção possível pro cliente, em relação ao seu modo de se alimentar durante o tempo, que sabemos que requer tanta organização para conseguirmos realizar todas as nossas atividades.</p>
<p></p>
</div>
</div>
</div>
<div class="tm-list-item tm-list-item-2">
<div class="tm-list-item-text-2">
</div>
</div>
</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">__________</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">__________</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">__________</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">__________</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">___________</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">___________</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="Nome" 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="Mensagem" required=""></textarea>
</div>
<div>
<button type="submit" class="tm-btn-primary tm-align-right">
Enviar
</button>
</div>
</form>
</div>
</div>
<!-- end Contact Page -->
</main>
</div>
</div>
<footer class="tm-site-footer">
<p class="tm-black-bg tm-footer-text">Criação e Design: Vinícius S. Trindade
| 2021/10/07</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>