css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- font Awesome -->
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
    <link rel="stylesheet" href="stylesheet.css">
    <!-- Google fonts -->
    <link href="https://fonts.googleapis.com/css?family=Raleway:400,700" rel="stylesheet">

    <title>Drone Co.</title>
  </head>
  <body>
    <header id="header">
      <nav id="nav-bar" role="navigation" class="navbar fixed-top navbar-expand-lg navbar-light bg-light">
        <div class="container">
          <a class="navbar-brand" href="#">
              <img id="header-img" src="https://res.cloudinary.com/gareth85d/image/upload/c_scale,w_48/v1535308832/free code camp folder/if_Science__Technology_28_2633201.svg" alt="Drone Logo" width="65" height="65">
              <!-- <i class="far fa-paper-plane fa-2x"></i> -->
            </a>
          <a class="navbar-brand" href="#">Drone Co.</a>
          <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
          </button>
          <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav">
              <li class="nav-item">
                <a class="nav-link nav-link" href="#header">Home</a>
              </li>
              <li class="nav-item">
                <a class="nav-link nav-link" href="#features">Features</a>
              </li>
              <li class="nav-item">
                <a class="nav-link nav-link" href="#packages">Packages</a>
              </li>
            </ul>
          </div>
        </div>
      </nav>
      <div class="container-fluid hero">
        <!-- Photo by Jason Blackeye on Unsplash -->
          <div class="d-flex justify-content-center video">
              <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/DQj1Vg0A_So?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>            
          </div>
        </div>
      </div>
    </header>
    <main>
      <div id="features" class="container info">
        <div class="row">
          <div class="col-md-6  info-box box">
            <div class="icon">
              <i class="fas fa-dollar-sign fa-3x"></i>
            </div>
              <h4>Big savings</h4>
            <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem tempore deserunt, incidunt delectus commodi assumenda facilis error enim at nostrum quos exercitationem quis obcaecati! Voluptas accusantium eveniet delectus voluptatem pariatur!</p>
          </div>
          <div class="col-md-6 info-box box">
            <div class="icon">
              <i class="fas fa-parachute-box fa-3x"></i>
            </div>
              <h4>Fast Delivery</h4>
              <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias, reprehenderit impedit sunt porro quibusdam laborum unde nulla odio aliquid, cum delectus ex nesciunt et. Architecto asperiores fuga recusandae pariatur id.</p>
          </div>
          <div class="col-md-6 info-box box">
            <div class="icon">
              <i class="fas fa-users fa-3x"></i>
            </div>
              <h4>Comp Invites</h4>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis adipisci earum sequi commodi rem nisi? Corporis, laboriosam inventore? Hic corrupti nam non doloribus consectetur blanditiis a ipsam reprehenderit nostrum culpa?</p>
          </div>

        </div>
      </div>
      <div id="packages" class="container kits">
          <h4>Drone Kits</h4>
        <div class="row">
          <div class="col-md kits-box box">
            <h5>Basic kit</h5>
            <ul>
              <li>You build it yourself</li>
              <li>Motors and Control board</li>
              <li>carbon fiber frame</li>
              <li>Props and spares</li>
              <li>POV camera and Transmiter</li>
            </ul>
            <button type="button" class="btn btn-primary kit-button">Basic</button>
          </div>
          <div class="col-md kits-box box">
            <h5>Premium kit</h5>
            <ul>
              <li>Ready To fly Drone</li>
              <li>controller</li>
              <li>POV goggles</li>
              <li>Carry Case</li>
              <li>Battery Charger for upto 5 batterys</li>
            </ul>
            <button type="button" class="btn btn-primary kit-button">Premium</button>
          </div>
        </div>
        <div class="row">
          <div class="col-md"></div>
          <div class="col-md newsletter">
            <h4>Subscribe</h4>
            <p>Subscribe to our Newsletter</p>
            <form id="form" target="_blank" action="https://www.freecodecamp.com/email-submit" method="POST">
              <div class="form-group">
                <input type="email" class="form-control" name="email" id="email" placeholder="Enter your email address"><small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
                <input id="submit" class="btn btn-primary button" type="submit" value="Submit">
              </div>
            </form>
          </div>
          <div class="col-md">
          </div>
        </div>
      </div>
    </main>
    <footer>
      <div class="container terms text-right">
        <a href="#">Privacy</a>
        <a href="#">Terms</a>
        <a href="#">Contact</a>
        <p>Copyright 2018, Drone Club</p>
      </div>
    </footer>
    
      
      


    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
    <script src="script.js"></script>
  </body>
</html>
            
          
!
            
              /* font-family: 'Raleway', sans-serif; */


#navbarNav {
    justify-content: flex-end;
}

#navbarNav a  {
    padding-right: 30px;
}

.hero {
    background: url("https://res.cloudinary.com/gareth85d/image/upload/v1536266094/free code camp folder/jason-blackeye-295313-unsplash.jpg");
    background-position: center;
	background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 1px solid #c1c1c1;
}

.navbar-brand {
    font-size: 2.5em;
    
}

.navbar-brand, h4, h5 {
    font-family: 'Raleway', sans-serif;
}

/* video */

.video {
    padding: 12em 0;
}

/* info section */

.info {
    padding-top: 6em;
    padding-bottom: 6em;
}

.info-box {
    border: 1px solid gray;
    border-radius: 5px;
    max-width: 315px;
    padding: 2em;
    margin: auto;
}

.info-box h4 {
    text-align: center;
}

.info-box p {
    text-align: center;
}

.icon {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    color: #f46c68;
}

.kits {
    border-top: 1px solid #c1c1c1;
    padding-top: 5.5em;
}

.kits > h4 {
    text-align: center;
    padding-bottom: 2em;
}

.kits-box {
    height: 376px;
    border: 1px solid gray;
    border-radius: 5px;
    margin: auto;
    padding: 3em;
    max-width: 315px;
}



.newsletter {
    border: 1px solid gray;
    border-radius: 5px;
    margin-top: 8em;
    margin-bottom: 4em;
}

.newsletter > h4 {
    padding-top: 2em;
    text-align: center;
}

.newsletter p {
    text-align: center;
}

#emailHelp {
    text-align: center;
}

.newsletter .button {
    display: block;
    margin: auto;
    margin-top: 0.75em;
    background-color: #165493;
    border-color: #165493;
}

.kit-button {
    display: block;
    margin: 2.5em auto;
    background-color: #165493;
    border-color:#165493;
}

.btn-primary:hover {

    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

ul {
    padding-left: 0;
}

/* footer */

footer {
    background-color: #c1c1c1;
    padding: 1em 0;
}

footer a {
    padding-right: 10px;
}


/* Media queries */
@media (max-width: 992px) {
    .box {
        margin-bottom: 2em;
    }
}




            
          
!
            
              // https://blog.cinlogic.com/2016/03/27/automatically-collapsing-bootstrap-navbar-after-navigation-in-a-single-page-application/

$('.navbar-collapse a:not(.dropdown-toggle)').click(function(){
  $(this).parents('.navbar-collapse').collapse('hide');
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console