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. 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

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>

   <div id="page-wrapper">
    <header id="header">
      <div class="logo">
       <img id="header-img" src="https://www.mindfulswfl.com/wp-content/uploads/2018/09/e8822b2a-7a5a-4147-b08f-1c49df1453ee.png" alt="Covert OPS Gaming logo" />
      </div>     
       <!--Nav Bar here-->  
      <nav id="nav">
       <ul id="nav ul">
        <li><a class="nav-link" href="#features">Features</a></li>
        <li><a class="nav-link" href="#how-it-works">How It Works</a></li>
        <li><a class="nav-link" href="#pricing">Prices</a></li>
       </ul> 
     </nav> 
    </header>
     
<!--Input form for email--> 
<div id="container">
<!--</div>-->
     
 <section id="hero">
  <h2>Get our Covert OPS Newsletter!</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"></input>
   </form>
</section>                                          
</div>
<!-- Icons + Features w/ Descriptions -->
<div class="container"> 
 <section id="features">
   <div class="grid">
    <div class="icon">
     <i class="fa fa-3x fa-fire"></i>
      </div>
      <div class="desc">
       <h2>Amazingly Realistic 3D GFX</h2>
        <p>Our games are ALL coded efficiently and run beautifully at a variety of frame rates.</p>
      </div>
    </div>
   <div class="grid">
    <div class="icon">
      <i class="fa fa-3x fa-truck"></i>
    </div>
    <div class="desc">
      <h2>Fast Shipping / Satisfaction Guaranteed</h2>
        <p>We make sure we ship your games are shipped SAME DAY! Free returns if you are not delighted!</p>
      </div>
    </div>
    <div class="grid">
      <div class="icon">
        <i class="fa fa-3x fa-battery-full" aria-hidden="true"></i>
      </div>
      <div class="desc">
        <h2>Games for EVERY Gamer!</h2>
        <p>For every purchase you make, we will ensure there is no damage and that your games run smoothly.</p>
      </div>
    </div>
   </div>
  </section>

 <!-- How This Works-->
  <section id="how-it-works">
   <iframe id="video" height="315px" src="https://www.youtube.com/embed/od2rhwVJn-Y" frameborder="0" allowfullscreen></iframe>
    </div>
  </section>
  <section id="pricing">
    <div id="tenor">
      <div class="level">
        Noob Fantasy
      </div>
      <h2>$100</h2>
      <ol>
        <li>Pretty Poison 2.</li>
        <li>Mary Janes Garden.</li>
        <li>Vision Quest 4.</li>
        <li>Snowboard Supreme Uno.</li>
      </ol>
      <button class="btn">Select</button>
    </div>
    <div id="bass">
      <div class="level">
        Global Operative
      </div>
      <h2>$180</h2>
      <ol>
        <li>Pretty Poison 2.</li>
        <li>World of Warfare 5.</li>
        <li>Grand Theft Auto: Hollyweird.</li>
        <li>When Worlds Collide 3.</li>
      </ol>
      <button class="btn">Select</button>
    </div>
    <div id="valve">
      <div class="level">
        Pwn Professional
      </div>
      <h2>$280</h2>
      <ol>
        <li>Assassins Greed 3.</li>
        <li>HIRED Hitter PAYOUT.</li>
        <li>Skate Kingdom 6.</li>
        <li>Rainbow's END 2.</li>
      </ol>
      <button class="btn">Select</button>
    </div>
  </section>
  <footer div="footer">
    <ul>
      <li><a href="#">Privacy</a></li>
      <li><a href="#">Terms</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
    <span>Copyright 2018, Covert OPS Gaming</span>
  </footer>
</div>
</div>

              
            
!

CSS

              
                /** global element styling **/
/** global element styling **/
@import "https://fonts.googleapis.com/css?family=Lato:400,700";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #eee;
  font-family: 'Lato', sans-serif;
}

#page-wrapper {
  position: relative;
}

li {
  list-style: none;
}

a {
  color: #000;
  text-decoration: none;
}

/** global classes styling **/
.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  z-index: 1;
  align: center;
}

.btn {
  padding: 0 20px;
  height: 40px;
  font-size: 1em;
  font-weight: 900;
  text-transform: uppercase;
  border: 3px black solid;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.grid {
  display: flex;
}

header {
  position: fixed;
  top: 0;
  min-height: 75px;
  padding: 0px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #eee;
}
@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    width: 100%;
  }
}

.logo {
  width: 60vw;
}
@media (max-width: 650px) {
  .logo {
    margin-top: 15px;
    width: 100%;
    position: relative;
  }
}
.logo img {
  width: 30%;
  height: 30%;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: 20px;
}
@media (max-width: 650px) {
  .logo img {
    margin: 0 0 0 20;
    width: 100px;
    height: 100px;
    align-items: center;
    flex-direction: column;
  }
}

nav {
  font-weight: 400;
}
@media (max-width: 650px) {
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
}
nav ul {
  width: 35vw;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
@media (max-width: 650px) {
  nav ul {
    flex-direction: column;
  }
}


// hero

#hero {
  display: flex;
  flex-direction: column;
  align: center;
  justify-content: center;
  text-align: center;
  height: 200px;
  top-padding: 200px;
}
#hero h2 {
  margin-top: 20px;
  margin-bottom: 20px;
  word-wrap: break-word;
}
#hero input[type="email"] {
  max-width: 275px;
  width: 100%;
  padding: 5px;
  align: center;
}
#hero input[type="submit"] {
  align: center;
  max-width: 150px;
  width: 100%;
  height: 30px;
  margin: 15px 0;
  border: 0;
  background-color: #f1c40f;
}
#hero input[type="submit"]:hover {
  background-color: orange;
  transition: background-color 1s;
}
@media (max-width: 650px) {
  #hero {
    margin-top: 120px;
    align: center;
  }
}

#features {
  margin-top: 30px;
}
#features .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 125px;
  width: 20vw;
  color: darkorange;
}
@media (max-width: 550px) {
  #features .icon {
    display: none;
  }
}
#features .desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 125px;
  width: 80vw;
  padding: 5px;
}
@media (max-width: 550px) {
  #features .desc {
    width: 100%;
    text-align: center;
    padding: 0;
    height: 150px;
  }
}
@media (max-width: 650px) {
  #features {
    margin-top: 0;
  }
}

#how-it-works {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}
#how-it-works iframe {
  max-width: 560px;
  width: 100%;
}

#pricing {
  margin-top: 60px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
#pricing #tenor, #pricing #bass, #pricing #valve {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(100%  / 3);
  margin: 10px;
  border: 1px solid #000;
  border-radius: 3px;
}
#pricing #tenor .level, #pricing #bass .level, #pricing #valve .level {
  background-color: #ddd;
  color: black;
  padding: 15px 0;
  width: 100%;
  text-transform: uppercase;
  font-weight: 700;
}
#pricing #tenor h2, #pricing #bass h2, #pricing #valve h2 {
  margin-top: 15px;
}
#pricing #tenor ol, #pricing #bass ol, #pricing #valve ol {
  margin: 15px 0;
}
#pricing #tenor ol li, #pricing #bass ol li, #pricing #valve ol li {
  padding: 5px 0;
}
#pricing #tenor button, #pricing #bass button, #pricing #valve button {
  border: 0;
  margin: 15px 0;
  background-color: #f1c40f;
  font-weight: 400;
}
#pricing #tenor button:hover, #pricing #bass button:hover, #pricing #valve button:hover {
  background-color: orange;
  transition: background-color 1s;
}
@media (max-width: 800px) {
  #pricing {
    flex-direction: column;
  }
  #pricing #tenor, #pricing #bass, #pricing #valve {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
  }
}

// footer

footer {
  margin-top: 30px;
  background-color: #ccccc;
  padding: 20px;
}
footer ul {
  display: flex;
  justify-content: flex-end;
}
footer ul li {
  padding: 0 10px;
}
footer span {
  margin-top: 5px;
  display: flex;
  justify-content: flex-end;
  font-size: 0.9em;
  color: #444;
}
              
            
!

JS

              
                
              
            
!
999px

Console