Horje Website
CSS Responsive Web Design – Templates – Cafe Template – CSS Code

CSS Responsive Web Design – Templates – Cafe Template

CSS Responsive Web Design - Templates - Cafe Template - CSS Code


 
  1. <!DOCTYPE html>
  2. <html>
  3. <title>W3.CSS Template</title>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  7. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inconsolata">
  8. <style>
  9. body, html {
  10. height: 100%;
  11. font-family: "Inconsolata", sans-serif;
  12. }
  13. .bgimg {
  14. background-position: center;
  15. background-size: cover;
  16. background-image: url("/w3images/coffeehouse.jpg");
  17. min-height: 75%;
  18. }
  19. .menu {
  20. display: none;
  21. }
  22. </style>
  23. <body>
  24. <!-- Links (sit on top) -->
  25. <div class="w3-top">
  26. <div class="w3-row w3-padding w3-black">
  27. <div class="w3-col s3">
  28. <a href="#" class="w3-button w3-block w3-black">HOME</a>
  29. </div>
  30. <div class="w3-col s3">
  31. <a href="#about" class="w3-button w3-block w3-black">ABOUT</a>
  32. </div>
  33. <div class="w3-col s3">
  34. <a href="#menu" class="w3-button w3-block w3-black">MENU</a>
  35. </div>
  36. <div class="w3-col s3">
  37. <a href="#where" class="w3-button w3-block w3-black">WHERE</a>
  38. </div>
  39. </div>
  40. </div>
  41. <!-- Header with image -->
  42. <header class="bgimg w3-display-container w3-grayscale-min" id="home">
  43. <div class="w3-display-bottomleft w3-center w3-padding-large w3-hide-small">
  44. <span class="w3-tag">Open from 6am to 5pm</span>
  45. </div>
  46. <div class="w3-display-middle w3-center">
  47. <span class="w3-text-white" style="font-size:90px">the<br>Cafe</span>
  48. </div>
  49. <div class="w3-display-bottomright w3-center w3-padding-large">
  50. <span class="w3-text-white">15 Adr street, 5015</span>
  51. </div>
  52. </header>
  53. <!-- Add a background color and large text to the whole page -->
  54. <div class="w3-sand w3-grayscale w3-large">
  55. <!-- About Container -->
  56. <div class="w3-container" id="about">
  57. <div class="w3-content" style="max-width:700px">
  58. <h5 class="w3-center w3-padding-64"><span class="w3-tag w3-wide">ABOUT THE CAFE</span></h5>
  59. <p>The Cafe was founded in blabla by Mr. Smith in lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
  60. <p>In addition to our full espresso and brew bar menu, we serve fresh made-to-order breakfast and lunch sandwiches, as well as a selection of sides and salads and other good stuff.</p>
  61. <div class="w3-panel w3-leftbar w3-light-grey">
  62. <p><i>"Use products from nature for what it's worth - but never too early, nor too late." Fresh is the new sweet.</i></p>
  63. <p>Chef, Coffeeist and Owner: Liam Brown</p>
  64. </div>
  65. <img src="https://www.w3schools.com//w3images/coffeeshop.jpg" style="width:100%;max-width:1000px" class="w3-margin-top">
  66. <p><strong>Opening hours:</strong> everyday from 6am to 5pm.</p>
  67. <p><strong>Address:</strong> 15 Adr street, 5015, NY</p>
  68. </div>
  69. </div>
  70. <!-- Menu Container -->
  71. <div class="w3-container" id="menu">
  72. <div class="w3-content" style="max-width:700px">
  73. <h5 class="w3-center w3-padding-48"><span class="w3-tag w3-wide">THE MENU</span></h5>
  74. <div class="w3-row w3-center w3-card w3-padding">
  75. <a href="javascript:void(0)" onclick="openMenu(event, 'Eat');" id="myLink">
  76. <div class="w3-col s6 tablink">Eat</div>
  77. </a>
  78. <a href="javascript:void(0)" onclick="openMenu(event, 'Drinks');">
  79. <div class="w3-col s6 tablink">Drink</div>
  80. </a>
  81. </div>
  82. <div id="Eat" class="w3-container menu w3-padding-48 w3-card">
  83. <h5>Bread Basket</h5>
  84. <p class="w3-text-grey">Assortment of fresh baked fruit breads and muffins 5.50</p><br>
  85. <h5>Honey Almond Granola with Fruits</h5>
  86. <p class="w3-text-grey">Natural cereal of honey toasted oats, raisins, almonds and dates 7.00</p><br>
  87. <h5>Belgian Waffle</h5>
  88. <p class="w3-text-grey">Vanilla flavored batter with malted flour 7.50</p><br>
  89. <h5>Scrambled eggs</h5>
  90. <p class="w3-text-grey">Scrambled eggs, roasted red pepper and garlic, with green onions 7.50</p><br>
  91. <h5>Blueberry Pancakes</h5>
  92. <p class="w3-text-grey">With syrup, butter and lots of berries 8.50</p>
  93. </div>
  94. <div id="Drinks" class="w3-container menu w3-padding-48 w3-card">
  95. <h5>Coffee</h5>
  96. <p class="w3-text-grey">Regular coffee 2.50</p><br>
  97. <h5>Chocolato</h5>
  98. <p class="w3-text-grey">Chocolate espresso with milk 4.50</p><br>
  99. <h5>Corretto</h5>
  100. <p class="w3-text-grey">Whiskey and coffee 5.00</p><br>
  101. <h5>Iced tea</h5>
  102. <p class="w3-text-grey">Hot tea, except not hot 3.00</p><br>
  103. <h5>Soda</h5>
  104. <p class="w3-text-grey">Coke, Sprite, Fanta, etc. 2.50</p>
  105. </div>
  106. <img src="https://www.w3schools.com//w3images/coffeehouse2.jpg" style="width:100%;max-width:1000px;margin-top:32px;">
  107. </div>
  108. </div>
  109. <!-- Contact/Area Container -->
  110. <div class="w3-container" id="where" style="padding-bottom:32px;">
  111. <div class="w3-content" style="max-width:700px">
  112. <h5 class="w3-center w3-padding-48"><span class="w3-tag w3-wide">WHERE TO FIND US</span></h5>
  113. <p>Find us at some address at some place.</p>
  114. <img src="https://www.w3schools.com//w3images/map.jpg" class="w3-image" style="width:100%">
  115. <p><span class="w3-tag">FYI!</span> We offer full-service catering for any event, large or small. We understand your needs and we will cater the food to satisfy the biggerst criteria of them all, both look and taste.</p>
  116. <p><strong>Reserve</strong> a table, ask for today's special or just send us a message:</p>
  117. <form action="/action_page.php" target="_blank">
  118. <p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Name" required name="Name"></p>
  119. <p><input class="w3-input w3-padding-16 w3-border" type="number" placeholder="How many people" required name="People"></p>
  120. <p><input class="w3-input w3-padding-16 w3-border" type="datetime-local" placeholder="Date and time" required name="date" value="2017-11-16T20:00"></p>
  121. <p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Message \ Special requirements" required name="Message"></p>
  122. <p><button class="w3-button w3-black" type="submit">SEND MESSAGE</button></p>
  123. </form>
  124. </div>
  125. </div>
  126. <!-- End page content -->
  127. </div>
  128. <!-- Footer -->
  129. <footer class="w3-center w3-light-grey w3-padding-48 w3-large">
  130. <p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" title="W3.CSS" target="_blank" class="w3-hover-text-green">w3.css</a></p>
  131. </footer>
  132. <script>
  133. // Tabbed Menu
  134. function openMenu(evt, menuName) {
  135. var i, x, tablinks;
  136. x = document.getElementsByClassName("menu");
  137. for (i = 0; i < x.length; i++) {
  138. x[i].style.display = "none";
  139. }
  140. tablinks = document.getElementsByClassName("tablink");
  141. for (i = 0; i < x.length; i++) {
  142. tablinks[i].className = tablinks[i].className.replace(" w3-dark-grey", "");
  143. }
  144. document.getElementById(menuName).style.display = "block";
  145. evt.currentTarget.firstElementChild.className += " w3-dark-grey";
  146. }
  147. document.getElementById("myLink").click();
  148. </script>
  149. </body>
  150. </html>



Try Your Self ->



Published:
July 18, 2020
Author:
admin
Category:
CSS Responsive, CSS Source Code
Views:
27

This article was posted in CSS Responsive, CSS Source Code and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2023