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 

-->
<!DOCTYPE html>
<html lang="en">
<head>
  <title>The Personal Computer</title>
</head>

<body>
  <main id="main-doc">

    <section class="main-section" id="What_is_a_PC?">
      <header>
        <h1>What is a PC?</h1>
      </header>
      <nav id="navbar">
        <header>
       Navigation
        </header>
        <ul>
          
            <li class="no-bullet">
             <a class="nav-link" href="#What_is_a_PC?" id="What_is_a_Personal_Computer?">
                
              What is a PC?</a>     
            </li>
  

          <li class="no-bullet"> <a class="nav-link" href="#What_is_it_made_out_of?" id="Hardware">What is it made out of?</a>
            </li>
      

          <li class="no-bullet"><a class="nav-link" href="#Gaming_PC_vs_Regular_PC" id="Gaming_vs_normal">Gaming PC vs Regular PC</a>
            </li>
         

         <li class="no-bullet">    <a class="nav-link" href="#Components_of_a_regular_consumer_PC" id="Components">Components of a regular consumer PC</a>
            </li>
        

          <li class="no-bullet">  <a class="nav-link" href="#Finding_out_which_components_are_right_for_you" id="which_components_for_you">
            Finding out which components are right for you </a>
            </li>
         
       <li class="no-bullet">   <a class="nav-link" href="#Have_Fun!" id="Have_fun!">Have fun!</a>
            </li>
       
        </ul>

      </nav>

      <p>
        A PC is a <code>Personal Computer</code>, which people use to compute stuff.
      </p>
      <p>If you need to <code>calculate</code> something or <code>google</code> why cats hate cucumbers,<br> a PC is your friend.
      </p>
      <p>
        It takes a text or button command which the OS interprets as <code>code</code><br> and then translates into something, the hardware of the PC<br>can actually understand, aka <code>binary</code>, aka ones and zeros.
      </p>
      <p>
        You can test it with this text <a href="https://www.rapidtables.com/convert/number/ascii-to-binary.html">here</a>.
      </p>
    </section><br><br><br><br><br><br>
    <section class="main-section" id="What_is_it_made_out_of?">
      <header>
        <h2>What is it made out of?</h2>
      </header>
      <p>
        Besides the <code>code</code>, it is made up of the previously<br>mentioned hardware, which actually does<br>all the work.</p>
      <p>The CPU is the processing unit, which you can think of as a logical brain.<br>sends linear data. Even your old 2GHz CPUs, execute 2 billion (2GHz), cycles, per second, per core!<br>
        You can now maybe start to imagine just how fast a Gaming PC<br>with 6-12 cores at up to over 5GHz is.
      </p>
      <p>Keep in mind though, that the architecture of a CPU is still very important. An old 4GHz CPU from 5 years ago<br>, will usually lose against a modern 3GHz one. The architecture is an entire topic that I could not possibly cover within this documentation page.
      </p>
    </section>
<br><br><br><br><br><br>
    <section class="main-section" id="Gaming_PC_vs_Regular_PC">
      <header>
        <h3>Gaming PC vs Regular PC</h3>
      </header>
      <p>
        Gaming PCs, as the name implies, are usually used for playing video games.<br>These PCs are usually in need of a discrete GPU or a powerful APU (a PC with a strong internal GPU).<br> The GPU, aka Graphics Processing Unit can do many calculations that are not linear.<br>
        The CPU sends the GPU a frame of what is supposed to be displayed on the screen<br> and the GPU interprets the data and outputs a proper video signal which is what you are looking at right now. <br></p>
      <p>In a Gaming PC, you need that data fast and you need process a lot of data. From the character models, to the lighting. <br>The GPU takes care of all of these.
      </p>
      <p>
        Discrete GPUs are usually the biggest computing component in a Computer<br>and as such take up a lot of horizontal space in the case.<br>
      </p>
    </section>
<br><br><br><br><br><br>
    <section class="main-section" id="Components_of_a_regular_consumer_PC">
      <header>
        <h4>Components of a regular consumer PC</h4>
      </header>
      <ul>
        <li>CPU</li>
        <li>Motherboard</li>
        <li>RAM</li>
        <li>A storage drive</li>
        <li>Power Supply</li>
        <li>Case/Tower</li>
        <li>CPU Cooler</li>
        <li>If the CPU doesn't have a built in GPU, a discrete GPU</li>
      </ul>
    </section>
<br><br><br><br><br><br>
    <section class="main-section" id="Finding_out_which_components_are_right_for_you">
      <header>
        <h5>Finding out which components are right for you</h5>
      </header>
      <p>
      </p>
    </section>
<br><br><br><br><br><br>
    <section class="main-section" id="Have_Fun!">
      <header>
        <h6>Have Fun!</h6>
      </header>
      <p>
      </p>
    </section>
  </main>
</body>
</html>
              
            
!

CSS

              
                
body {
  text-align: center;
  background-color: hsla(37, 7%, 34%, 0.77);
  height: 100vh;
  width: 100%;
  padding: 0px;
  margin-left: 4%;
}
ul li {
  list-style-type: disc;
  list-style-position: inside;
  padding: 1px 0 10px 10px;
  text-indent: -3em;
  text-align: center;
  width: 100%;
  height: 100%;
}
#navbar {
  z-index: 1;
  position: fixed;
  min-width: 290px;
  padding: 5px;
  margin: 0px;
  top: 0px;
  left: 0px;
  width: 300px;
  height: 100%;
  border-right: solid;
  line-height: 250%;
  overflow-y: scroll;
  list-style-type: none;
  border-color: hsla(35, 18%, 50%, 1);
  background-color: hsla(35, 18%, 50%, 1);
}

.no-bullet {
  list-style-type: none;
  width: 100%;
  height: 100%;
}

@media only screen and (min-width: 1280px) and (min-height: 720px) and (orientation: landscape) {
  z-index: 1;
  position: fixed;
  min-width: 290px;
  padding: 5px;
  margin: 0px;
  top: 0px;
  left: 0px;
  width: 300px;
  height: 100%;
  border-right: solid;
  line-height: 250%;
  overflow-y: scroll;
  list-style-type: none;
  border-color: hsla(35, 18%, 50%, 1);
  background-color: hsla(35, 18%, 50%, 1);
}
@media only screen and (max-width: 1279px) or (min-height: 719px) and (orientation: portrait) {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  border-color: hsla(35, 18%, 50%, 1);
  background-color: hsla(35, 18%, 50%, 1);
  font-family: "Exo 2", sans-serif;
  padding: 1em;
}
#main-doc{
  margin-left: 8%;
  line-height: 130%;
  font-size: 120%;
}

.nav-link{
  text-decoration: none;
  color: inherit;
  background-color: hsla(37, 31%, 34%, 1);
  color: white;
  padding: 10px 5px;
  text-decoration: none;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
}
              
            
!

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