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

              
                <!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Guitar - Landing Page</title>
    <link href="https://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
<header id="header">
    <div id="home">
    <!-- Start Navigation -->
    <nav id="nav-bar" class="navbar navbar-expand-lg fixed-top">
      <div class="container-fluid">
        <a  id="header-img" class="navbar-brand" href="#"><img src="https://github.com/Ceci007/images/blob/master/pua.png?raw=true"> GUITAR</a>
        <button id="hamburguer" class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive">
          <span class="custom-toggler-icon"><i class="fas fa-bars"></i></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarResponsive">
          <ul class="navbar-nav ml-auto">
            <li class="nav-item">
              <a href="#home" class="nav-link">HOME</a>
            </li>
            <li class="nav-item">
              <a href="#features" class="nav-link">FEATURES</a>
            </li>
            <li class="nav-item">
              <a href="#how" class="nav-link">HOW IT WORKS</a>
            </li>
            <li class="nav-item">
              <a href="#pricing" class="nav-link">PRICING</a>
            </li>
          </ul>
        </div>
      </div>
    </nav>
    <!-- Start of the Landing Page Image -->
    <div class="landing">
      <div class="home-wrap">
        <div class="home-inner">
        </div>
      </div>
    </div>
    <div class="caption center-block text-center">
      <div>
        <h1>Welcome to guitar</h1>
      </div>
      <div>
        <h3>Handcrafted, home-made masterpieces</h3>
      </div>
      <div>
        <a class="btn btn-outline-light btn-lg" href="#features">Get Started</a>
      </div>
    </div>
    </div>
    </header>
    <!-- starts features section -->
    <div id="features">
      <div class="narrow text-center">
        <div class="col-12">
          <h2>The best handcrafted guitars in the world!</h2>
          <p class="lead gray">
            We have any style of guitar that you need for any purpose, since the most clasic fender stratocaster until whatever guitar you want.
          </p>
          <a href="#how" class="btn btn-secondary btn-sm fuxia">Request a Quote</a>
          <a href="#how" class="btn btn-turquoise btn-sm">See Our Guitars</a>
        </div></div>
          <div class="jumbotron">
            <div class="row justify-content-center">
            <div class="col-md-4 mt-3">
              <div class="card text-center">
              <img class="img-fluid" src="https://github.com/Ceci007/images/blob/master/guitars.jpeg?raw=true" alt="group of guitars">
           <div class="card-body">
            <p class="gray">
              The guitar is a string instrument which is played by plucking the strings. 
The main parts of a guitar are the body, the fretboard, the headstock and 
the strings. Guitars are usually made from wood or plastic.
             </p>
            </div>
            </div>
            </div>
            <div class="col-md-4 mt-3">
              <div class="card text-center">
              <img class="img-fluid" src="https://github.com/Ceci007/images/blob/master/capo.jpg?raw=true" alt="capodastro">
           <div class="card-body">
            <p class="gray">
              A capo (short for capodastro) is a device a musician uses on the neck of a 
stringed (typically fretted) instrument to shorten the playable length of the 
strings—hence raising the pitch.
             </p>
            </div>
            </div>
            </div>
            <div class="col-md-4 mt-3">
              <div class="card text-center">
              <img class="img-fluid" src="https://github.com/Ceci007/images/blob/master/case.jpg?raw=true" alt="guitar case">
           <div class="card-body">
            <p class="gray">
              Since acoustic guitars are fragile, soft gig bags are out of the question. 
Your safest option is to get a roadworthy hard case, one that can handle the 
rigors of land, sea and air travel, protecting your precious acoustic guitar.
             </p>
            </div>
            </div>
            </div>
              <div class="video">
        <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/tRPlpFZnbz4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
                </iframe>
      </div>
            </div>
          </div>
      </div>  
    
    <div id="how" class="narrow">
      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <label for="email">If you want to buy a guitar email us!</label><br>
        <input id="email" type="email" name="email" class="form-control" placeholder="Enter your email." required>
        <input id="submit" type="submit" class="btn fuxia" value="submit">
      </form>
    </div>
    
    <div id="pricing" class="jumbotron">
    <div class="container">
      <div class="box bg1">
        <h3 class="pricing-title">BASIC</h3>
        <p>$49</p>
        <i class="fab fa-telegram-plane colorfull"></i>
        <div class="box-sub">
          Simple guitar
        </div>
      </div>
      <div class="box bg1">
        <h3 class="pricing-title">PRO</h3>
        <p>$99</p>
        <i class="fas fa-plane colorfull"> </i>
        <div class="box-sub">
          Gibson Les Paul
        </div>
      </div>
      <div class="box bg1">
        <h3 class="pricing-title">PREMIUM</h3>
        <p>$149</p>
        <i class="fas fa-rocket colorfull"></i>
        <div class="box-sub">
          fender stratocaster
        </div>
      </div>
    </div>
    </div>
    
    <footer>
      <p>Copyright 2019, Original Guitar</p>
    </footer>
  </body>
</html>

              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  font-family: 'Lato', sans-serif;
  color: #505962;
}

/*============ NAVIGATION ============*/
.navbar {
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  transition: background-color 0.5s ease 0s;
}

.navbar-brand img {
  height: 2rem;
}

.navbar-brand {
  color: #FFF;
}

.navbar-brand:hover {
  color: #FFF;
  text-decoration: none;
}

i {
  color: #FFF;
  font-size: 1.6rem;
}

.gray {
  color: gray;
}

button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focusring-color;
}

.navbar-nav li {
  padding-right: 0.8rem;
  display: block;
  margin: 0 auto;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.7);
  padding-top: 0.8rem;
}

.navbar-nav .nav-link.active,.navbar-nav .nav-link:hover{
  color: #FFF;
}

.navbar.solid {
  background: #FA5882 !important;
  transition: background-color 1s ease 0s;
}

/*============ LANDING PAGE IMAGE ============*/
.home-inner {
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("https://github.com/Ceci007/images/blob/master/concert.jpeg?raw=true");
}

.caption {
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: 58%;
  z-index: 1;
}

.caption h1{
  color: #FFF;
  font-size: 4.5rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3rem;
  text-shadow: 0.1rem 0.1rem 0.8rem #000;
  padding-bottom: 1rem;
}

.caption h3{
  color: #FFF;
  font-size: 2.5rem;
  text-transform: uppercase;
  font-weight: 400;
  text-shadow: 0.1rem 0.1rem 0.5rem #000;
  padding-bottom: 2rem;
}

.btn-lg {
  border-width: medium;
  border-radius: 0;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  display: inline-block !important;
}

/*--- Bootstrap Mobile Gutter Fix --*/
.row, .container-fluid {
margin-left: 0px!important;
margin-right: 0px!important;
}

/*--- Fix for Fixed Navbar jumping on scroll --*/
.fixed-top  {
 -webkit-backface-visibility: hidden;
}

/*--- Fixed Landing Page Section --*/
.landing {
  position: relative;
  width: 100%;
  height: 150vh; /* Change height of landing page image. */
  display: table;
  z-index: -1;
}
.home-wrap {
  clip: rect(0, auto, auto, 0);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.home-inner {
  position: fixed; /* Change to relative to remove fixed style. */
  display: table;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
}

/*--- iOS Fixed Background Image --*/
.fixed-background {
  position: relative;
  width: 100%;
}
.fixed-wrap {
  clip: rect(0, auto, auto, 0);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -999!important;
}
/*--- Features Dark Background Image --*/
#fixed {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
}
/*--- Team Light Background Image --*/
#fixed-2 {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
}

.narrow {
  width: 75%;
  margin: 0 auto;
  padding-top: 2rem;
}

.btn-sm {
  border-width: medium;
  border-radius: 0;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  margin: 1rem;
}

.btn-turquoise {
  border-color: #1EBBA3;
  background-color: #1EBBA3;
  color: #FFF;
}

.btn-turquoise:hover, .btn-turquoise:focus {
  border-color: #189582;
  background-color: #189582;
  color: #FFF;
}

.jumbotron {
  margin-bottom: 0;
  border-radius: 0;
}

.card-body {
  max-height: 350px;
  height: 350px;
}

.fuxia {
  background-color: #FA5882;
  border: 2px solid #FA5882;
}

.fuxia:hover {
  background-color: #FE2E64;
  border: 2px solid #FE2E64;
}

.video {
  margin-top: 60px;
}

#form {
  padding: 15px;
}

label {
  font-size: 24px;
  text-align: center;
  display: block;
}

#submit {
  color: #FFF;
  display: block;
  margin: 30px auto;
  letter-spacing: 2px;
  border-radius: 0;
}

.container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  flex-align: center;
  flex-direction: row;
}

p {
  color: #FFF;
  font-size: 20px;
}

.box {
  width: 270px;
  height: 400px;
  box-shadow: 0px 0px 7px 3px rgba(0,0,0,0.6); 
  text-align: center;
  margin: 25px auto;
}

.box-sub {
  width: 270px;
  height: 90px;
  margin-top: 50px;
  background-color: rgba(0,0,0,0.5);
  line-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  letter-spacing: 2px;
  color: #FFF;
}

h3.pricing-title {
  margin-top: 20px;
  font-size: 20px;
  color: #FFF;
}

.bg1 {
 background: rgb(250,88,130);
background: linear-gradient(0deg, rgba(250,88,130,1) 0%, rgba(189,20,235,1) 100%);
}

i.colorfull {
  margin-top: 40px;
  color: #FFF;
  font-size: 46px;
  border-radius: 50%;
   background: rgb(250,88,130);
background: linear-gradient(0deg, rgba(250,88,130,1) 0%, rgba(189,20,235,1) 100%);
  width: 100px;
  height: 100px;
  text-align: center;
  line-height: 100px;
  box-shadow: 0 10px 10px rgba(0,0,0,0.6);
}

footer {
  background-color: #FA5882;
  text-align: center;
  padding: 10px;
}
/*============ MEDIA QUERIES ============*/
@media (max-width: 991px){
  .caption {
    top: 48%;
  }

  .caption h1{
    font-size: 3.5rem;
    letter-spacing: 0.2rem;
    padding-bottom: 0.8rem;
  }

  .caption h3{
    font-size: 2.2rem;
    padding-bottom: 1.7rem;
  }

  .btn-lg {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }

  .narrow h2 {
    font-size: 2.1rem;
  }
  
  footer {
    font-size: 16px;
    position: relative;
  }
}

@media (max-width: 767px){
  .caption h1{
    font-size: 2.7rem;
    letter-spacing: 0.15rem;
    padding-bottom: 0.5rem;
  }

  .caption h3{
    font-size: 1.7rem;
    padding-bottom: 1.2rem;
  }

  .btn-lg {
    padding: 0.6rem 1.1rem;
    font-size: 1rem;
  }

  .narrow h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 575px){
  .caption h1{
    font-size: 1.7rem;
    letter-spacing: 0.1rem;
    padding-bottom: 0.4rem;
  }

  .caption h3{
    font-size: 1.2rem;
    padding-bottom: 1rem;
  }

  .btn-lg {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
  }

  .narrow {
    width: 85%;
  }
}


/*--- Prevent WayPoints from Browser Window Scrolling On Mobile --*/
/* Devices under 768px (md) */
@media (max-width: 767px) {
  .row {
    overflow-x: hidden;
    overflow-y: hidden;
  }
}

@media (max-width: 360px) {
  footer {
    font-size: 16px;
    position: relative;
  }
}
              
            
!

JS

              
                /*========== NAVBAR TRANSPARENT TO SOLID ==========*/

$(document).ready(function() { //when document(DOM) loads completely.
        // Transition effect for navbar
        $(window).scroll(function() { //function is called while you scrolls
          // checks if window is scrolled more than 300px, adds/removes solid class
          if($(this).scrollTop() > 200) {
              $('.navbar').addClass('solid'); //add class 'solid' in any element which has class 'navbar'
          } else {
              $('.navbar').removeClass('solid'); //remove class 'solid' in any element which has class 'navbar'
          }
        });
});

/*========== ADD NAV BACKGROUND ON CLICK ==========*/

$(document).ready(function () { //when document loads completely.
  $('#hamburguer').click(function() {
    if($(window).scrollTop() === 0){
      $('.navbar').toggleClass('solid');
    }
  });
});

/*========== CLOSE MOBILE NAV ON CLICK ==========*/

$(document).ready(function () { //when document loads completely.
    $(document).click(function (event) { //click anywhere
        var clickover = $(event.target); //get the target element where you clicked
        var _opened = $(".navbar-collapse").hasClass("show"); //check if element with 'navbar-collapse' class has a class called show. Returns true and false.
        if (_opened === true && !clickover.hasClass("navbar-toggler")) { // if _opened is true and clickover(element we clicked) doesn't have 'navbar-toggler' class
            $(".navbar-toggler").click(); //toggle the navbar; close the navbar menu in mobile.
        }
    });
});
              
            
!
999px

Console