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>
<link href="https://fonts.googleapis.com/css?family=Lato|Montserrat|Open+Sans|Oswald|Poppins|Raleway&display=swap" rel="stylesheet">

<header id="header">

  <div id="fixed">
    <div>
      <img src="https://i.imgur.com/gr94QIe.png" id="header-img" alt="Logo" width="50px;">
    </div>
    <nav id="nav-bar">
      <ul>
        <li><a class="nav-link" href="#features">Features</a></li>
        <li><a class="nav-link" href="#works">How it's work</a></li>
        <li><a class="nav-link" href="#pricing">Pricing</a></li>
      </ul>
    </nav>
  </div>

  <div id="behind">
  </div>
</header>

<div class="main">
  <div class="container-form">
    <div id="form-title">
      <h2 align=center>Handcrafted <br> homemade <em style="color:yellow">masterpiece</em></h2>
    </div>
    <div>
      <form id="form" action="https://www.freecodecamp.org/email-submit">
      <input type="email" id="email" name="email" placeholder="Enter your email"> 
      <input type="submit" for="form" id="submit">
    </form>
      
     
      
      
    </div>
    <div class="bg">
        <img src="https://images.pexels.com/photos/3738088/pexels-photo-3738088.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=380&w=1000" alt="Video sitting and sewing">
      <div id="hover"></div>
    </div>
  </div>
</div>

<div id="block1"></div>

<div id="works">
<h3 align="center" id="howworks-title">HOW IT WORKS</h3>

</div>

<div id="features">

   <div id="features-video">
    <iframe src="https://player.vimeo.com/video/392021388?autoplay=1" controls frameborder="0" id="video"></iframe>
  </div>
  <h3 align="center" id="features-title">FEATURES</h3>
  <div id="features-box">
    <h2>Premium materials</h2>
    <p>Our sweing workers use the shiniest material which is sourced locally. This will increase the longevity of your purchase.</p>
    <h2>Quality Assurance</h2>
    <p>For every purchase you make, we will ensure there are no damages or faults and we will check and test the pitch of your instrument.</p>
    <h2>Fast Shipping</h2>
    <p>We make sure you recieve your trombone as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
  </div>
</div>


<h3 align="center" id="pricing-title">PRICING</h3>

  <div id="pricing">
    <div class="price" id="price1">
      <h2>START PACKET</h2>
      <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Totam, eius quos laboriosam quidem.</p>
      <button><strong>MORE</strong></button>
    </div>
    <div class="price" id="price2">
      <h2>BUSINESS PACKET</h2>
      <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Totam, eius quos laboriosam quidem.</p>
      <button><strong>MORE</strong></button>
    </div>
    <div class="price" id="price3">
      <h2>PREMIUM PACKET</h2>
      <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Totam, eius quos laboriosam quidem.</p>
      <button><strong>MORE</strong></button>
    </div>
  </div>


<footer>
  <p><strong>created by &copy; derva</strong> | <a href="https://github.com/derviswebdev" target="_blank">Github</a> | </p>
</footer>
              
            
!

CSS

              
                body{
  margin: 0;
}
header{
  
}
#nav-bar ul li{
  display: inline;
  padding: 0 15px;
}
#nav-bar ul li a {
  text-decoration: none;
  color: black;
  font-family: Montserrat;
  font-size: 13px;
}
#nav-bar ul li:hover{
  background-color: yellow;
}

#fixed{ 
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  position: fixed;
  width: 100%;
  height: 70px;
  top: 0;
  background-color: #ffffff;
}
#fixed > div > img, nav{
  padding: 7px;
}
#behind{
  background-color: purple;
  height: 70px;
  width: 100%;
}
.main{
  padding-top: 50px;
}
.container-form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
  width: 100%;
  height: 60vh;
}
#form-title{
  padding: 20px;
  font-size: 28px;
  color: white;
  font-family: Raleway;
}
.bg{
  position: absolute;
  z-index: -1;
  margin-top: 50px;
  top: 100px;
}
#hover{
  z-index: 1;
  position: absolute;
  background-color:rgba(0,0,0,.5);
  right: 0;
  top: 0px;
  width:100%;
  height: 99.5%;
}
#form > input{
  padding: 15px;
  border-radius: 5px;
  border: none;
  font-family: Montserrat;
  margin: 5px;
  outline: none;
}
#form > input[type="submit"]{
  background-color: #EA2027;
  color: #fff;
  padding: 15px 25px;
}
#block1{
  width: 100%;
  height: 350px;
}
#features{
  display: flex;
  flex-direction: column;
  align-items: center;
}
#howworks-title{
  font-family: Raleway;
  font-size: 32px;
  margin: 40px 38%;
  background-color: yellow;
}
#features-title{
  font-family: Raleway;
  font-size: 32px;
  margin: 50px 38%;
  background-color: yellow;
}
#features-video{
  width: 280px;
}
#features-box{
  width: 400px;
  margin: 50px;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 10px 10px 30px #c8d6e5;
}
#features-box > h2{
  font-family: Montserrat;
  font-size: 22px;
}
#features-box > p {
  font-family: Open Sans;
  font-size: 14px;
}
#pricing{
  display: flex;
  justify-content: center;
}
#pricing-title{
  font-family: Raleway;
  font-size: 32px;
  margin: 20px 45%;
  background-color: yellow;
}
.price{
  width: 250px;
  text-align: center;
  font-family: Raleway;
  padding: 25px;
}
.price > button{
  background-color: #ff6b6b;
  color: white;
  border: none;
  margin: 10px;
  padding: 10px 25px;
  transition: .2s ease-in;
}
.price > button:hover{
  cursor: pointer;
  background-color: #EA2027;
}
#price1, #price2, #price3{
  border: 1px solid black;
  margin: 15px;
  color: rgba(223, 249, 251,1);
  background-color: rgba(240, 147, 43,1.0);
  transition: .2s ease;
}
#price1:hover, #price2:hover, #price3:hover{
  background-color: rgba(255, 242, 0,1);
  color: rgba(34, 47, 62,1.0);
  cursor: pointer;
}
.price > p{
  font-size: 14px;
}
footer{
  width: 100%;
  height: 51px;
  text-align: center;
  background-color: rgba(72, 84, 96,1.0);
  line-height: 50px;
  color: white;
  margin: 0;
  padding: 0;
}
footer > p > a {
  text-decoration: none;
  color: white;
  font-size: 13px;
  font-family: Oswald;
}

@media screen and (min-width: 650px){
  #block1{
    height: 500px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console