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

              
                <!-- 

Hello Camper!

Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<header id="header" class=" product-header">
   <div class="container nav-bar-wrapper">
    <img class="logo" id="header-img" src="https://scontent.fman4-2.fna.fbcdn.net/v/t1.6435-9/fr/cp0/e15/q65/49662909_2271191572894025_9131898871356588032_n.jpg?_nc_cat=110&ccb=1-5&_nc_sid=ed5ff1&efg=eyJpIjoidCJ9&_nc_ohc=Ic_z-CrIyEQAX8k4sGs&_nc_ht=scontent.fman4-2.fna&oh=29ec249b6485388babefe0ea927cdbb1&oe=61AE2386" alt="Frosty Gaming Logo"> 
     <div class="nav-menu">
      <nav id="nav-bar">
        <ul>
          <li><a class="nav-link" href="#description">Description</a></li>
          <li><a class="nav-link" href="#features">Product Features</a></li>
          <li><a class="nav-link" href="#pricing">Pre-Order</a></li>
        </ul>
      </nav>
     </div>
   </div>
</header>

<div class="product-information container">
  <div id="description" class="product-description-wrapper">
    <div class="intro-text">
      <h1>Frosty Gaming Special Edition</h1>  
      <p>To celebrate becoming a Twitch partner I am offering you the chance to buy a special edition Frosty gaming chair. Their will only be 30 chairs created so make sure you get your order in quick. The chairs will be created by the team at Secret Lab and will have Frosty gaming colours and our logo on the chair.</p>
<p>The chairs our available in multiple sizes and different materials, though only the <b> first three hundred orders </b> will go through to the Secret Lab team. Pre-orders are now open, first come first served. Orders will be completed and delivered within two weeks of ordering.</p>
<p><i>Participants must be 18 years of age or older to participate.</i> Good luck and remmeber <b>Stay Frosty.</b></p>
    </div>
    <div class="video-wrapper">
      <iframe id="video"width="100%" height="315px" src="https://www.youtube.com/embed/Fkey2ZvX6lU?autoplay=1&mute=1">
      </iframe>
    </div>
  </div>
  
  <div id="features" >
    <div class="product-features-wrapper">
      <div class="info-card">
        <h3>Testing</h3>
        <ul>
          <li>25,000+ Hours of R&D</li>
          <li>32 Prototypes</li>
          <li>50,000+ Hours Testing</li>
        </ul>
      </div>
      <div class="info-card">
        <h3>Technology</h3>
        <ul>
          <li>Lumbar Support System</li>
          <li>Magnetic Memory Foam Head Pillow</li>
          <li>Ful-Metal Armrests</li>
        </ul>
      </div>
      <div class="info-card">
        <h3>Design</h3>
        <ul>
          <li>Hybrid Leatherette</li>
          <li>Resin Top Laminate</li>
          <li>Unique Frosty Gaming Design</li>
        </ul>
      </div>
    </div>
  </div>
  <div id="pricing" class="product-preorder-form container">
      <h2>Pr-Order Your Chair Now!!</h2>
   <div class="form-wrapper">
    <form id="form" action="https://www.freecodecamp.com/email-submit">
     <div class="form-element">
      <label for="name" id="name-label" class="form-label">Name</label>
      <input type="text" id="name" class="text-input form-input" placeholder="Enter Your Name" required>
    </div>
    
    <div class="form-element">
      <label for="email" id="email-label" class="form-label">Email</label> 
      <input type="email" id="email" name="email" class="text-input form-input" placeholder="Email Address" required>
    </div>
  
    <div class="form-element">
      <label for="number" id="number-label" class="form-label">Age</label>
      <input type="number" id="number" class="num-input form-input" placeholder="25" min="16" max="80" required >
    </div>
      
      <div class="form-element">
        <label for="dropdown" id="dropdown-label" class="form-label">Choose your Size</label>
        <select  id="dropdown" class="form-input">
           <option disabled selected value>Select</option>
           <option value="male">Small</option>
           <option value="female">Regular</option>
           <option value="other">XL</option>
        </select>
      </div>
        <div class="form-element">

        <input id="submit" class="submit-button" type="submit" value="Pre-Order">
        </div>
      </form>
     </div>
    
    
  </div>
</div>


              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Play&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:'Play', sans-serif;
}
body{
  background: linear-gradient( rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5) ), url("https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/4bdd888b-fe5c-4358-8c46-5362c7ce3154/dehn7hz-56d75669-c27f-4d2b-8e30-91dc2c542e4c.jpg/v1/fill/w_1280,h_720,q_75,strp/cool_gaming_background_4k_by_skullbreaker000_dehn7hz-fullview.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9NzIwIiwicGF0aCI6IlwvZlwvNGJkZDg4OGItZmU1Yy00MzU4LThjNDYtNTM2MmM3Y2UzMTU0XC9kZWhuN2h6LTU2ZDc1NjY5LWMyN2YtNGQyYi04ZTMwLTkxZGMyYzU0MmU0Yy5qcGciLCJ3aWR0aCI6Ijw9MTI4MCJ9XV0sImF1ZCI6WyJ1cm46c2VydmljZTppbWFnZS5vcGVyYXRpb25zIl19.oV9fk5Nb0ps6-6_Omk6AfhkNvdqDyQRvV_hLyys1S6Q");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color:white;
  font-size:20px;
  padding-bottom:120px;
}
ul{
  list-style-type: none;
}
h3{
  padding-bottom:20px;
}
h2{
  padding-bottom:20px;
}
p, li{
  font-size:18px;
}
p{
  margin-bottom:10px;
}

.container{
  padding:20px 240px;

}
.nav-bar-wrapper{
  display:flex;
  justify-content:space-between;
  align-items:center;
  position: fixed;
  top: 0;
  width: 100%;
  background-color:black;
  z-index:1;
}
.logo{
  max-height:50px;
}
.nav-menu ul{
  display:flex;
  list-style:none;
}
.nav-link{
  color:white;
  padding-left:40px;
  font-size:2.5vw;
}

.product-description-wrapper{
  display:flex;
  justify-content:space-between;
  padding-top:200px;
  gap: 40px;
}

.intro-text{
  width:60%;
}
.intro-text h1{
  font-size:3rem;
  padding-bottom:30px;
}

.product-features-wrapper{
  display:flex;
  justify-content:space-evenly;
  gap:30px;
  padding:56px 0 56px 0;
}
 
.info-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  background-color:black;
  padding:40px 35px;
  opacity:0.95;
  border-radius: 8px;
}
.info-card li{
  padding-bottom:10px;
}

.product-preorder-form{
  margin: auto;
  background:black;
  display:flex;
  width: 100%;
  flex-direction:column;
  border-radius:10px;
  opacity:0.95;
  padding: 40px 240px;
}
.form-input{
  width:100%;
  border:none;
  border-radius:2px;
  height:30px;
  margin: 10px 0 20px;
}
.submit-button{
  color:white;
  background-color:black;
  border:none;
  padding:20px;
  font-size:18px;
}
.submit-button:hover{
  color:black;
  background-color:white;
  cursor: pointer;
}

@media(max-width:1400px){
  .product-description-wrapper{
      flex-direction: column;
  }
  .intro-text{
    width:100%;
  }
  .video-wrapper{
    display:flex;
    justify-content:center;
  }
  .container{
     padding:40px 180px
  } 
}
@media(max-width:1200px){
  .nav-bar-wrapper{
    display:flex;
    flex-direction:column;
  }
   .nav-menu ul{
    padding-top:15px;
  }
}
@media(max-width:992px){
  .container{
     padding:40px 120px
  } 
  .product-features-wrapper{
    display:flex;
    flex-direction:column;
  }
  
}
@media(max-width:768px){
  .container{
    padding: 40px 60px;
  }
}
@media(max-width:576px){
  .container{
    padding: 40px 40px;
  }
}


              
            
!

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