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

              
                <div id="page-wrapper">
<header id="header">
  <div class="logo">
    <img id="header-img" src="https://drive.google.com/uc?export=download&id=1wvdTMEkUaPPEH5H7FBj0uiboNLmef-EP" alt="original trombones logo" />
  </div>

  <nav id="nav-bar">
    <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">Pricing</a></li>
    </ul>
  </nav>

</header>
<section class="landing">
  <img id="landing-img" src="https://drive.google.com/uc?export=download&id=1WvadvEBpRObBtmHf0CY4uuCPv8MuEnL1" alt="photo of the DOOMSTER 10k toaster">
  </section>
<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>Hellfire will TOAST your bread</h2>
        <p>DOOMSTER has built-in heat management in order to deliver the most balanced, crisp and brown toast you'll ever taste. No more limp, flaccid toasts that waste your butter. They'll taste like heaven!</p>
      </div>
    </div>
    <div class="grid">
      <div class="icon">
        <i class="fa fa-3x fa-truck"></i>
      </div>
      <div class="desc">
        <h2>Toasting firmware powered by neural network</h2>
        <p>Our always-online DOOMSTER uses state of the art, proprietary deep learning firmware that enables it adapt to your morning habits. Just because we can &#40and we think we should&#41 toast it just like doomguy would do it.</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>Quality Assurance and Control</h2>
        <p>If for any reason the produced toast does not meet our exceptionally high quality standards DOOMSTER will cauterize, neutralize and then vaporize it. We believe in customer safety first, and it shows.</p>
      </div>
    </div>
    <div class="grid">
      <div class="icon">
        <i class="fa fa-3x fa-bolt" aria-hidden="true"></i>
      </div>
      <div class="desc">
        <h2>100% USB-powered, fully programable!</h2>
        <p>Ever wondered why call our toaster a DOOMSTER? Try using it as an alternative input to play your favorite computer game. Our DOOMSTER 10K provides an analog dial, and 5 digital buttons for your leisure.</p>
      </div>
    </div>
    
  </section>
  <section id="how-it-works">
    <iframe id=video width="560" height="315" src="https://www.youtube.com/embed/vI7tWd7B3iI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </section>
  <section id="pricing">
    <div id="option1">
      <div class="level">
        I'm too young to die
      </div>
      <h2>$600</h2>
      <ol>
        <li>1x DOOMSTER 10K</li>
        <li>Shareware copy of DOOM</li>
        <li>USB cable</li>
        <li>1x Lost Soul demon in a jar</li>
        <li>Thank you card</li>
      </ol>
      <button class="btn">Add to cart</button>
    </div>
    <div id="option2">
      <div class="level">
        Hurt me plenty
      </div>
      <h2>$900</h2>
      <ol>
        <li>2x DOOMSTER 10K</li>
        <li>Registered copy of DOOM</li>
        <li>RED USB cable</li>
        <li>Rip and Tear Card Game</li>
        <li>Organic, handcrafted bread bag</li>
        <li>1x Lost Soul demon in a jar</li>
        <li>1x Baron of Hell strawberry spread</li>
      </ol>
      <button class="btn">Add to cart</button>
    </div>
    <div id="option3">
      <div class="level">
        Nightmare!
      </div>
      <h2>$1200</h2>
      <ol>
        <li>3x DOOMSTER 10K</li>
        <li>ALL DOOM games in floppy disks (we mean ALL of them)</li>
        <li>Magma-molten USB cable</li>
        <li>Rip and Tear Card Game</li>
        <li>Organic, handcrafted, demon-sown bread bag</li>
        <li>3x Lost Soul demons in a black jar</li>
        <li>3x Baron of Hell strawberry spread</li>
        <li>1x Cacodemon Flying Drone (2.4Ghz remote controller included)</li>
      </ol>
      <button class="btn">Add to cart</button>
    </div>
  </section>
  <section id="subscribe">
  <h2>No more doom and gloom in the morning! Get the DOOMSTER newsletter for free!</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="Subscribe" class="btn"></input>
  </form>
</section>
  <footer>
    <ul>
      <li><a href="#">Privacy</a></li>
      <li><a href="#">Terms</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
    <span>Copyright 2016, Original Trombones</span>
  </footer>
</div>
</div>
              
            
!

CSS

              
                /* global element styling */

@import 'https://fonts.googleapis.com/css?family=Lato:400,700';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white;
}

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

#page-wrapper {
  position: relative;
}

li {
  list-style: square;
  color: #fff;
}

a {
  text-decoration: none;
}

/* global classes styling */

.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

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

.grid {
  display: flex;
}

/* navigation bar */

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

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

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

/* landing image */
.landing { }
#landing-img {
    margin-top: 10px;
    max-width: 50vmax;
  max-height: 50vmax;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 150px;
    align-items: center;
    text-align: center;
    
   
}

/* subscribe */

#subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  margin-top: 100px;
  overflow: auto;
  h2 {
    margin-bottom: 20px;
    word-wrap: normal;
    
  }

  input[type="email"] {
    max-width: 275px;
    width: 100%;
    padding: 5px;
  }

  input[type="submit"] {
    max-width: 150px;
    width: 100%;
    height: 30px;
    margin: 15px 0;
    border: 0;
    background-color: #f1c40f;
    
    &:hover {
      background-color: orange;
      transition: background-color 1s;
    }
  }
  
  @media (max-width: 650px) {
    margin-top: 120px;
  }
}

/* features */

#features {
  margin-top: 30px;
  .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 125px;
    width: 20vw;
    color: darkorange;

    @media (max-width: 550px) {
      display: none;
    }
  }

  .desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 125px;
    width: 80vw;
    padding: 5px;

    @media (max-width: 550px) {
      width: 100%;
      text-align: center;
      padding: 0;
      height: 150px;
    }
  }
  
  @media (max-width: 650px) {
    margin-top: 0;
  }
}

/* how it works */

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

/* pricing */

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

/* footer */

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

JS

              
                // coded by @atjonathan
const projectName = 'product-landing-page';
localStorage.setItem('example_project', 'Product Landing Page');
// REPLACE CDN WITH GITCDN!!!

              
            
!
999px

Console