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>

<header id="header">
  <div class="logo">
    <img id="header-img" src="https://external-content.duckduckgo.com/iu/?u=http%3A%2F%2Fknifesharpeningbyhand.com%2Fwp-content%2Fuploads%2F2011%2F09%2Fcarter_cutlery_logo.jpg&f=1&nofb=1" alt="logo">
    <span><strong>Joshimitu</strong>Blades</span>
  </div>
  <nav id="nav-bar">
    <ul class="nav-links">
      <li><a class="nav-link" href="#welcome">Welcome</a></li>
      <li><a class="nav-link" href="#tradition">Tradition Of Forging</a></li>
      <li><a class="nav-link" href="#pricing">Pricing</a></li>
    </ul>
  </nav>
</header>
<div id="welcome">
  <div class="welcome-text">
    <h3>BEST <span class=>QUALITY TO PRICE RATIO</span> IN THE WORLD</h3>
    <h3>FREE WORLDWIDE SHIPPING <span class="red">FOR ORDERS OVER 100$</span></h3>
  </div>
  <!--<div class="welcome-photo">
                <img src="https://www.knifan.com/media/magentothem/banner7/xknifan-slider-banner-2.jpg" alt="blade">
            </div>-->
</div>
<section id="tradition">

  <ul id="text-container">
    <h2> Joshimoto family tradition</h2>

    <li>Joshimoto family have tradition of forging blades since 1902</li>
    <li>Joshimoto seeks to bring the best hand-forged chef and kitchen knives directly from Japan to people around the world at the lowest price available in order to promote and preserve the dying art of knife-making in Japan.</li>
    <li>Whether you are a chef, a foodie or someone who simply loves to cook, in Knifan you will find a knife that will stand the test of time and elevate your relationship with food to an exquisite level. </li>

  </ul>

  <div id="video-container">
    <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/B37THlDrosw" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
    </iframe>
  </div>
</section>
<section id="pricing">
  <div class="product" id="kitchen">
    <div class="level">Kitchen knives
    </div>
    <h4>Starts from:</h4>
    <h2>69,99$</h2>
    <ul>
      <li>Express Delivery Worldwide</li>
      <li>10yrs blade warranty</li>
      <li>Free grinding stone included</li>
    </ul>
    <button class="butt">Select</button>
  </div>
  <div class="product" id="butcher">
    <div class="level">Pro butcher knives
    </div>
    <h4>Starts from:</h4>
    <h2>129,99$</h2>
    <ul>
      <li>Express Delivery Worldwide</li>

      <li>20yrs blade warranty</li>
      <li>3 piece grinding stone set</li>
    </ul>
    <button class="butt">Select</button>
  </div>
  <div class="product" id="chef">
    <div class="level">Pro chef knives
    </div>
    <h4>Starts from:</h4>
    <h2>189,99</h2>
    <ul>
      <li>Express Delivery Worldwide</li>

      <li>Lifetime blade warranty</li>
      <li>5 piece grinding stone set</li>
    </ul>
    <button class="butt">Select</button>
  </div>
</section>
<section id="offer">
  <h4>Want to look at the full offer? Leave your email and we'll send you catalog</h4>
  <form id="form" action="https://www.freecodecamp.com/email-submit">
    <input class="email-input" name="email" id="email" type="email" placeholder="Your email here">
    <input id="submit" type="submit" value="Submit" class="btn">
  </form>

</section>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
  font-family: montserrat;
  margin: 0;
  background-color: black;
  color: white;
}

#header {
  position: fixed;
  z-index: 10;
  width: 100%;
  height: 65px;
  display: flex;

  justify-content: flex-end;
  align-items: center;
}
@media (max-width: 740px) {
  #header {
    flex-flow: column wrap;
    align-items: flex-end;
  }
}
.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-right: auto;
}
.logo img {
  height: 64px;
}
#welcome {
  min-height: 350px;
  min-width: 550px;
  position: relative;
  top: 80px;
}

.welcome-text {
  text-align: center;
  width: 100%;

  height: 480px;

  font-size: 24px;

  padding-top: 120px;
  background-image: url(https://www.knifan.com/media/magentothem/banner7/xknifan-slider-banner-2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.welcome-text .red {
  background-color: rgba(247, 5, 5, 0.9);
}

li,
a {
  text-decoration: none;
}
.nav-links {
  list-style: none;
}

.nav-links li {
  display: inline-block;
  padding: 0px 25px;
}
.nav-links li:hover {
  box-shadow: 0 8px 6px -6px #999;
}
.nav-links li a {
  transition: all 0.2s ease-out 0s;
}
.nav-links li a:hover {
  color: grey;
}
#tradition {
  position: relative;
  top: 200px;
  display: flex;
  flex-flow: row;
}
.video-container {
  transform: inherit;
}

#text-container {
  min-height: 740px;
  display: block;
  font-weight: bold;
  flex-grow: inherit;

  padding-right: 40px;

  line-height: 1.6;
}
#text-container li {
  list-style: none;
  padding-bottom: 15px;
}
#text-container h2 {
  margin-bottom: 3px;
  text-transform: uppercase;
  background-color: red;
}

#pricing {
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
}
@media (max-width: 1040px) {
  #pricing {
    flex-flow: column;
    align-items: center;
  }
}
#pricing li {
  list-style: none;
}
.product {
  position: relative;
  border: 1px solid white;
  border-radius: 0.4rem;
  width: 100%;
  margin: 1rem 2rem 1rem 2rem;
  line-height: 2;
  box-shadow: 3px 3px 0px 0px rgba(228, 225, 225, 0.2);

  height: 22rem;
}
@media (max-width: 1040px) {
  .product {
    width: 60%;
  }
}
.product .level {
  background-color: rgba(247, 5, 5, 0.9);
  text-transform: uppercase;
  margin-top: inherit;
  padding-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1.25rem;
}
.product h2 {
  margin-top: 1.25rem;

  color: rgba(247, 5, 5, 0.9);
}

.product ul {
  margin-bottom: 1.5rem;
}

.product button {
  position: relative;
  font-weight: bold;
  color: black;
  padding: 12px 35px;
  background-color: rgba(247, 5, 5, 0.9);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
}
.product button:hover {
  background-color: rgba(247, 5, 5, 0.6);
  box-shadow: 2px 1px 0px 0px rgba(228, 225, 225, 0.1);
  transform: scale(1.05);
}
@media (max-width: 740px) {
  .product {
    flex-flow: column;
  }
}
#offer {
  text-align: center;
  margin-top: 2.8rem;
  display: flex;
  flex-direction: column;
}

.email-input {
  margin-top: 1rem;
  height: 1.7rem;
  width: 25%;
}
.email-input::placeholder {
  padding-left: 0.5rem;
  color: rgba(247, 5, 5, 0.8);
  text-shadow: 2px 2px 8px rgba(228, 225, 225, 0.6);
}
.btn {
  margin-top: 0.4rem;
  margin-bottom: 2rem;
  font-weight: bold;
  color: black;
  padding: 6px 20px;
  background-color: rgba(247, 5, 5, 0.9);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
}
.btn:hover {
  background-color: rgba(247, 5, 5, 0.5);

  box-shadow: 2px 1px 0px 0px rgba(228, 225, 225, 0.1);
  transform: scale(1.05);
}

              
            
!

JS

              
                
              
            
!
999px

Console