123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
  <title>Solo: Open source FIDO2 security key</title>
</head>
<body>
  <header id="header">
    <a href="#" id="home-link"><img id="header-img" src="https://solokeys.com/images/logos/logo-black_on_transparent.svg"></a>
    <nav id="nav-bar">
      <a href="https://solokeys.com/kickstarter" class="nav-link" id="kickstarter">Kickstarter</a>
      <a href="#features" class="nav-link">Features</a>
      <a href="#products" class="nav-link">Products</a>
    </nav>
  </header>
  <section id="story">
    <form id="form" action="https://freecodecamp.com/email-submit">
      <p>If you share your email with us, we promise to only share exciting news with you.</p>
      <input id="email" type="email" name="email" placeholder="hello@robloranger.ca" required>
      <input type="submit" id="submit">
    </form>
    <div id="vid-wrap">
      <iframe id="video" width="560" height="349" frameborder=0 src="https://www.youtube.com/embed/YAYT5X7Pfto" allowfullscreen></iframe>
    </div>
  </section>
  <section id="features">
    <div class="feature">
      <h2>Powerful chip packs a punch</h2>
      <p>We will use the STMicroelectronics STM32 L4 42KC, which has a ton of goodies: true random number generator for key generation, security isolation for key, onboard crypto, plus two levels of locked flash.</p>
    </div>
    <div class="feature">
      <h2>Colorful silicon cases</h2>
      <p>To protect your security key from physical harm, we researched until we found your favourite colors. Pick any, pick all!</p>
    </div>
    <div class="feature">
      <h2>Free updates forever</h2>
      <p>Any bugs or extensions to our firmware will be available on our website. To update at any time, insert your key and your key will be up-to-date.</p>
    </div>
  </section>
  <section id="products">
    <div class="card" id="solo">
      <h2>Solo</h2>
      <p>The first open source FIDO2 security key. Secure login, open, easy.</p>
    </div>
    <div class="card" id="tap">
      <h2>Solo Tap</h2>
      <p>Contactless Solo optimized for mobile. The convenience of just a tap.</p>
    </div>
    <div class="card" id="advanced">
      <h2>Solo for Advanced protection</h2>
      <p>Solo + SecureClick. The perfect bundle for Google's Advanced Protection Program.</p>
    </div>
    <div class="card" id="hackers">
      <h2>Solo for Hackers</h2>
      <p>It's open source, of course you can hack it. Any Solo or Solo tap.</p>
    </div>
  </section>
  <footer>
    <nav>
      <h3>Social</h3>
      <ul>
        <li><a href="https://github.com/SoloKeysSec/" target="_blank">Github</a></li>
        <li><a href="https://twitter.com/SoloKeysSec/" target="_blank">Twitter</a></li>
        <li><a href="https://facebook.com/SoloKeysSec/" target="_blank">Facebook</a></li>
        <li><a href="https://vimeo.com/solokeys" target="_blank">Vimeo</a></li>
        <li><a href="https://solo.re/yt/" target="_blank">YouTube</a></li>
      </ul>
    </nav>
    <nav>
      <h3>Site Menu</h3>
      <ul>
        <li><a href="">Kickstarter</a></li>
        <li><a href="#features">Features</a></li>
        <li><a href="#products">Products</a></li>
        <li><a href="#">Back To Top</a></li>
      </ul>
    </nav>
  </footer>
</body>
</html>
            
          
!
            
              body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-size: 16px;
}

#header {
  width: 100%;
  height: 4.5em;
  display: flex;
  position: fixed;
  flex-direction: column;
  background-color: hsl(204, 75%, 99%);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 750;
}

#header-img {
  height: 40px;
}

#home-link {
  text-align: center;
}

#nav-bar {
  font-size: 1.2em;
  height: 2em;
  margin: 0.2em;
  display: flex;
  justify-content: center;
  align-items: center;
}

#nav-bar a {
  margin: 0 0.35em;
  text-decoration: none;
  color: hsl(345, 6%, 13%);
}

#nav-bar a:hover {
  color: hsl(204, 75%, 56%);
}

#story, #features, #products {
  box-sizing: border-box;
  padding-top: 4.7em;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#story {
  background-color: hsl(204, 75%, 56%);
}

#form {
  margin-bottom: 2em;
  padding: 1em;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#form p {
  font-size: 1.2em;
}

#form input {
  margin: .1em;
  height: 2em;
  font-size: 1.1em;
}

#form > input[type=email] {
  flex-grow: 3;
}

#vid-wrap {
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
  width: 100%;
  max-width: 640px;
}

#vid-wrap iframe {
  top: 0;
  left: 0;
  width: 100%;
}

#features, #products {
  padding-left: 1em;
  padding-right: 1em;
}

#features {
  background-color: hsl(150, 78%, 74%);
}

.feature, .card {
  max-width: 560px;
}

.card {
  width: 100%;
  height: 100vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h2 {
  flex-grow: 0;
  align-self: flex-start;
  margin: .2em;
  padding: .2em .4em;
  border: 2px solid;
  border-radius: 4px;
}

.card p {
  box-sizing: inherit;
  width: 100%;
  padding: 1em;
}

#solo {
  background-color: hsl(204, 75%, 97%);
}

#solo p {
  color: hsl(204, 75%, 99%);
  background-color: hsl(204, 75%, 56%);
}

#tap {
  background-color: hsl(150, 78%, 97%);
}

#tap p {
  background-color: hsl(150, 78%, 74%);
}

#advanced {
  background-color: hsl(358, 67%, 97%);
}

#advanced p {
  color: hsl(358, 75%, 99%);
  background-color: hsl(358, 67%, 54%);
}

#hackers {
  background-color: hsl(150, 22%, 97%);
}

#hackers p {
  background-color: hsl(150, 22%, 88%);
}

footer {
  width: 100%;
  box-sizing: border-box;
  padding: 2em 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  color: hsl(150, 18%, 18%);
  background-color: hsl(150, 22%, 88%);
}

footer nav {
  text-align: center;
}

footer ul {
  list-style: none;
  padding: 0;
}

@media only screen and (min-width: 560px) {
  #header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  
  #header-img {
    height: 60px
  }
  
  #nav-bar {
    font-size: 1.6em;
  }
  
  #nav-bar #kickstarter {
    padding: .2em .4em;
    color: hsl(358, 75%, 99%);
    background-color: hsl(358, 67%, 54%);
    border-radius: 500px;
  }
  
  #nav-bar #kickstarter:hover {
    background-color: hsl(358, 60%, 64%);
  }
  
  .feature {
    margin: 5px 0;
    padding: 5px;
  }
  
  .card {
    height: 100vh;
    max-height: calc(100vh - 4.7em);
  }
  footer {
    flex-direction: row;
  }
  
  footer nav{
    text-align: left;
  }
}

@media only screen and (min-width: 1024px) {
  #header {
    justify-content: space-around;
  }
  
  #products {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .card {
    width: 50%;
    height: 50vh;
    max-height: calc(50vh - 2.35em);
    border: 4px solid transparent;
  }
}

@media only screen and (min-width: 1600px) {
  .card {
    flex: 1 0 21%;
  }
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console