Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                

<header id="header">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
  <div id="page-wrapper">
    <div class="navbar">
      <nav id="nav-bar">
        <a class="nav-link" a href="#features">Features</a>
        <a class="nav-link" href="#how_it_works">How It Works</a>
        <a class="nav-link" href="#pricing">Pricing</a></div>
    </nav>
    <br>
  </div>
  <br>
  <div class="icon">
    <i class="far fa-gem" style="font-size: 150px;color:#003429;" alt="Wanderlust Conqueror Substitute Logo"></i>
    </i>
    <br>
  </div>
</header>

<div class="container">

</div>

<section id="hero">
  <h2><strong>Luxurious, Bespoke Adventures</strong></h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis fermentum orci volutpat, placerat ligula a, scelerisque velit. Donec fringilla, ipsum ut hendrerit imperdiet, ex orci facilisis augue, blandit placerat magna dolor a augue. Sed euismod justo id mauris placerat porttitor. Nullam justo leo, ornare et imperdiet vel, tincidunt ac ligula. Maecenas aliquet lorem lacus, ac vulputate sapien elementum quis. Praesent et fringilla nulla. Quisque euismod tempus ligula at tincidunt. Donec mi turpis, porttitor sed auctor at, commodo a ex. Sed quis quam mi.</p>
  <br>
  <form id="form" action="https://www.freecodecamp.com/email-submit">
    <input name="email" id="email" type="email" placeholder="Enter your email address" required/>
    <br>
    <input id="submit" type="submit" value="Get Started" class="btn"></input>
  </form>
</section>
<br>
<div class="container">
  <section id="features">
    <h2>Features</h2>
    <br>
    <div class="grid">
      <div class="icon">
        <i class="fas fa-utensils fa-3x" style=color:#003429;"></i>
      </div>
      <div class="desc">
        <h3>Premium Meals</h3>
        <p>Our world-class chefs only use the freshest, locally sourced ingredients.</p>
      </div>
    </div>
    <br>
    <div class="grid">
      <div class="icon">
        <i class="fas fa-plane fa-3x"style=color:#003429;"></i>
      </div>
      <div class="desc">
        <h3>Luxury Transportation</h3>
        <p>From private charter jets to private yachts, we'll make your next vacation absolutely indulgent.</p>
      </div>
    </div>
    <br>
    <div class="grid">
      <div class="icon">
        <i class="fas fa-bed fa-3x" style=color:#003429;"></i>
      </div>
      <div class="desc">
        <h3>Quality Accomodations</h3>
        <p>Cuddle up with your lover under a flannel blanket as snow falls on your private ski resort cabin.</p>
      </div>
    </div>
    <br>
  </section>
  <br>
  <h2>How it Works</h2>
  <br>
  <section id="how_it_works">

    <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/qE3lwX4g3uc" allowfullscreen></iframe>
  </section>
  </section>
  <br>
  <section id="pricing">
    <h2>Pricing</h2>
    <br>
    <div class="row" class="level">
      <div class="column" id="silver">
        <h2>Silver Stay</h2>
      </div>
      <h3>$10,000</h3>
      <ol style="list-style-type:none">
        <li>Lorem ipsum.</li>
        <li>Lorem ipsum.</li>
        <li>Lorem ipsum dolor.</li>
        <li>Lorem ipsum.</li>
      </ol>
      <button class="btn">Select</button>
    </div>
    <br>
    <div class="row" class="level">
      <div class="column" id="gold">
        <h2>Gold Getaway</h2>
      </div>
      <h3>$25,000</h3>
      <ol style="list-style-type:none">
        <li>Everything in Silver Stay.</li>
        <li>Lorem ipsum.</li>
        <li>Lorem ipsum dolor.</li>
        <li>Lorem ipsum.</li>
      </ol>
      <button class="btn">Select</button>
    </div>
    <br>
    <div class="row" class="level">
      <div class="column" id="platinum">
        <h2>Platinum Paradise</h2>
      </div>
      <h3>$50,000</h3>
      <ol style="list-style-type:none">
        <li>Everything in Silver Stay</li>
        <li>Everything in Gold Getaway</li>
        <li>Lorem ipsum dolor.</li>
        <li>Lorem ipsum.</li>
      </ol>
      <button class="btn">Select</button>
    </div>
</div>
</section>
<footer>
    <a href="#"><u>Privacy</u></a>
    <a href="#"><u>Terms</u></a>
    <a href="#"><u>Contact</u></a>
  <br>
               <span><strong>Copyright 2018, Wanderlust Conqueror Vacations</strong></span>
</footer>
</div>
</div>
              
            
!

CSS

              
                /** global element styling **/

@import 'https://fonts.googleapis.com/css?family=Lato:400,700';

@import 'https://use.fontawesome.com/releases/v5.1.0/css/all.css' ;

/* Page content */

.content {
  padding: 16px;
}

/* Add a black background color to the top navigation */

.navbar {
    background-color: #003429;
    overflow: hidden; 
}

/* Style the links inside the navigation bar */

.navbar a {
    float: right;
    color: #e7bd70;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}
/* Change the color of links on hover */
.navbar a:hover {
    background-color: #f5f5f5;
    color: #003429;
}

@media (max-height: 800px) {
    img {
    width: 100px;
    }
  }

/* Add a color to the active/current link */
.navbar a.active {
    background-color: #e7bd70;
    color: #003429;
}

* {
  margin: 0;
  padding: 10;
  box-sizing: border-box;
}

body {
  background-color: #f5f5f5;
  font-family: 'Lato', sans-serif;
  font-size: 16px; 
  text-align: center; 
} 

#page-wrapper {
  position: relative;
}

a {
  color: #000;
  text-decoration: none;
}

li {
  list-style: none;
}

/** global classes styling **/

.container {
  max-width: 1000px;
  width: 100%;
  margin: 8px auto;
}

.btn {
  margin: 12px 0;
  padding: 0 28px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1.5px #e7bd70 groove;
  border-radius: 5px;
  background: #e7bd70;
  cursor: pointer;
}

.grid {
  display: flex; 
  justify-content: center; 
  margin: 0px 10px; 
}

.fa-fw { 
  display: left; 
  style="font-size: 42px"; 
  color:#003429;
}

// navigation bar

header {
  position: fixed;
  top: 0;
  min-height: 75px;
  padding: 0px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #eee;
  flex-wrap: wrap;
}

.logo {
  width: 60vw;
  margin-top: 15px;
  position: relative;
  }
  
  img {
    width: 100%;
    height: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-left: 20px;
    margin: 0 auto;
    }

nav {
  font-weight: 400;
  @media (max-width: 650px) {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
    
    li {
     padding-bottom: 5px; 
    }
  }
  
  ul {
    width: 35vw;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

// hero

#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 200px;
  margin-top: 50px;
  h2 {
    margin-bottom: 20px;
    word-wrap: break-word;
  }
  
  p {
    align-items: left;
  }

  input[type="email"] {
    max-width: 275px;
    width: 100%;
    padding: 5px;
  }

  input[type="submit"] {
    max-width: 150px;
    width: 100%;
    height: 30px;
    margin: 15px 0;
    border: 0;
    background-color: #e7bd70;
    
    &:hover {
      background-color: #003429;
      text-color: #f5f5f5;
    }
  }

// features

#features {
  margin-top: 30px;
  
  flex-item{
   text-align: center;
}
  
  .icon {
    display: left;
    align-items: center;
    justify-content: center;
    margin: 25px;
    height: 125px;
    width: 20vw;
    color: #003429;
  }

  .desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 125px;
    width: 80vw;
    padding: 5px;
    text-align: justified;
  }

// how it works

#how_it_works {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  
  iframe {
    max-width: 560px;
    width: 100%;
  }
}

/*pricing*/

#pricing {
  margin-top: 60px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  
.column {
    float: left;
    width: 33.33%;
    padding: 10px;
  }

.row:after {
    content: "";
    display: table;
    clear: both;
  width: 100%;
} 
  }
  
  #silver, #gold, #platinum {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    width: calc(100%  / 3);
    margin: 10px;
    border: 1px solid #003429;
    border-radius: 3px;
    border-spacing: 5px;
    
    .level {
      background-color: #ddd;
      color: black;
      padding: 15px 0;
      width: 100%;
      text-transform: uppercase;
      font-weight: 700;
    }
    
    h2 {
      margin-top: 18px;
    }
    
    h3 { 
    margin-top: 15px; 
    }
    
    ol {
      margin: 15px 0;
      
      li { padding: 5px 0; }
    }
    
    p { 
    font-size: 10px; 
    }
    
    button {
      border: 0;
      margin: 15px 0;
      background-color: #f1c40f;
      font-weight: 400;
      
      &:hover {
        background-color: #003429;
        background-text-color: #f5f5f5
        transition: background-color 1s;
      }
    }
    
    #silver, #gold, #platinum { 
      max-width: 300px; 
      width: 100%; 
      margin: 0 auto; 
      margin-bottom: 10px; 
    }

// footer

footer {
  margin-top: 30px;
  background-color: #ddd;
  padding: 20px;
  
  ul { 
    width: 35vw;
    display: flex;
    flex-direction: column;
    justify-content: right;
    
    
  }
    
    li {
      padding: 0 10px;
    }
  }
  
  span {
    margin-top: 5px;
    display: flex;
    justify-content: flex-end;
    font-size: 0.9em;
    color: #444;
  }
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 
              
            
!
999px

Console