Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. >>>>>>>>>>HTML<<<<<<<<<<<<
  2.  
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <link rel="stylesheet" type="text/css" href="Vendors/CSS/normalize.css">
  7. <link rel="stylesheet" type="text/css" href="Vendors/CSS/Grid.css">
  8. <link rel="stylesheet" type="text/css" href="Resources/CSS/style.css">
  9. <link href='https://fonts.googleapis.com/css?family=Lato:100,300,400,300italic' rel='stylesheet' type='text/css'>
  10. <title>Omnifood</title>
  11. </head>
  12. <body>
  13. <nav>
  14. <div class="row">
  15. <img src="Resources/Images/logo-white.png" alt="Omnifood logo" class="logo">
  16. <ul class="main-nav">
  17. <li><a href="#">Food Delivery</a></li>
  18. <li><a href="#">How it works</a></li>
  19. <li><a href="#">Our cities</a></li>
  20. <li><a href="#">Sign up</a></li>
  21. </ul>
  22. </div>
  23. </nav>
  24. <header>
  25. <div class="hero-text-box">
  26. <h1>Goodbye junk food.<br>Hello super healthy meals.</h1>
  27. <a class="btn btn-full" href="#">I'm hungry</a>
  28. <a class="btn btn-ghost" href="#">Show me more</a>
  29.  
  30. </div>
  31.  
  32. </header>
  33.  
  34.  
  35.  
  36. </body>
  37.  
  38.  
  39.  
  40. </html>
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. >>>>>>>>>>>CSS<<<<<<<<<<<<<
  48. /*
  49. Orange color: #e67e22
  50. /*
  51.  
  52. /* --------------------------------------------------*/
  53. /* BASIC SETUP */
  54. /* --------------------------------------------------*/
  55.  
  56. * {
  57. margin: 0;
  58. padding: 0;
  59. box-sizing: border-box;
  60. }
  61.  
  62. html {
  63. background-color: #fff;
  64. color: #555;
  65. font-family: 'Lato', 'Arial' , sans-serif;
  66. font-weight: 300;
  67. font-size: 20px;
  68. text-rendering: optimizeLegibility;
  69. }
  70.  
  71.  
  72. /* --------------------------------------------------*/
  73. /* REUSABLE COMPONENTS */
  74. /* --------------------------------------------------*/
  75.  
  76.  
  77. .row {
  78. max-width: 1140px;
  79. margin: 0 auto;
  80. }
  81.  
  82.  
  83. /* ------ HEADINGS ------ */
  84. h1 {
  85. margin-top: 0;
  86. margin-bottom: 20px;
  87. color: #fff;
  88. font-size: 240%;
  89. font-weight: 300;
  90. text-transform: uppercase;
  91. letter-spacing: 1px;
  92. word-spacing: 4px;
  93. }
  94.  
  95. .btn:link,
  96. .btn:visited {
  97. display: inline-block;
  98. padding: 10px 30px;
  99. font-weight: 300;
  100. text-decoration: none;
  101. border-radius: 200px;
  102. transition: background-color 0.2s, border 0.2s, color 0.2s;
  103. }
  104.  
  105.  
  106.  
  107.  
  108. /* ------ BUTTONS ------ */
  109. .btn-full:link,
  110. .btn-full:visited {
  111. background-color: #e67e22;
  112. border: 1px solid #e67e22;
  113. color: #fff;
  114. margin-right: 15px;
  115. }
  116.  
  117. .btn-ghost:link,
  118. .btn-ghost:visited {
  119. border: 1px solid #e67e22;
  120. color: #e67e22;
  121. }
  122.  
  123. .btn:hover,
  124. .btn:active {
  125. background-color: #cf6d17;
  126. }
  127.  
  128. .btn-full:hover,
  129. .btn-full:active {
  130. border: 1px solid #cf6d17;
  131. background-color: #e67e22;
  132. }
  133.  
  134. .btn-ghost:hover,
  135. .btn-ghost:active {
  136. border: 1px solid #cf6d17;
  137. color: #fff;
  138. }
  139.  
  140. /* --------------------------------------------------*/
  141. /* HEADER */
  142. /* --------------------------------------------------*/
  143.  
  144. header {
  145. background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(Images/hero.jpg);
  146. background-size: cover;
  147. background-position: center;
  148. height: 100vh;
  149. }
  150.  
  151. .hero-text-box {
  152. position: absolute;
  153. width: 1140px;
  154. top: 50%;
  155. left: 50%;
  156. transform: translate(-50%, -50%);
  157. }
  158.  
  159. .logo {
  160. height: 100px;
  161. width: auto;
  162. float: left;
  163. margin-top: 20px;
  164. }
  165.  
  166. .main-nav {
  167. float: right;
  168. list-style: none;
  169. margin-top: 55px;
  170.  
  171. }
  172.  
  173. .main-nav li {
  174. display: inline-block;
  175. margin-left: 40px;
  176. }
  177.  
  178. .main-nav li a:link,
  179. .main-nav li a:visited, {
  180. padding: 8px 0;
  181. color: #fff;
  182. text-decoration: none;
  183. text-transform: uppercase;
  184. font-size: 90%;
  185. border-bottom: 2px solid transparent;
  186. transition: border-bottom 0.2s;
  187. }
  188.  
  189. .main-nav li a:hover,
  190. .main-nav li a:active, {
  191. border-bottom: 2px solid #e67e22;
  192. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement