123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397 |
- <!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">
- </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">$10.25</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/background.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>
|