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

              
                <body>
  <header id="header">
    <nav id="nav-bar">
      <img src="https://findlogovector.com/wp-content/uploads/2018/11/core-spaces-logo-vector.png" id="header-img" alt="core rebounding" width="130" height="70">
      <ul class="nav-list">
        <li class="nav-items"><a href="#about-us" class="nav-link">About us</a></li>
        <li class="nav-items"><a href="#why-rebounding" class="nav-link">Why Rebounding</a></li>
        <li class="nav-items"><a href="#buy-now" class="nav-link">The Core Rebounder</a></li>
      </ul>
    </nav>
  </header>
  <main>
    <div class="container">
      <img src="https://cdn.shopify.com/s/files/1/0256/8159/2395/articles/raiseyourvibration_featured_eba98a75-913c-481b-a8aa-4aaf0b84c92e_1600x.jpg?v=1593807845" height="500" width="800" id="main-photo" alt="woman using rebounder">
      <section>
        <div class="about-container">
          <h1 id="about-us">About Us</h1>
          <p class="about">"We are a family owned business that is dedicated to providing the highest quality rebounders so that people can reach their maximum health potential."</p>
        </div>
      </section>
      <section>
        <div class="why-rebounding-container">
          <h1 id="why-rebounding">Why Rebounding</h1>
          <ul class="rebounding">
            <li>Rebounding, also know as jumping on a trampoline, is one of the most effective exercises for a full body workout. It literally works your body to the core.</li>
            <li>It is 68% more efficient than jogging, and is much easier on the joints.</li>
            <li>The increased G force that occurs with rebounding strengthens bone density which is why it is NASA's exercise of choice for austronauts returning from space.</li>
            <li>It's the most effective way to decrease cellulite.</li>
            <li>It can increase lymphatic flow by as much as 15x which helps the body with detoxification and boosts immunity.</li>
            <li>It's just plain fun! Check out the video below to get an idea of what you can do on a rebounder.</li>
          </ul>
        </div>
      </section>
      <iframe id="video" width="230" height="315" src="https://www.youtube.com/embed/JcN3xdwzSXA?autoplay=1&mute=1" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      <section>
        <div class="buy-now-container">
          <h1 id="buy-now">The Core Rebounder</h1>
          <div class="features">
            <h2>Performance</h2>
            <p>Our design features bungees instead of metal springs which allows you to customize your rebounder to suit your needs.</p>
            <h2>Durability</h2>
            <p>We offer a lifetime warranty on our frames and use the finest quality materials so that you can count on your Core Rebounder for many years to come.</p>
            <h2>Easy Storage</h2>
            <p>The folding legs make storage a breeze.</p>
            <h2>Safety and Stability</h2>
            <p>We offer single or dual handle bars for added stability.</p>
          </div>
        </div>
      </section>
      <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRX15i1TJDEJwpAIlzlcRHnRGMV4Z4hhJFT2w&usqp=CAU" height="300" width="400" id="core-rebounder" alt="a rebounder">
      <h3><a href="#" class="click-here">Start your order</a></h3>
      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <p>Subscribe to our newsletter <br><span class="5">get 5% off of your order!</span></p>
        <label for="email">Email</label>
        <input name="email" type="email" placeholder="john@example.com" id="email" required />
        <input class="submit" type="submit" id="submit" />
      </form>
    </div>
  </main>
  <footer>
    <ul class="footer-nav">
      <li><a href="#">Contact</a></li>
      <li><a href="#">Shipping</a></li>
      <li><a href="#">FAQ</a></li>
    </ul>
    <p class="copyright">Copyright 2020, Core Rebounders</p>
  </footer>
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a:focus,
a:hover {
  background-color: white;
  color: black;
}
html {
  scroll-padding-top: 100px;
}
#header {
  background-color: white;
  width: 100%;
  position: fixed;
  height: 100px;
}
#header-img {
  display: block;
  margin: auto;
}
.nav-link {
  text-decoration: none;
  color: black;
}
.nav-list {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 1.2em;
  font-family: "changa", sans-serif;
  font-weight: bold;
}
@media (min-width: 630px) {
  .nav-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 30px 0px;
    list-style-type: none;
  }
  .nav-items {
    padding: 0px 10px;
  }
  #header-img {
    position: fixed;
    left: 35px;
    top: 15px;
  }
}
#main-photo {
  margin: auto;
  display: block;
  width: 100%;
  height: auto;
}
.container {
  padding-top: 100px;
}
h1 {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 15px;
  font-family: "changa", sans-serif;
}

.about {
  width: 95%;
  max-width: 600px;
  text-align: left;
  margin: auto;
  padding-bottom: 50px;
  font-size: 1em;
  font-family: kalinga;
}
.rebounding {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 40px;
  width: 95%;
  max-width: 600px;
  margin: auto;
  list-style-type: circle;
  list-style-position: inside;
  font-family: kalinga;
}
.why-rebounding-container {
  background-color: #e6edeb;
}

@media (max-width: 630px) {
  .container {
    padding-top: 185px;
  }
  #header {
    height: 180px;
  }
}
iframe {
  padding: 40px 0px;
}
#video {
  width: 90%;
  max-width: 700px;
  margin: auto;
  display: block;
  border: none;
}
#core-rebounder {
  margin: auto;
  display: block;
  max-width: 280px;
  height: auto;
  padding-top: 40px;
}
#buy-now {
  font-size: 1.5em;
}
.buy-now-container {
  background-color: #e6edeb;
  text-align: center;
}
.features {
  text-align: left;
  font-family: kalinga;
  max-width: 550px;
  margin: auto;
}
.features h2 {
  font-size: 1.2em;
}
.features p {
  padding-bottom: 20px;
}
h3 {
  text-align: center;
  padding-bottom: 20px;
}
.click-here {
  text-align: center;
  font-size: 1.5em;
  font-family: "changa", sans-serif;
  font-weight: bold;
}
#form {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
  width: 95%;
  max-width: 600px;
  font-family: kalinga;
  padding: 50px;
  background-color: #e6edeb;
  border: 4px dashed black;
}
span {
  font-size: 1.5em;
}
#email {
  padding: 10px;
  width: 255px;
}
.submit {
  display: block;
  width: 100px;
  height: 50px;
  margin-top: 15px;
  cursor: pointer;
}
footer {
  font-family: kalinga;
}
.footer-nav {
  display: flex;
  justify-content: space-around;
  list-style-type: none;
  padding: 20px;
  font-weight: bold;
}
.copyright {
  text-align: center;
}
@media (min-width: 500px) {
  .footer-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  .footer-nav li {
    padding: 20px;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console