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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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>

<!-- 
Hello Camper!
-->


<body>
  <!--HEADER-SECTION-->

  <header id="header">
    <div class="header-content">
      <div id="logo">
        <a href="#"><img src="https://i.ibb.co/XXMbSjq/logo.png" alt="" id="header-img" /></a>
        <a href="#"><span>ORIGINAL TROMBONES</span></a>
      </div>
      <nav id="nav-bar">
        <ul>
          <li><a class="nav-link" href="#features">Features</a></li>
          <li><a class="nav-link" href="#how-it-works">How It Works</a></li>
          <li><a class="nav-link" href="#pricing">Pricing</a></li>
        </ul>
      </nav>
    </div>
  </header>

  <!--HERO-SECTION-->

  <div id="hero">
    <div class="container">
      <div class="hero-content">
        <div class="cta-box cta-text">
          <h1>Handcrafted home made masterpieces</h1>
          <p>
            Lorem ipsum dolor, sit amet consectetur adipisicing elit. Ut, sed
            porro nemo, aut unde debitis maxime impedit ad dolore voluptates non
            voluptate temporibus quisquam reiciendis expedita, ipsum accusamus
            labore laudantium.
          </p>
          <div class="cta-btn">
            <button class="btn">BUY NOW</button>
          </div>
        </div>
        <div class="cta-box">
          <img src="https://i.ibb.co/19Bwxp0/hero-img.png" alt="" />
        </div>
      </div>
    </div>
  </div>
  <!--FEATURES-SECTION-->
  <div id="features">
    <div class="container">
      <div class="feature-content">
        <div class="feature-box">
          <img src="https://i.ibb.co/DwKBRyV/premium-materials-icon.png" alt="">
          <h2>Premium Materials</h2>
          <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your
            purchase.</p>
        </div>
        <div class="feature-box">
          <img src="https://i.ibb.co/mzsQDNg/fast-shipping-icon.png" alt="">
          <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 class="feature-box">
          <img src="https://i.ibb.co/dk8db36/quality-assurance-icon.png" alt="">
          <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>
        </div>
      </div>
    </div>
  </div>
  <!--VIDEO-SECTION-->
  <div id="how-it-works">
    <div class="container">
      <div class="video-content">
        <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/y8Yv4pnO7qc" frameborder="0"
          allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      </div>
    </div>
  </div>
  <!--PRICING-SECTION-->
  <div id="pricing">
    <div class="container">
      <div class="pricing-content">
        <div class="pricing-box">
          <div class="pricing-title">
            <h2>TENOR TROMBONE</h2>
          </div>
          <span>$600</span>
          <ul class="price-list">
            <li>Lorem ipsum.</li>
            <li>Lorem ipsum.</li>
            <li> Lorem ipsum dolor.</li>
            <li>Lorem ipsum.</li>
          </ul>
          <button class="price-btn">SELECT</button>
        </div>
        <div class="pricing-box">
          <div class="pricing-title">
            <h2>BASS TROMBONE</h2>
          </div>
          <span>$800</span>
          <ul class="price-list">
            <li>Lorem ipsum.</li>
            <li>Lorem ipsum.</li>
            <li> Lorem ipsum dolor.</li>
            <li>Lorem ipsum.</li>
          </ul>
          <button class="price-btn">SELECT</button>
        </div>
        <div class="pricing-box">
          <div class="pricing-title">
            <h2>VALVE TROMBONE</h2>
          </div>
          <span>$1200</span>
          <ul class="price-list">
            <li>Plays similar to a Trumpet</li>
            <li>Great for Jazz Bands</li>
            <li>Lorem ipsum dolor.</li>
            <li>Lorem ipsum.</li>
          </ul>
          <button class="price-btn">SELECT</button>
        </div>
      </div>
    </div>
  </div>
  <!--FORM-SECTION-->
  <div id="form-section">
    <div class="container">
      <div class="form-container">
        <h2>Handcrafted, home-made masterpieces</h2>
        <form id="form" action="https://www.freecodecamp.com/email-submit">
          <input type="email" name="email" id="email" placeholder="Enter your email address" required> <br>
          <input type="submit" name="submit" value="GET STARTED" id="submit">
        </form>
      </div>
    </div>
  </div>
  <!--FOOTER-SECTION-->
  <div id="footer">
    <div class="container">
      <div class="footer-content">
        <p>Copyright 2020, Original Trombones</p>
        <div class="bottom-navbar">
          <a href="#">Privacy</a>
          <a href="#">Term</a>
          <a href="#">Contact</a>
        </div>
      </div>
    </div>
  </div>
</body>

</html>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a,
body {
  background-color: #eff0f3;
  color: #0d0d0d;
  font-family: "Montserrat", sans-serif;
}

h2 {
  font-size: 18px;
}

p {
  color: #2a2a2a;
  font-family: "Roboto", sans-serif;
}

a {
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: #ff8e3c;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#features,
#pricing {
  background-color: #fffffe;
}

.feature-content,
.pricing-content,
.video-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-content .feature-box,
.pricing-content .pricing-box {
  text-align: center;
  background-color: #eff0f3;
  width: 300px;
  margin: 15px;
  padding: 30px;
  border-radius: 5px;
}

/*************************************************HEADER-SECTION****************************************/
#header {
  background-color: #eff0f3;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

#logo img {
  width: 60px;
  height: 60px;
}

#logo span {
  font-size: 24px;
  font-family: "Abril Fatface", cursive;
}

#nav-bar ul {
  display: flex;
  margin-right: 20px;
}

#nav-bar ul li {
  list-style: none;
  padding: 0 20px;
}

/***********************************************HERO-SECTION****************************************/
.hero-content {
  display: flex;
  justify-content: center;
  padding-top: 100px;
}

.hero-content .cta-box {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hero-content img {
  display: block;
  margin: 0 auto;
  width: 450px;
  height: 450px;
}

.hero-content .cta-text {
  padding: 30px;
}

.cta-text h1 {
  font-size: 42px;
}

.cta-text p {
  font-size: 18px;
  line-height: 1.6;
  margin: 40px 0;
}

.cta-text .cta-btn {
  padding: 60px 0;
}

.cta-btn .btn {
  background-color: #ff8e3c;
  color: #0d0d0d;
  font-size: 21px;
  font-weight: bold;
  padding: 20px 60px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

.cta-btn .btn:hover {
  background-color: #f3c623;
}

/*********************************************FEATURES-SECTION**************************************/

.feature-box img {
  width: 100px;
}

.feature-box h2 {
  margin: 15px 0;
}

.feature-box p {
  font-size: 18px;
}

/* *************************************************VIDEO-SECTION ***********************************/

.video-content {
  display: flex;
  justify-content: center;
  margin: 30px;
}

/**********************************************PRICING-SECTION****************************************/

.pricing-box .pricing-title {
  background-color: #f3c623;
  border-radius: 5px;
  padding: 15px 0;
}

.pricing-box ul {
  margin: 20px 0;
}

.pricing-box span {
  display: block;
  margin: 20px 0;
  font-size: 28px;
  font-weight: bold;
}

.pricing-box ul li {
  list-style: none;
  font-size: 18px;

}

.pricing-box .price-btn {
  font-size: 21px;
  font-weight: bold;
  border-radius: 5px;
  border: none;
  background-color: #ff8e3c;
  margin: 20px 0;
  padding: 15px 30px;
  cursor: pointer;
}

.pricing-box .price-btn:hover {
  background-color: #f3c623;
}

/*******************************************FORM-SECTION********************************************/
.form-container {
  text-align: center;
  margin: 15px 0;
  padding-top: 30px;
}

.form-container #form {
  padding: 20px 0;
}

#form #email {
  padding: 10px 60px 10px 10px;
  font-size: 18px;
  border: 1px solid #0d0d0d;
  border-radius: 5px;
}

#form #submit {
  border: none;
  border-radius: 5px;
  font-size: 21px;
  font-weight: bold;
  padding: 15px 30px;
  margin: 15px 0;
  background-color: #ff8e3c;
  cursor: pointer;
}

#form #submit:hover {
  background-color: #f3c623;
}

/*******************************************FOOTER-SECTION**********************************************/
.footer-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 30px 0;


}

.footer-content a {
  padding: 0 15px;
}

/************************************************************** Media Query **********************************************/

@media only screen and (max-width: 1024px) {
  .hero-content {
    padding-top: 120px;
  }

  .hero-content .cta-text {
    padding: 10px;
  }
  
  .cta-text p {
    font-size: 16px;
    margin: 20px 0;
  }

  .cta-text .cta-btn {
    padding: 50px 0;
  }

}

@media only screen and (max-width: 768px) {

  #nav-bar ul li {
    padding: 5px 10px;
  }

  .hero-content {
    flex-wrap: wrap-reverse;
    padding-top: 130px;
  }

  .hero-content img {
    width: 400px;
    height: 400px;
  }

  .hero-content .cta-text {
    text-align: center;
  }

  .cta-text .cta-btn {
    padding: 30px 0;
  }

  .footer-content {
    flex-direction: column-reverse;
    align-items: center;
  }

  .footer-content a {
    padding: 0 10px;
  }

  .footer-content p {
    margin: 15px 0;
  }
}

@media only screen and (max-width: 480px) {
  .header-content {
    flex-direction: column;
    justify-content: center;
  }

  #nav-bar ul {
    flex-direction: row;
    justify-content: center;
    margin: 10px 0;
  }

  #logo {
    flex-direction: column;
    justify-content: center;
  }

  #logo img {
    width: 50px;
    height: 50px;
  }

  #logo span {
    font-size: 20px;
  }

  .hero-content {
    padding-top: 150px;
  }

  .cta-text h1 {
    font-size: 32px;
  }

  .hero-content img {
    width: 250px;
    height: 250px;
  }

  .feature-content .feature-box,
  .pricing-content .pricing-box {
    width: 250px;
  }

}
              
            
!

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