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

              
                <!-- <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> -->

<body>
<!-- Start Header -->
<header id="header">
   <img id="header-img" src="http://chittagongit.com//images/tourist-guide-icon/tourist-guide-icon-0.jpg" alt="logo">
   <h1 id="company-name"> Wanderlust Travel</h1>
   
    <nav id="nav-bar">
      <a class="nav-link" href="#video">Featured Destination</a>
      <a class="nav-link" href="#travel-options-wrapper">Travel Options</a>
      <a class="nav-link" href="#form-wrapper">Sign Up</a>
    </nav>
 </header>
<!-- End Header -->
  
<!-- Banner -->
  <div id="banner">
    <img id="banner-img" src="https://images.unsplash.com/photo-1519904981063-b0cf448d479e?ixlib=rb-0.3.5&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ&s=9ba244479211db4486cc2f7e2ce79b07" alt="traveler looking over mountains">
  </div>  
   
<!--  Video  -->
 <section id="video-wrapper">
    <img class="logo-icon" src="http://chittagongit.com//images/tourist-guide-icon/tourist-guide-icon-0.jpg" alt="logo">
    <p class="section-title">Featured Destination</p>
    <iframe id="video" src="https://www.youtube.com/embed/unghDml5F_4" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
    <div id="video-description">
        <h3>Roadtrip <span id="script">New Mexico</span></h3>
        <p>Lorem ipsum dolor sit amet, no usu volutpat recteque iracundia, invidunt temporibus eu his. Fabulas suscipit appareat eum ne, epicurei officiis pro ut, an has vidit minimum. Ad mel indoctum elaboraret, mea an nullam essent, eum eu suavitate omittantur. Ex vide placerat fabellas has, usu postea omittantur consequuntur id.</p>

        <p>Ne has eius ullum, eum ex ubique feugait sententiae, at fabellas salutandi urbanitas vim. Pri cu hinc rationibus ullamcorper, stet suscipit mel ea. Iudico ornatus has ei, vel eu rebum tamquam. Ei sea veri vituperata reprehendunt, ullum liber tractatos vix no. Mel soleat salutatus deseruisse at, cibo habeo graece per et, eum autem utinam concludaturque.</p>
        
   <button type="button" id="featured-button" class="book-now-button">Book Now!</button>
  </div>
 </section> 
<!--    End video    -->
<!--   Travel Options    -->
 <section id="travel-options-wrapper">
   <img class="logo-icon" src="http://chittagongit.com//images/tourist-guide-icon/tourist-guide-icon-0.jpg" alt="logo"> 
   <p class="section-title">Travel Options</p>
      
   <div id="grid-container">
      <img id="img1" class="img-tile" alt="beach palm tree"src="https://c1.staticflickr.com/9/8234/8543597730_cfbc9b78cb_m.jpg">
      <p id="beach-getaway" class="destination">Beach Getaway</p>
      <img id="img2" class="img-tile" alt="mountain lake" src="https://c2.staticflickr.com/8/7517/27679400605_99207d07c4_m.jpg">
      <p id="mtn-retreat" class="destination">Mountain Retreat</p>
      <img id="img3" class="img-tile" alt="desert mesas" src="https://c2.staticflickr.com/8/7778/16762393003_64dbd6b9f9_m.jpg">
      <p id="desert-oasis" class="destination">Desert Oasis</p>
      <p id="text1">Lorem ipsum dolor sit amet, no usu volutpat recteque iracundia, invidunt temporibus eu his. Fabulas suscipit appareat eum ne, epicurei officiis pro ut, an has vidit minimum. Ad mel indoctum elaboraret, mea an nullam essent, eum eu suavitate omittantur. Ex vide placerat fabellas has, usu postea omittantur consequuntur id.</p>
      <p id="text2">Lorem ipsum dolor sit amet, no usu volutpat recteque iracundia, invidunt temporibus eu his. Fabulas suscipit appareat eum ne, epicurei officiis pro ut, an has vidit minimum. Ad mel indoctum elaboraret, mea an nullam essent, eum eu suavitate omittantur. Ex vide placerat fabellas has, usu postea omittantur consequuntur id.</p>
      <p id="text3">Lorem ipsum dolor sit amet, no usu volutpat recteque iracundia, invidunt temporibus eu his. Fabulas suscipit appareat eum ne, epicurei officiis pro ut, an has vidit minimum. Ad mel indoctum elaboraret, mea an nullam essent, eum eu suavitate omittantur. Ex vide placerat fabellas has, usu postea omittantur consequuntur id.</p>
      <button type="button" class="book-now-button">Book Now!</button>
      <button type="button" class="book-now-button">Book Now!</button>
      <button type="button" class="book-now-button">Book Now!</button>
   </div>
  </section>
  <!-- Form Start  -->
  <section id="form-wrapper">
    <img class="logo-icon" src="http://chittagongit.com//images/tourist-guide-icon/tourist-guide-icon-0.jpg" alt="logo"> 
    <p class="section-title">News Letter</p>
    <p id="deals-blurb">Sign up for our monthly news letter so you'll never miss out on one of our featured destinations!</p>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input type="email" id="email" name="email" placeholder="Email Address">
      <input type="submit" id="submit" class="book-now-button" value="Submit"> 
    </form>
  </section>
       
<!-- Form End -->
  
<!-- Footer Start -->
<footer id="footer">
  <p>Designed and coded by Francesca Jenkins | freeCodeCamp 2018</p>
</footer>
<!-- Footer End  -->
      
</body>


              
            
!

CSS

              
                /*Fonts*/
@import url('https://fonts.googleapis.com/css?family=Satisfy');
@import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700");
/* Fonts End */
body {
  font-family: Raleway, sans-serif;
}

/* Header Style */
#header {
  width: 100%;
  height: 80px;
  color: #37474F;
  background-color: #ffffff;
  padding: 20px 20px 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

#header-img {
  width: 65px;
  height: 65px;
 margin-bottom: 15px;
}

h1 {
  font-family: Satisfy, cursive;
  font-size: 30px;
  display: inline;
  margin-left: 20px;
}

#nav-bar {
  display: flex;
  width: 45%;
  margin-left: 300px;
  justify-content: space-between;
}

.nav-link {
  color: #37474F;
  font-size: 17px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1.75px;
}
.nav-link:hover {
  color:#B0BEC5;
} 
/*Header Style End */

/* Banner Style */
#banner {
  width: 100%;
  height: 265px;
  margin-top:110px;
  display: block;
  overflow: hidden;
}

#banner-img {
  width: 100%;
  height: 99.9%;
  display: block;
  object-fit: cover;
}
/* Banner Style End */
/* Featured video style */
#video-wrapper {
  max-width: 100%;
  height: auto;
  background-color: #EFEBE9;
  padding-bottom: 30px;
}
.logo-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  display: block;
  padding-top: 90px;
}
.section-title {
  text-align: center;
  font-weight: 100;
  font-size: 27px;
  color: #37474F;
  margin-top: 25px;
  margin-bottom: 70px;
}
 #video { 
  width: 560px;
  height: 315px; 
  margin: 30px 45px ;
}

h3 {
  font-size: 35px
}

#script {
  font-family: Satisfy, cursive;
}
#video-description {
  max-width: 45%;
  background-color:none;
  display: inline-block; 
  margin-right: 30px;
  position: relative;
  z-index: 1;
}
#featured-button {
  margin-left: 185px;
  margin-top: 10px;
}
/*Featured video style end*/

.book-now-button {
  font-family: Raleway, sans-serif;
  font-size: 12px;
  font-weight: bold;
  height: 40px;
  width: 120px;
  color: white;
  background-color: #1EB1BE;
  cursor: pointer;
  margin: 20px;
}

/* Travel Options Style */
#travel-options-wrapper {
  max-width: 100%;
  background-color: white;
  margin-top: 30px;
  margin-bottom: 90px;
}

#grid-container {
  max-width: 100%;
  background-color: white;
  margin-top: 50px;
  margin-bottom: 30px;
  display: grid;
  grid-template: repeat(4, auto) / repeat(3, 250px);
  justify-content: center;
  column-gap: 75px
}

.destination {
  text-align: center;
  font-family: Satisfy, cursive;
  font-size: 28px;
}

#img1 {
  grid-column: 1 / 2;
}

#img2 {
  grid-column: 2 / 3;
}

#img3 {
  grid-column: 3 / 4;
}

#beach-getaway {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

#mtn-retreat {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

#desert-oasis {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

#text1 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

#text2 {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

#text3 {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}
/* End Travel Options Style */

/* Form Style */
#form-wrapper {
  max-width: 100%;
  height: auto;
  background-color: #EFEBE9;
  padding-bottom: 30px;
  margin-top: 50px;
} 

#deals-blurb {
  max-width: 400px;
  margin: 0 auto;
 line-height: 1.5em
}

#email {
  height: 34px;
  width: 220px;
  margin-left: 440px;
  margin-top: 45px;
}
#submit {
  margin-left: 10px;
}

#footer {
  font-size: 12px;
  text-align: center;
  padding: 10px;
}
/* End Form Style */
@media screen and (max-width: 1100px) {
  
  #nav-bar {
    
    margin-left: 100px;
  }
  h3 {
    font-size: 30px;
  }
  #video {
    display: block;
    margin: 0 auto;
  }
  #video-description {
    display: block;
    margin: 0 auto;
  }
  #featured-button {
    display: block;
    margin: 0 auto;
  }
  #grid-container {
    grid-column-gap: 10px;
  }
  #deals-blurb {
    text-align: center;
  }
  #email {
    display: block;
    margin:0 auto;
    margin-top: 10px;
  }
  #submit {
    display: block;
    margin:0 auto;
    margin-top: 10px;
  }
}

 @media screen and (max-width: 600px) {
  #nav-bar {
    margin-right: 50px;
    margin-left: 50px;
    flex-direction: column;
  }
  .nav-link {
    margin-top: 7px;
    margin-bottom: 7px;
  }
   #header {
     height: 150px;
   }
   #company-name {
     display: none;
   }
} 
   










              
            
!

JS

              
                
              
            
!
999px

Console