Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">
<header id="header">

  <h1 id="company-name"><a href="#">Block Buddies</a></h1>

  <nav id="nav-bar">
    <a class="nav-link" href="#about">About</a>
    <a class="nav-link" href="#blockchain">What's Blockcain?</a>
    <a class="nav-link" href="#services">Services</a>
  </nav>

</header>

<main>

  <div class="section" id="about">

    <div id="hero">
      <div id="hero-textbox">
        <div class="hero-text">Block buddies is here to teach you all about bloackchain and cryptocurrencies.</div>
      </div>
    </div>

  </div>

  <div class="section" id="blockchain">
    <h2>What's Blockhain?</h2>
    <iframe id="video" width="1044" height="587" src="https://www.youtube.com/embed/r43LhSUUGTQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </div>

  <div class="section" id="services">

    <h2>Services</h2>
    <div id="product-list">
      <div class="services">Review of the sign-up procedures on a reputable global digital exchange</div>
      <div class="services">An outline of the steps for a digital asset purchase</div>
      <div class="services">A highlight of various options for digital asset storage</div>
      <div class="services">A discussion on the various resources, tools, and applications needed to keep you on top of your digital assets</div>

    </div>

    <div id="registration">

      <p>Join our mailing list for information about <strong>Blockchain!</strong></p>

      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input type="email" id="email" name="email" placeholder="Email Address">
        <input id="submit" type="submit"></input>
      </form>
    </div>
  </div>

</main>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');
@import url('https://fonts.googleapis.com/css?family=Roboto|Source+Code+Pro');

body{
  font-family: 'Roboto', sans-serif;
}

#header {
  position: sticky;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0px;
  height: 50px;
  background-color: rgba(255,255,255,0.9);
  padding: 10px 20px 10px 20px;
  border-bottom: 1px solid black;
}

#header-img {
  float: left;
  width: 200px;
}

#company-name a {
  color: black;
  font-family: 'Source Code Pro', monospace;
  text-decoration: none;
  
}

#nav-bar {
    display: inline-block;
}

#nav-bar a {
  display: inline-block;
  position: relative;
  top: 6px;
  margin: auto 2px;
  border-radius: 10px;
  background: #6ec0c5;
  color: white;
  padding: 5px 10px;
  font-size: 0.6em;
  text-decoration: none;
  text-transform: uppercase;
}

#nav-bar a:hover {
  background-color: #5e95ed;
}


.section {
  min-height: 300px;
}

#hero {
  position: relative;
  margin: 50px auto;
  width: 95%;
  height: 400px;
  overflow: hidden;
    background: url(https://cdn.pixabay.com/photo/2017/12/14/14/23/blockchain-3019120_1280.png) #6ec0c5;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center;
}

#hero-textbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: rgba(255,255,255,0.9);
  position: relative;
  top: 20px;
  height: 340px;
  margin: auto;
  padding: 7px 20px;
  border: 3px solid white;
}

#hero-textbox {
  width: 350px;
}

.hero-text {
    text-align: center;
    font-size: 120%;
  font-weight: 500;
}

#blockchain {
  text-align: center;
}

iframe {
  width: 500px;
  height: 280px;
}

#registration {
  width: 40%;
  padding: 20px;
  margin:auto;
  text-align: center;
  border: 2px solid;
}

input {
  padding: 10px;
}

#submit {
  background-color: #2A878B;
  border: 1px solid #2A878B;
  color: white;
}

#email {
  width: 70%;
  margin: 10px;
}

#product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

h2 {
  text-align: center;
  color: white;
  background-color: black;
  text-transform: uppercase;
  width: 100vw;
  padding-top: 1em;
  padding-bottom: 1em;
  
}

.services {
  width: 150px;
  margin: 20px;
  text-align: center;
  font-size: 1.2em;
  padding: 20px;
  border-radius: 10px;
  background-color: #2A878B;
  color: white;
}

@media screen and (max-width: 510px) {
  
  iframe {
    width: 100%;
    height: 280px;
  }
  
  #hero-textbox {
  width: 70%;
  }
  
  .hero-text {
    text-align: center;
    font-size: 100%;
    font-weight: 500;
  }
  
  #header {
    flex-direction: column;
    height: auto;    
  }
  
  #header-img {
    margin-bottom: 10px;
  }
  
  #nav-bar a {
    display: block;
    margin: 5px;
    width: 70%;
    text-align: center;
  }
  
    #hero {
    background-size: auto 100%;
    background-position: center;
  }
}

@media screen and (max-width: 720px) {
  #hero {
    background-size: auto 500px;
    background-position: center;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console