123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html>
  <head>
    <title>FCC Product Landing Page</title>
    <link rel="stylesheet" href="./style.css">
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
    <meta name=viewport content="width=device-width, initial-scale=1">
    <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js" integrity="sha384-kW+oWsYx3YpxvjtZjFXqazFpA7UP/MbiY4jvs+RWZo2+N94PFZ36T6TFkc9O3qoB" crossorigin="anonymous"></script>
  </head>

<body>
  <div class="wrapper">

    <header id="header">
      <div class="logo">
        <a href="#"><img src="https://six03.com/landing-page/logo.png" id="header-img" alt="Woodsman Company Logo" /></a>
      </div>

      <nav id="nav-bar">
        <ul>
          <li><a class="nav-link" href="#features">Features</a></li>
          <li><a class="nav-link" href="#video-player">How It Works</a></li>
          <li><a class="nav-link" href="#pricing">Pricing</a></li>
        </ul>
      </nav>

    </header>

  <section id="hero">
    <h2>Handcrafted Axes</h2>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input name="email" id="email" type="email" placeholder="Enter your email address" required />
      <input id="submit" type="submit" value="Get Started" class="btn">
    </form>
  </section>

  <section id="features">
    <div class="icon">
      <i class="fas fa-3x fa-truck" aria-hidden="true"></i>
    </div>

    <div class="description">
      <h2>Quality Materials</h2>
      <p>A good product that is looked after is likely to have an extended life, which means we don't need to make as many of them. As proof of our commitment to making long-lasting products, our axes come with a 20 year guarantee.</p>
    </div>

    <div class="icon">
      <i class="fas fa-3x fa-tree" aria-hidden="true"></i>
    </div>

    <div class="description">
      <h2>Environmentally Friendly</h2>
      <p>For our axes, we use recycled steel, vegetable tanned, chromium-free leather and wooden handles made of hickory. The choice of material is important, not just for environmentally aware manufacturing, but also in terms of what happens to the materials when the axe finally reaches the end of its life. The steel can be recycled, while the leather and the handle will decompose, so no waste is created.</p>
    </div>

    <div class="icon">
      <i class="fas fa-3x fa-users" aria-hidden="true"></i>
    </div>

    <div class="description">
      <h2>Our People</h2>
      <p>An axe is only as good as the accumulated skills of the people who forge, grind and attach the handle to the axe. All our axes are made by human hand. And all these people deserve great respect and recognition for their professional expertise. Our company would be nothing without them.</p>
    </div>

  </section>

  <section id="video-player">
    <iframe id="video" width="560" height="315" src="https://www.youtube-nocookie.com/embed/SQJCf4dPguw" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  </section>

  <section id="pricing">
    <div id="hatchet">
      <div class="item">
        Kindling Axe
      </div>
      <h2>$80</h2>
      <ol>
        <li>Hickory handle</li>
        <li>Genuine leather blade sheath</li>
        <li>Head 6-&frac12;&quot;L x 3-&frac34;&quot;W, 1-&frac34; lb</li>
        <li>Overall about 17&quot;L, 2-&frac34; lb</li>
        <li>USA made in Maine</li>
      </ol>
      <button class="btn">Select</button>
    </div>
    <div id="axe">
      <div class="item">
        Forest Axe
      </div>
      <h2>$181</h2>
      <ol>
        <li>Top-grain leather sheath</li>
        <li>Hickory handle 14-&frac12;&quot;L</li>
        <li>1 lb</li>
        <li>20-year guarantee</li>
        <li>Made in Sweden</li>
      </ol>
      <button class="btn">Select</button>
    </div>
    <div id="double-headed">
      <div class="item">
        Double-Headed Axe
      </div>
      <h2>$319</h2>
      <ol>
        <li>Hand-forged of Swedish steel</li>
        <li>Double bit head 3-&frac34; lb</li>
        <li>American hickory handle 30&quot;L</li>
        <li>Overall wt about 5 lb</li>
        <li>Handcrafted in Sweden since 1697!</li>
      </ol>
      <button class="btn">Select</button>
    </div>
  </section>
  <footer>
    <ul>
      <li><a href="#">Privacy</a></li>
      <li><a href="#">Terms</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
    <span>&copy;2018, Woodsman</span>
  </footer>
</div>

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

</body>
</html>
            
          
!
            
              * {
  box-sizing: border-box;
}

:focus:not(:focus-visible) {
  outline: none;
}

video, iframe {
  height: auto;
  max-width: 560px;
  width: 100%;
}

body {
  margin: 0;
  background-color: rgb(238, 238, 238);
  font-family: 'Source Sans Pro', sans-serif;
   line-height: 1.5;
}

li {
  list-style: none;
}

a {
  color: rgb(0, 0, 0);
  text-decoration: none;
}

header {
  background-color: #eee;
  display: flex;
  justify-content: space-around;
  position: fixed;
  top: 0;
  width: 100%;
}

.logo {
  width: 30vw;
  max-width: 100%;
  padding: 1em 0;
}

img {
  max-width: 100%;
}

nav {
  font-weight: 400;
  margin-top: 3.5em;
}

ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 40vw;
}
#nav-bar ul li a {
  padding: 0 1em;
}

#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 600px;
  margin: 5em 0;
  background-image: url('http://k-axe.com/wp-content/uploads/2016/01/wilderness-axe-banner.jpg');
  background-attachment: fixed;
  background-position: 50% 50%;
  background-size: cover;
  text-shadow: 2px 2px 5px black;
  color: white;
}

h2 {
  font-size: 1.65rem;
  margin-bottom: 10px;
  word-wrap: break-word;
}

input[type="email"] {
  box-shadow: 2px 2px 5px;
  max-width: 275px;
  width: 100%;
  padding: 5px;
}

input[type="submit"],
#pricing #hatchet button,
#pricing #axe button,
#pricing #double-headed button {
  box-shadow: 2px 2px 5px;
  max-width: 150px;
  width: 100%;
  height: 30px;
  margin: 15px 0;
  border: 0;
  background-color: crimson;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

input[type="submit"]:hover {
  background-color: red;
  transition: background-color 1s;
}

#features {
  display: grid;
  grid-template-columns: 75px max-content;
  grid-gap: 1.5em;
  justify-content: center;
  margin-top: 1em;
}

.icon {
  color: crimson;
  align-self: center;
  justify-self: center;
}

.description {
  max-width: 60vw;
}

#video-player {
  display: flex;
  height: 315px;
  justify-content: center;
  margin: 0 auto;
  padding: 1em;
}

#pricing {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#pricing #hatchet,
#pricing #axe,
#pricing #double-headed {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(65%  / 3);
  margin: 10px;
  border: 1px solid #000;
  border-radius: 3px;
}

#pricing #hatchet .item,
#pricing #axe .item,
#pricing #double-headed .item {
  background-color: #ddd;
  color: black;
  padding: 15px 0;
  width: 100%;
  text-transform: uppercase;
  font-weight: 700;
}

#pricing #hatchet h2,
#pricing #axe h2,
#pricing #double-headed h2 {
  margin-top: 15px;
}

#pricing #hatchet ol,
#pricing #axe ol,
#pricing #double-headed ol {
  height: 200px;
  margin: 15px 0;
  text-align: left;
}

#pricing #hatchet ol li,
#pricing #axe ol li,
#pricing #double-headed ol li {
  padding: 5px 0;
}

#pricing #hatchet button:hover,
#pricing #axe button:hover,
#pricing #double-headed button:hover {
  background-color: red;
  transition: background-color 1s;
}

footer {
  background-color: #ddd;
  padding: 20px;
  width: 100%;
}

footer ul {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  padding: 0;
  width: 100%;
}

footer ul li {
  padding: 0 10px;
}

footer span {
  display: flex;
  font-size: 0.9em;
  color: #444;
  justify-content: center;
}

/* Media Queries */
@media (max-width: 320px) {
  #nav-bar ul {
    width: 100%;
  }
}
@media (max-width: 550px) {
  .description {
    padding: 0 1em;
  }
}
@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .logo {
    margin-top: 1em;
  }
  nav {
    align-items: center;
    flex-direction: column;
    margin-top: 10px;
    text-align: center;
    width: 100%;
  }
  li {
    padding-bottom: 5px;
  }
  ul {
    flex-direction: row;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .description {
    margin-top: 0;
  }
}
@media (max-width: 800px) {
  #nav-bar ul {
    width: 100%;
  }
  #pricing {
    flex-direction: column;
  }
  #pricing #hatchet,
  #pricing #axe,
  #pricing #double-headed {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
  }
}

            
          
!
            
              // coded by @atjonathan
   const projectName = 'product-landing-page';
localStorage.setItem('example_project', 'Product Landing Page');
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console