Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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>
<script src="https://code.iconify.design/1/1.0.6/iconify.min.js"></script>

<body>
  <div id="main">
    <header id="header">
      <nav id="nav-bar">
        <img id="header-img" src="https://s3.amazonaws.com/freecodecamp/original_trombones.png">
        <ul>
          <li><a class="nav-link" href="#features">Features</a></li>
          <li> <a class="nav-link" href="#howitworks">How It Works</a></li>
          <li><a class="nav-link" href="#pricing">Pricing</a></li>
        </ul>
      </nav>
    </header>
    <h1 class="heading" id="title">Handcrafted, home-made masterpieces</h1>
    <div class="form1">
      <form method="POST" action="https://www.freecodecamp.com/email-submit" id="form">
        <input name="email" id="email" type="email" required placeholder="Enter your email address"><br>
        <input id="submit" class="btn" type="submit" value="GET STARTED">
      </form>
    </div>
    <div class="features" id="features">
      <div class="feature">
        <span class="iconify icon" data-icon="icomoon-free:fire" data-inline="false"></span>
        <div class="feature-details">
          <h2 class="feature-heading">Premium Materials</h2>
          <p class="feature-para">Our trombones use the shiniest brass which is sourced locally.
             This will increase the longevity of your purchase.</p>
        </div>
      </div>
      <div class="feature">
        <span class="iconify icon" data-icon="fa-solid:shipping-fast" data-inline="false"></span>
        <div class="feature-details">
          <h2 class="feature-heading">Fast Shipping</h2>
          <p class="feature-para">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>
      <div class="feature">
        <span class="iconify icon" data-icon="fa-solid:battery-full" data-inline="false"></span>
        <div class="feature-details">
          <h2 class="feature-heading">Quality Assurance</h2>
          <p class="feature-para">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>
        </div>
      </div>
    </div>
    <div class="vid" id="howitworks">
      <iframe id="video" src="https://www.youtube.com/embed/tgbNymZ7vqY">
      </iframe>
    </div>
    <div class="pricing" id="pricing">
      <div class="item">
        <h2 class="item-head">TENOR TROMBONE</h2>
        <h2 class="item-price">$600</h2>
        <ul class="item-details">
          <li>Loren ipsum</li>
          <li>Loren ipsum</li>
          <li>Loren ipsum dolor</li>
        </ul>
        <input type="submit" class="btn" value="SELECT">
      </div>
      <div class="item">
        <h2 class="item-head">BASS TROMBONE</h2>
        <h2 class="item-price">$900</h2>
        <ul class="item-details">
          <li>Loren ipsum</li>
          <li>Loren ipsum</li>
          <li>Loren ipsum dolor</li>
        </ul>
        <input type="submit" class="btn" value="SELECT">
      </div>
      <div class="item">
        <h2 class="item-head">VALVE TROMBONE</h2>
        <h2 class="item-price">$1200</h2>
        <ul class="item-details">
          <li>Plays similar to a trumpet</li>
          <li>Great for jazz bands</li>
          <li>Loren ipsum dolor</li>
        </ul>
        <input type="submit" class="btn" value="SELECT">
      </div>
    </div>
    <footer id="footer">
      <a class="footer-link" href="#">Privacy</a>
      <a class="footer-link" href="#">Terms</a>
      <a class="footer-link" href="#">Contact</a>
      <p>Copyright 2016, Original Trombones</p>
    </footer>
  </div>
</body>

              
            
!

CSS

              
                #main{
  background:#eee;
  font-family:sans-serif;
}

a{
  text-decoration:none;
  color:black;
}

#nav-bar li{
  display:inline;
  padding-right:80px;
  line-height:40px;
}

#header-img{
  height:36px;
  float:left;
  padding-top:20px;
  padding-bottom:20px;
  padding-left:30px;
}

#header{
  margin:0;
}

#nav-bar{
  z-index:4;
  position:fixed;
  top:0;
  background:#eee;
  height:70px;
  width:100%;
}

.heading{
  padding-top:70px;
  text-align:center;
  font-size:30px;
}

#nav-bar ul{
  float:right;
}

.form1{
  text-align:center;
  margin-bottom:100px;
}

#email{
  width:250px;
  padding:5px 4px;
  margin-bottom:14px;
}

.btn{
  padding:8px 20px;
  font-weight:normal;
  background:rgb(224, 215, 16);
  border:none;
}

#submit{
  font-weight:1000;
}

.btn:hover{
  animation-name:button;
  animation-duration:1s;
  animation-fill-mode:forwards;
}

@keyframes button{
  100%{
    background:rgb(252, 150, 25);
  }
}

.features{
  text-align:center;
}

.feature{
  width:70%;
  margin:auto;
  padding-bottom:50px;
}

.icon{
  height:70px;
  width:100px;
  color:rgb(252, 150, 25);
  float:left;
  padding-right:100px;
}

.feature-details{
  text-align:left;
}

.feature-heading{
  font-weight:lighter;
  margin-bottom:-5px;
}

.vid{
  text-align:center;
}

#video{
  border:none;
  height:300px;
  width:550px;
}

.pricing{
  margin:50px 0;
  display:flex;
  width:100%;
  justify-content:center;
}

.item{
  width:26%;
  padding-bottom:20px;
  text-align:center;
  border:1px solid #000;
  margin:10px 0;
  margin-left:10px;
  margin-right:10px;
}

.item-details{
  list-style-type:none;
}

.item-head{
  margin:0;
  padding:10px 0;
  background:#bbb;
  font-weight:lighter;
}

footer{
  width:90%;
  height:50px;
  padding:20px;
  margin:auto;
  background:#ddd;
}

.footer-link{
  font-weight:600;
  margin:0 10px;
}

footer p{
  font-size:15px;
}

@media(maxwidth:1000px){
  #nav-bar li{
    display:none;
  }
}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console