index.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Wave Cafe HTML Template by Tooplate</title>
  7. <link rel="stylesheet" href="fontawesome/css/all.min.css"> <!-- https://fontawesome.com/ -->
  8. <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet" /> <!-- https://fonts.google.com/ -->
  9. <link rel="stylesheet" href="css/tooplate-wave-cafe.css">
  10. </head>
  11. <body>
  12. <div class="tm-container">
  13. <div class="tm-row">
  14. <!-- Site Header -->
  15. <div class="tm-left">
  16. <div class="tm-left-inner">
  17. <div class="tm-site-header">
  18. <i class="fas fa-coffee fa-3x tm-site-logo"></i>
  19. <h1 class="tm-site-name">Wave Cafe</h1>
  20. </div>
  21. <nav class="tm-site-nav">
  22. <ul class="tm-site-nav-ul">
  23. <li class="tm-page-nav-item">
  24. <a href="#drink" class="tm-page-link active">
  25. <i class="fas fa-mug-hot tm-page-link-icon"></i>
  26. <span>Drink Menu</span>
  27. </a>
  28. </li>
  29. <li class="tm-page-nav-item">
  30. <a href="#about" class="tm-page-link">
  31. <i class="fas fa-users tm-page-link-icon"></i>
  32. <span>About Us</span>
  33. </a>
  34. </li>
  35. <li class="tm-page-nav-item">
  36. <a href="#special" class="tm-page-link">
  37. <i class="fas fa-glass-martini tm-page-link-icon"></i>
  38. <span>Special Items</span>
  39. </a>
  40. </li>
  41. <li class="tm-page-nav-item">
  42. <a href="#contact" class="tm-page-link">
  43. <i class="fas fa-comments tm-page-link-icon"></i>
  44. <span>Contact</span>
  45. </a>
  46. </li>
  47. </ul>
  48. </nav>
  49. </div>
  50. </div>
  51. <div class="tm-right">
  52. <main class="tm-main">
  53. <div id="drink" class="tm-page-content">
  54. <!-- Drink Menu Page -->
  55. <nav class="tm-black-bg tm-drinks-nav">
  56. <ul>
  57. <li>
  58. <a href="#" class="tm-tab-link active" data-id="cold">Iced Coffee</a>
  59. </li>
  60. <li>
  61. <a href="#" class="tm-tab-link" data-id="hot">Hot Coffee</a>
  62. </li>
  63. <li>
  64. <a href="#" class="tm-tab-link" data-id="juice">Fruit Juice</a>
  65. </li>
  66. </ul>
  67. </nav>
  68. <div id="cold" class="tm-tab-content">
  69. <div class="tm-list">
  70. <div class="tm-list-item">
  71. <img src="img/iced-americano.png" alt="Image" class="tm-list-item-img">
  72. <div class="tm-black-bg tm-list-item-text">
  73. <h3 class="tm-list-item-name">Iced Americano<span class="tm-list-item-price">$10.25</span></h3>
  74. <p class="tm-list-item-description">Here is a short description for the first item. Wave Cafe Template is provided by Tooplate.</p>
  75. </div>
  76. </div>
  77. <div class="tm-list-item">
  78. <img src="img/iced-cappuccino.png" alt="Image" class="tm-list-item-img">
  79. <div class="tm-black-bg tm-list-item-text">
  80. <h3 class="tm-list-item-name">Iced Cappuccino<span class="tm-list-item-price">$12.50</span></h3>
  81. <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>
  82. </div>
  83. </div>
  84. <div class="tm-list-item">
  85. <img src="img/iced-espresso.png" alt="Image" class="tm-list-item-img">
  86. <div class="tm-black-bg tm-list-item-text">
  87. <h3 class="tm-list-item-name">Iced Espresso<span class="tm-list-item-price">$14.25</span></h3>
  88. <p class="tm-list-item-description">You are not permitted to redistribute this template ZIP file on any other template websites.</p>
  89. </div>
  90. </div>
  91. <div class="tm-list-item">
  92. <img src="img/iced-latte.png" alt="Image" class="tm-list-item-img">
  93. <div class="tm-black-bg tm-list-item-text">
  94. <h3 class="tm-list-item-name">Iced Latte<span class="tm-list-item-price">$11.50</span></h3>
  95. <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>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <div id="hot" class="tm-tab-content">
  101. <div class="tm-list">
  102. <div class="tm-list-item">
  103. <img src="img/hot-americano.png" alt="Image" class="tm-list-item-img">
  104. <div class="tm-black-bg tm-list-item-text">
  105. <h3 class="tm-list-item-name">Hot Americano<span class="tm-list-item-price">$8.50</span></h3>
  106. <p class="tm-list-item-description">Here is a short description for the item along with a squared thumbnail.</p>
  107. </div>
  108. </div>
  109. <div class="tm-list-item">
  110. <img src="img/hot-cappuccino.png" alt="Image" class="tm-list-item-img">
  111. <div class="tm-black-bg tm-list-item-text">
  112. <h3 class="tm-list-item-name">Hot Cappuccino<span class="tm-list-item-price">$9.50</span></h3>
  113. <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>
  114. </div>
  115. </div>
  116. <div class="tm-list-item">
  117. <img src="img/hot-espresso.png" alt="Image" class="tm-list-item-img">
  118. <div class="tm-black-bg tm-list-item-text">
  119. <h3 class="tm-list-item-name">Hot Espresso<span class="tm-list-item-price">$7.50</span></h3>
  120. <p class="tm-list-item-description">Left side logo and main menu are fixed. The video background is fixed.</p>
  121. </div>
  122. </div>
  123. <div class="tm-list-item">
  124. <img src="img/hot-latte.png" alt="Image" class="tm-list-item-img">
  125. <div class="tm-black-bg tm-list-item-text">
  126. <h3 class="tm-list-item-name">Hot Latte<span class="tm-list-item-price">$6.50</span></h3>
  127. <p class="tm-list-item-description">Page contents are organized into 3 tabs to show different lists of items.</p>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. <div id="juice" class="tm-tab-content">
  133. <div class="tm-list">
  134. <div class="tm-list-item">
  135. <img src="img/smoothie-1.png" alt="Image" class="tm-list-item-img">
  136. <div class="tm-black-bg tm-list-item-text">
  137. <h3 class="tm-list-item-name">Strawberry Smoothie<span class="tm-list-item-price">$12.50</span></h3>
  138. <p class="tm-list-item-description">Here is a short description for the item along with a squared thumbnail.</p>
  139. </div>
  140. </div>
  141. <div class="tm-list-item">
  142. <img src="img/smoothie-2.png" alt="Image" class="tm-list-item-img">
  143. <div class="tm-black-bg tm-list-item-text">
  144. <h3 class="tm-list-item-name">Red Berry Smoothie<span class="tm-list-item-price">$14.50</span></h3>
  145. <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>
  146. </div>
  147. </div>
  148. <div class="tm-list-item">
  149. <img src="img/smoothie-3.png" alt="Image" class="tm-list-item-img">
  150. <div class="tm-black-bg tm-list-item-text">
  151. <h3 class="tm-list-item-name">Pineapple Smoothie<span class="tm-list-item-price">$16.50</span></h3>
  152. <p class="tm-list-item-description">Left side logo and main menu are fixed. The video background is fixed.</p>
  153. </div>
  154. </div>
  155. <div class="tm-list-item">
  156. <img src="img/smoothie-4.png" alt="Image" class="tm-list-item-img">
  157. <div class="tm-black-bg tm-list-item-text">
  158. <h3 class="tm-list-item-name">Spinach Smoothie<span class="tm-list-item-price">$18.50</span></h3>
  159. <p class="tm-list-item-description">You are not allowed to redistribute the template ZIP file on other template sites.</p>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. <!-- end Drink Menu Page -->
  165. </div>
  166. <!-- About Us Page -->
  167. <div id="about" class="tm-page-content">
  168. <div class="tm-black-bg tm-mb-20 tm-about-box-1">
  169. <h2 class="tm-text-primary tm-about-header">About Wave Cafe</h2>
  170. <div class="tm-list-item tm-list-item-2">
  171. <img src="img/about-1.png" alt="Image" class="tm-list-item-img tm-list-item-img-big">
  172. <div class="tm-list-item-text-2">
  173. <p>Wave Cafe is a one-page video background HTML CSS template from Tooplate. You can use this for your business websites.</p>
  174. <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>
  175. </div>
  176. </div>
  177. </div>
  178. <div class="tm-black-bg tm-mb-20 tm-about-box-2">
  179. <div class="tm-list-item tm-list-item-2">
  180. <div class="tm-list-item-text-2">
  181. <h2 class="tm-text-primary">How we began</h2>
  182. <p>If you wish to support us, please contact Tooplate. Thank you. Duis bibendum erat nec ipsum consectetur sodales.</p>
  183. </div>
  184. <img src="img/about-2.png" alt="Image" class="tm-list-item-img tm-list-item-img-big tm-img-right">
  185. </div>
  186. <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>
  187. </div>
  188. </div>
  189. <!-- end About Us Page -->
  190. <!-- Special Items Page -->
  191. <div id="special" class="tm-page-content">
  192. <div class="tm-special-items">
  193. <div class="tm-black-bg tm-special-item">
  194. <img src="img/special-01.jpg" alt="Image">
  195. <div class="tm-special-item-description">
  196. <h2 class="tm-text-primary tm-special-item-title">Special One</h2>
  197. <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>
  198. </div>
  199. </div>
  200. <div class="tm-black-bg tm-special-item">
  201. <img src="img/special-02.jpg" alt="Image">
  202. <div class="tm-special-item-description">
  203. <h2 class="tm-text-primary tm-special-item-title">Second Item</h2>
  204. <p class="tm-special-item-text">You are allowed to download, modify and use this template for your commercial or non-commercial websites.</p>
  205. </div>
  206. </div>
  207. <div class="tm-black-bg tm-special-item">
  208. <img src="img/special-03.jpg" alt="Image">
  209. <div class="tm-special-item-description">
  210. <h2 class="tm-text-primary tm-special-item-title">Third Special Item</h2>
  211. <p class="tm-special-item-text">Pellentesque in ultrices mi, quis mollis nulla. Quisque sed commodo est, quis tincidunt nunc.</p>
  212. </div>
  213. </div>
  214. <div class="tm-black-bg tm-special-item">
  215. <img src="img/special-04.jpg" alt="Image">
  216. <div class="tm-special-item-description">
  217. <h2 class="tm-text-primary tm-special-item-title">Special Item Fourth</h2>
  218. <p class="tm-special-item-text">Vivamus finibus nulla sed metus sagittis, sed ultrices magna aliquam. Mauris fermentum.</p>
  219. </div>
  220. </div>
  221. <div class="tm-black-bg tm-special-item">
  222. <img src="img/special-05.jpg" alt="Image">
  223. <div class="tm-special-item-description">
  224. <h2 class="tm-text-primary tm-special-item-title">Sixth Sense</h2>
  225. <p class="tm-special-item-text">Here is a short text description for sixth item. This text is four lines.</p>
  226. </div>
  227. </div>
  228. <div class="tm-black-bg tm-special-item">
  229. <img src="img/special-06.jpg" alt="Image">
  230. <div class="tm-special-item-description">
  231. <h2 class="tm-text-primary tm-special-item-title">Seventh Item</h2>
  232. <p class="tm-special-item-text">Curabitur eget erat sit amet sapien aliquet vulputate quis sed arcu.</p>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <!-- end Special Items Page -->
  238. <!-- Contact Page -->
  239. <div id="contact" class="tm-page-content">
  240. <div class="tm-black-bg tm-contact-text-container">
  241. <h2 class="tm-text-primary">Contact Wave</h2>
  242. <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>
  243. </div>
  244. <div class="tm-black-bg tm-contact-form-container tm-align-right">
  245. <form action="" method="POST" id="contact-form">
  246. <div class="tm-form-group">
  247. <input type="text" name="name" class="tm-form-control" placeholder="Name" required="" />
  248. </div>
  249. <div class="tm-form-group">
  250. <input type="email" name="email" class="tm-form-control" placeholder="Email" required="" />
  251. </div>
  252. <div class="tm-form-group tm-mb-30">
  253. <textarea rows="6" name="message" class="tm-form-control" placeholder="Message" required=""></textarea>
  254. </div>
  255. <div>
  256. <button type="submit" class="tm-btn-primary tm-align-right">
  257. Submit
  258. </button>
  259. </div>
  260. </form>
  261. </div>
  262. </div>
  263. <!-- end Contact Page -->
  264. </main>
  265. </div>
  266. </div>
  267. <footer class="tm-site-footer">
  268. <p class="tm-black-bg tm-footer-text">Copyright 2020 Wave Cafe
  269. | Design: <a href="https://www.tooplate.com" class="tm-footer-link" rel="sponsored" target="_parent">Tooplate</a></p>
  270. </footer>
  271. </div>
  272. <!-- Background video -->
  273. <div class="tm-video-wrapper">
  274. <i id="tm-video-control-button" class="fas fa-pause"></i>
  275. <video autoplay muted loop id="tm-video">
  276. <source src="video/background.mp4" type="video/mp4">
  277. </video>
  278. </div>
  279. <script src="js/jquery-3.4.1.min.js"></script>
  280. <script>
  281. function setVideoSize() {
  282. const vidWidth = 1920;
  283. const vidHeight = 1080;
  284. const windowWidth = window.innerWidth;
  285. const windowHeight = window.innerHeight;
  286. const tempVidWidth = windowHeight * vidWidth / vidHeight;
  287. const tempVidHeight = windowWidth * vidHeight / vidWidth;
  288. const newVidWidth = tempVidWidth > windowWidth ? tempVidWidth : windowWidth;
  289. const newVidHeight = tempVidHeight > windowHeight ? tempVidHeight : windowHeight;
  290. const tmVideo = $('#tm-video');
  291. tmVideo.css('width', newVidWidth);
  292. tmVideo.css('height', newVidHeight);
  293. }
  294. function openTab(evt, id) {
  295. $('.tm-tab-content').hide();
  296. $('#' + id).show();
  297. $('.tm-tab-link').removeClass('active');
  298. $(evt.currentTarget).addClass('active');
  299. }
  300. function initPage() {
  301. let pageId = location.hash;
  302. if(pageId) {
  303. highlightMenu($(`.tm-page-link[href^="${pageId}"]`));
  304. showPage($(pageId));
  305. }
  306. else {
  307. pageId = $('.tm-page-link.active').attr('href');
  308. showPage($(pageId));
  309. }
  310. }
  311. function highlightMenu(menuItem) {
  312. $('.tm-page-link').removeClass('active');
  313. menuItem.addClass('active');
  314. }
  315. function showPage(page) {
  316. $('.tm-page-content').hide();
  317. page.show();
  318. }
  319. $(document).ready(function(){
  320. /***************** Pages *****************/
  321. initPage();
  322. $('.tm-page-link').click(function(event) {
  323. if(window.innerWidth > 991) {
  324. event.preventDefault();
  325. }
  326. highlightMenu($(event.currentTarget));
  327. showPage($(event.currentTarget.hash));
  328. });
  329. /***************** Tabs *******************/
  330. $('.tm-tab-link').on('click', e => {
  331. e.preventDefault();
  332. openTab(e, $(e.target).data('id'));
  333. });
  334. $('.tm-tab-link.active').click(); // Open default tab
  335. /************** Video background *********/
  336. setVideoSize();
  337. // Set video background size based on window size
  338. let timeout;
  339. window.onresize = function(){
  340. clearTimeout(timeout);
  341. timeout = setTimeout(setVideoSize, 100);
  342. };
  343. // Play/Pause button for video background
  344. const btn = $("#tm-video-control-button");
  345. btn.on("click", function(e) {
  346. const video = document.getElementById("tm-video");
  347. $(this).removeClass();
  348. if (video.paused) {
  349. video.play();
  350. $(this).addClass("fas fa-pause");
  351. } else {
  352. video.pause();
  353. $(this).addClass("fas fa-play");
  354. }
  355. });
  356. });
  357. </script>
  358. </body>
  359. </html>