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

              
                <header id="header">
  <img id="header-img" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/AMD_Ryzen_logo.svg/800px-AMD_Ryzen_logo.svg.png" alt="radeon logo" />
  <nav id="nav-bar">
    <ul id="nav_list">
      <li><a class="nav-link" href="#home">Home</a></li>
      <li><a class="nav-link" href="#features">Features</a></li>
      <li><a class="nav-link" href="#models">Models</a></li>
    </ul>
  </nav>
</header>

<body>
  <section id="home">
    <h1>AMD Ryzen™ 5000 Series Desktop Processors</h1>
    <div class="container" id="videopage">
      <iframe class="responsive-iframe" id="video" src="https://www.youtube.com/embed/8KAnebwCAaA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </div>
  </section>

  <section id="features">
    <ul id="features_list">
      <li>
        <h2>TechRadar called Ryzen™ Threadripper™ the most powerful processor they'd ever tested</h2>
        <p>With up to 16 cores, 32 threads, and factory unlocked1 out of the box, Threadripper is a performance powerhouse. Designed to steam through digital content creation, 3D rendering, gaming and streaming, CAD work and more, Threadripper offers users a competitively-priced powerful processor that allows them to do everything, at the same time.</p>
      </li>
      <li>
        <h2>AMDs AM4 Socket is fully scalable, from 2-core to 8-core, 16-thread processors</h2>
        <p>Users continuously demand more from their technology, which is why AMD doesn't believe in artificially holding systems back. The AM4 platform is fully scalable hardware, meaning a consumer with a relatively low budget could start with a 2-core CPU or APU, and upgrade to a 4 or even 8-core/16-thread CPU (such as the Ryzen™ 7 1800X) without having to upgrade their motherboard and accompanying components.</p>
      </li>
      <li>
        <h2>Ryzen virtually matches Intel's single-core performance and offers up to 75% higher processing performance than the competition</h2>
        <p>Clock-for-clock, Ryzen's single-core performance is on par with Intel's current market offerings. But AMD outshines the competition with the simple fact that Ryzen offers up to 75% higher multi-threaded processing performance than the competition, bringing incredible prosumer capabilities than ever before. An example of this difference is Intel's 4-thread Core i5-7600K, in comparison to AMD's 12-thread Ryzen 5 1600X, both of which share similar price brackets.
        </p>
      </li>
      <li>
        <h2>Threadripper is the highest-performance desktop processor ever offered in a consumer desktop today</h2>
        <p>With up to 16 cores and 32 threads, there are few tasks Threadripper can't accomplish, from UltraHD video editing, gaming and streaming and recording, to 3D rendering, CAD, and more. Users can do it all – at the same time. Threadripper is the future of power-user builds and gaming while streaming and recording systems, removing the need for dual-system set-ups.

          Put simply, Threadripper is the most powerful processor available today that's ever been unleashed on a consumer desktop8. Consumers can utilize the kind of power that's previously been reserved for workstation desktops until now.

          Threadripper puts creativity, scalability and freedom into consumer's hands, and incredible performance into their systems. Help unleash that creative potential by offering Thread​ripper.</p>
      </li>
    </ul>
  </section>

  <section id="models">
       
    <div class="products">
      <h2>AMD Ryzen™ 9 5950X</h2>
        <ul id="models_list">
          <li><em># of CPU Cores:</em>
            16</li>
          <li><em># of Threads:</em>
            32</li>
          <li><em>Max Boost Clock:</em>
Up to 4.9GHz</li>
          <li><em>Base Clock:</em>
            3.4GHz</li>
      </ul>
      <div class="center"><button class="btn">Shop</button></div>
    </div>
      
    <div class="products">
      <h2>AMD Ryzen™ 9 5900X</h2>
      <ul id="models_list">
          <li><em># of CPU Cores:</em>
            12</li>
          <li><em># of Threads:</em>
            24</li>
          <li><em>Max Boost Clock:</em>
Up to 4.8GHz</li>
          <li><em>Base Clock:</em>
            3.7GHz</li>
      </ul>
      <div class="center"><button class="btn">Shop</button></div>
    </div>
      
    <div class="products">
      <h2>AMD Ryzen™ 7 5800X</h2>
      <ul id="models_list">
          <li><em># of CPU Cores:</em>
            8</li>
          <li><em># of Threads:</em>
            16</li>
          <li><em>Max Boost Clock:</em>
Up to 4.7GHz</li>
          <li><em>Base Clock:</em>
            3.8GHz</li>
      </ul>
      <div class="center"><button class="btn">Shop</button></div>
    </div>
      
    <div class="products">
      <h2>AMD Ryzen™ 5 5600X</h2>
      <ul id="models_list">
          <li><em># of CPU Cores:</em>
            6</li>
          <li><em># of Threads:</em>
            12</li>
          <li><em>Max Boost Clock:</em>
Up to 4.6GHz</li>
          <li><em>Base Clock:</em>
            3.7GHz</li>
      </ul>
      <div class="center"><button class="btn">Shop</button></div>
    </div>

  </section>

  <form action="https://www.freecodecamp.com/email-submit" id="form">
      <label id="email_label" for "email">Subscribe for Deals</label>
      <input type="email" id="email" name="email" placeholder="Enter Email Address">
      <input id="submit" type="submit">
  </form>

</body>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap");

#header-img {
  width: 120px;
  height: 60px;
}

header {
  z-index: 1; 
  top: 0;
  width: 100%;
  display: flex;
  position: fixed;
  left: 0; 
}

nav {
  width: 100%;
  background-color: white;
}

#nav_list {
  list-style-type: none;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

li a {
  display: block;
  font-size: 20px;
  color: black;
  text-decoration: none;
  text-align: center;
  padding: 14px 20px;
}

@media screen and (max-width: 600px) {
  li a {
    font-size: 15px; 
  }
}

li a:hover {
  background-color: black;
  color: white;
}

body {
  background-color: #e6e6e6;
  font-family: "Roboto";
  max-width: 100%;
}

#home {
  max-width: 700px;
  width: 100%; 
  margin: auto;
  padding-top: 50px;
}

h1 {
  font-size: 30px;
}

form {
  width: 300px;
  margin: auto;
  padding-top: 30px;
}

#email_label {
  font-size: 30px;
  width: 100%;
}

#email {
  width: 100%;
  margin: 8px 0;
}

#submit {
  display: block;
  margin: auto;
  width: 50%;
  height: 20px;
  cursor: pointer;
  font-size: 15px;
  padding-bottom: 20px;
}

#submit:hover {
  background-color: black;
  color: white;
}

#features_list {
  list-style-type: none;
}

#features {
  padding-top: 50px;
  background-color: white;
  padding-bottom: 50px;
}

#models {
  display: flex;
  justify-content: center;
  padding-top: 50px;
}

.products {
  margin: 10px;
  border: 2px solid;
  background-color: white;
}

.products > h2 {
  margin: 0px;
  background-color: #e6e6e6;
  padding: 25px 25px;
}

.btn {
  width: 50%;
  border-radius: 2px;
}

.btn:hover {
  cursor: pointer;
  background-color: black;
  color: white;
}

.center {
  text-align: center;
  padding-bottom: 10px;
}

.container {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 800px) {
  #models {
    flex-direction: column;
  }
}

              
            
!

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