Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>>>>>>>>>HTML<<<<<<<<<<<<
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <link rel="stylesheet" type="text/css" href="Vendors/CSS/normalize.css">
- <link rel="stylesheet" type="text/css" href="Vendors/CSS/Grid.css">
- <link rel="stylesheet" type="text/css" href="Resources/CSS/style.css">
- <link href='https://fonts.googleapis.com/css?family=Lato:100,300,400,300italic' rel='stylesheet' type='text/css'>
- <title>Omnifood</title>
- </head>
- <body>
- <nav>
- <div class="row">
- <img src="Resources/Images/logo-white.png" alt="Omnifood logo" class="logo">
- <ul class="main-nav">
- <li><a href="#">Food Delivery</a></li>
- <li><a href="#">How it works</a></li>
- <li><a href="#">Our cities</a></li>
- <li><a href="#">Sign up</a></li>
- </ul>
- </div>
- </nav>
- <header>
- <div class="hero-text-box">
- <h1>Goodbye junk food.<br>Hello super healthy meals.</h1>
- <a class="btn btn-full" href="#">I'm hungry</a>
- <a class="btn btn-ghost" href="#">Show me more</a>
- </div>
- </header>
- </body>
- </html>
- >>>>>>>>>>>CSS<<<<<<<<<<<<<
- /*
- Orange color: #e67e22
- /*
- /* --------------------------------------------------*/
- /* BASIC SETUP */
- /* --------------------------------------------------*/
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- html {
- background-color: #fff;
- color: #555;
- font-family: 'Lato', 'Arial' , sans-serif;
- font-weight: 300;
- font-size: 20px;
- text-rendering: optimizeLegibility;
- }
- /* --------------------------------------------------*/
- /* REUSABLE COMPONENTS */
- /* --------------------------------------------------*/
- .row {
- max-width: 1140px;
- margin: 0 auto;
- }
- /* ------ HEADINGS ------ */
- h1 {
- margin-top: 0;
- margin-bottom: 20px;
- color: #fff;
- font-size: 240%;
- font-weight: 300;
- text-transform: uppercase;
- letter-spacing: 1px;
- word-spacing: 4px;
- }
- .btn:link,
- .btn:visited {
- display: inline-block;
- padding: 10px 30px;
- font-weight: 300;
- text-decoration: none;
- border-radius: 200px;
- transition: background-color 0.2s, border 0.2s, color 0.2s;
- }
- /* ------ BUTTONS ------ */
- .btn-full:link,
- .btn-full:visited {
- background-color: #e67e22;
- border: 1px solid #e67e22;
- color: #fff;
- margin-right: 15px;
- }
- .btn-ghost:link,
- .btn-ghost:visited {
- border: 1px solid #e67e22;
- color: #e67e22;
- }
- .btn:hover,
- .btn:active {
- background-color: #cf6d17;
- }
- .btn-full:hover,
- .btn-full:active {
- border: 1px solid #cf6d17;
- background-color: #e67e22;
- }
- .btn-ghost:hover,
- .btn-ghost:active {
- border: 1px solid #cf6d17;
- color: #fff;
- }
- /* --------------------------------------------------*/
- /* HEADER */
- /* --------------------------------------------------*/
- header {
- background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(Images/hero.jpg);
- background-size: cover;
- background-position: center;
- height: 100vh;
- }
- .hero-text-box {
- position: absolute;
- width: 1140px;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- .logo {
- height: 100px;
- width: auto;
- float: left;
- margin-top: 20px;
- }
- .main-nav {
- float: right;
- list-style: none;
- margin-top: 55px;
- }
- .main-nav li {
- display: inline-block;
- margin-left: 40px;
- }
- .main-nav li a:link,
- .main-nav li a:visited, {
- padding: 8px 0;
- color: #fff;
- text-decoration: none;
- text-transform: uppercase;
- font-size: 90%;
- border-bottom: 2px solid transparent;
- transition: border-bottom 0.2s;
- }
- .main-nav li a:hover,
- .main-nav li a:active, {
- border-bottom: 2px solid #e67e22;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement