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">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Vlog Academy: Learn how to vlog professionally</title>
</head>
<body>
  <div class="main">
    <header id="header">
        <div id="background-overlay" class="gradient-overlay"></div>
      <nav id="nav-bar">
         <div id="logo-img">
           <a href="#"><img src="http://i67.tinypic.com/2mqpb7l.jpg" alt="image" id="header-img"></a>
        </div>
       <div id="nav-menu">
          <a href="#about" class="nav-link">Why VA</a>
          <a href="#course-info" class="nav-link">Courses</a>
          <a href="#register" class="nav-link">Register</a>
        </div>
      </nav>
      <div id="call-out-message">
        <h1>Become A Better Vlogger</h1>
        <p>Show your talent on social platforms like YouTube, Instagram and more...</p>
        <button class="btn-cta">Join Now</button>
        
      </div>
    </header>
    <section id="about">
      <div id="about-info">
        <h3 class="heading3">
          Why Vlog Academy
        </h3>
        <p class="why-info">
          Learn how to make a professional vlog that binds your viewers from the start to the end. </p>
          
         <p class="why-info"> At Vlog Academy, you will learn the technical skills (photoshop, video editing, special effects, sound mixing, script writing) as well as marketing skills (SEO, SEM, PPC).</p> 
          
          <p class="why-info">Earning 6 figures income via vlogging is possible. We teach you how.</p> 
          
          <button class="btn-cta">Buy Our Courses</button>
         
      </div> 
      <div id="photo-info">
        <img src="http://i67.tinypic.com/35k0ode.jpg" alt="cameraman" id="product-img">
      </div>
    </section>
    <section id="course-info">
      <h3 class="heading3">Our Courses</h3>
      <div id="course-section">
        
        <div class="card" id="card1">
          <h4 class="card-title">
            Basic
          </h4>
          <img src="https://static.makeuseof.com/wp-content/uploads/2017/06/muo-creative-youtube-studio-makeup.jpg" alt="shooting" width="100%" height="auto">
          <div class="card-info">
            <ul>
              <li>Introduction to the equipments</li>
              <li>Script writing 101</li>
              <li>Basic Video Editing with Adobe Premiere Pro</li>
          </ul>
          </div>
          <p class="price-tag">$199</p>
          <button class="btn-cta">Enroll</button>  
        </div>
        <div class="card" id="card2">
          <h4 class="card-title">
            Intermediate
          </h4>
          <img src="https://static.makeuseof.com/wp-content/uploads/2017/06/muo-creative-youtube-studio-makeup.jpg" alt="shooting" width="100%" height="auto">
          <div class="card-info">
            <ul>
              <li>Digital Marketing 101</li>
              <li>Movie Direction</li>
              <li>Advanced Video Editing with Adobe Premiere Pro</li>
          </ul>
          
          </div>
          <p class="price-tag">$399</p>
          <button class="btn-cta">Enroll</button>
        </div>
        <div class="card" id="card3">
          <h4 class="card-title">
            Advanced
          </h4>
          <img src="https://static.makeuseof.com/wp-content/uploads/2017/06/muo-creative-youtube-studio-makeup.jpg" alt="shooting" width="100%" height="auto">
          <div class="card-info">
            <ul>
              <li>1-1 Mentorship by Professional Youtubers.</li>
              <li>Digital Marketing Pro</li>
              <li>Advanced visual effects with Adobe After Effects</li>
          </ul>
          
          </div> 
          <p class="price-tag">$999</p>
          <button class="btn-cta">Enroll</button>
        </div>
      </div>
    <div id="watch-video">
      <h3 class="heading3">Watch Video</h3>
       <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/FHQ6UdrMKWU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </div>
    </section>
    <section id="register" class="gradient-overlay">
      <form action="https://www.freecodecamp.com/email-submit" id="form">
        <h3 class="heading3">Register For Our Next Class</h3>
        <label for="email">Email</label>
        <br/>
        <input type="email" id="email" name="email" placeholder="johndoe@email.com" autofocus>
        <br />
        <input type="submit" id="submit" />
      </form>
    </section>
  </div>
</body>
</html>
              
            
!

CSS

              
                html{
  scroll-behavior: smooth;
}

body{
  border: 0;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.1rem;
}

#header{
  margin-top: -25px;
  background: url('https://images.pexels.com/photos/1615824/pexels-photo-1615824.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940') no-repeat;
  background-size: cover;
  background-position: right center;
  width: 100%;
  height: 95vh;
  position: relative;
}

#nav-bar{
  width: 100%;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(0, 0, 0, .7);
}

#nav-menu {
  text-align: center;
  padding: 20px;
}

#nav-menu a {
  text-decoration: none;
  color: white;
  margin-left: 15px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: 0.2rem;
  transition: color .3s ease-in;
}

#nav-menu a:hover{
  color: #cc181e;
}
#header-img{
  margin: 0 30px;
  width: 150px;
}


#background-overlay{
  position:absolute;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: .7;
  }

.gradient-overlay{
  background: -moz-linear-gradient(top, rgba(204,24,30,1) 0%, rgba(204,24,30,1) 47%, rgba(239,1,124,1) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(204,24,30,1)), color-stop(47%, rgba(204,24,30,1)), color-stop(100%, rgba(239,1,124,1)));
background: -webkit-linear-gradient(top, rgba(204,24,30,1) 0%, rgba(204,24,30,1) 47%, rgba(239,1,124,1) 100%);
background: -o-linear-gradient(top, rgba(204,24,30,1) 0%, rgba(204,24,30,1) 47%, rgba(239,1,124,1) 100%);
background: -ms-linear-gradient(top, rgba(204,24,30,1) 0%, rgba(204,24,30,1) 47%, rgba(239,1,124,1) 100%);
background: linear-gradient(to bottom, rgba(204,24,30,1) 0%, rgba(204,24,30,1) 47%, rgba(239,1,124,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc181e', endColorstr='#ef017c', GradientType=0 );

}


#call-out-message {
  width: 80%;
  margin: auto;
  text-align: center;
  top: 45%;
  color: #fff;
  position: relative;
  z-index: 99;
 
}

#call-out-message h1{
  font-size: 36px;
  font-weight: 800;
}

.btn-cta {
  margin-bottom: 30px;
  padding: 10px 40px;
  border-radius: 25px;
  border: none;
  background-color: #cc181e;
  color: #fff;
  font-size: 1.1rem;
  -webkit-box-shadow: 0px 10px 25px -8px rgba(0,0,0,1);
-moz-box-shadow: 0px 10px 25px -8px rgba(0,0,0,1);
box-shadow: 0px 10px 25px -8px rgba(0,0,0,1);
  cursor: pointer;
  transition: all .3s ease-in-out;

}

.btn-cta:hover{
  background-color: blue;
}

.btn-cta:focus{
  outline: 0;
}

/*-- About section --*/
#about{
  width: 90%;
  height: 100%;
  display: flex;
  flex-direction: row;
  margin: 50px auto;
  padding-top: 70px;
  border-bottom: 1px solid gray;
}

#about-info{
  padding: 0 20px 50px 0;
}

.heading3{
  font-size: 36px;
  text-align: center;
}

#about-info .btn-cta{
  margin-top: 30px;
}

#product-img {
  width: 100%;
  height: auto;
  
}

/* Course section*/

#course-info{
  margin: 50px 15px;
  padding-top: 70px;
}
#course-section{
  display: flex;
  justify-content: space-evenly;
}

.card{
  text-align: center;
  border: 1px solid gray;
  margin: 0 10px;
}

.card-info ul{
  text-align: left;
  height: 150px;
}

.price-tag{
  font-size: 24px;
  font-weight: bold;
  color: #cc181e
}

#watch-video{
  text-align:center;
  margin-top: 100px;
}

#register{
  padding: 30px;
  text-align: center;
  color: #fff;
}

#email{
  margin: 15px 0 15px 0;
  width: 350px;
  height: 30px;
  border-radius: 25px;
  border: 3px solid #000;
  outline: 0;
  text-align: center;
}
::-webkit-input-placeholder{
  text-align: center;
}
::-ms-input-placeholder{
  text-align: center;
}

#submit{
  font-size: 1.1rem;
  border: none;
  border-radius: 25px;
  padding: 10px 30px;
  transition: all .3s ease-in-out;
  cursor: pointer;
  background: #000;
  color: #fff;
}

#submit:hover{
  background: #cc181e;
}
#submit:focus{
  outline: none;
}

@media screen and (max-width: 800px){
  #nav-bar{
    display: block;
    height: 100px;
  }
  
  #logo-img{
    height: 35px;
    text-align: center;
  }
  
  #logo-img img{
    width: 100px;
  }
  
  #header{
    background-position:  center;
  }
  
  #call-out-message{
    top: 200px;
  }
  
  #call-out-message h1{
    font-size: 36px;
  }
  
  #call-out-message p{
    font-size: 16px;
  }
  
  .btn-cta{
    margin-top: 20px;
    width: 150px;
    height: 40px;
    font-size: 16px;
    padding: 0;
  }
  
  .btn-cta:focus{
    outline: 0;
  }
  
  #about{
    display: block;
    text-align: center;
    padding-bottom: 30px;
  }
  
  #course-section{
    display: block;
  }
  
  .card{
    margin-bottom: 15px;
  }
  
  
  .card-info ul{
    height: 0;
    padding-bottom: 100px;
  }
  
  .card .btn-cta{
    margin-bottom: 30px;
    margin-top: -10px;
    outline: 0;
  }
  
  #video{
    width: 100%;
    height: 56.25vw;
  }
  
  #register{
    padding: 30px 15px 100px 15px;
  }
 
  #email{
    width: 200px;
  }
  }
              
            
!

JS

              
                let emailInfo = document.getElementById('form');

emailInfo.addEventListener('submit', (e)=>{
  e.preventDefault();
  let info = e.target.value;
  fetch
  
});
              
            
!
999px

Console