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

              
                <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Black+Han+Sans" rel="stylesheet">

  <header id="header" class="head">
    <a href="#container-top"><img src="https://bookofbash.github.io/temporary-images/img/bookofbash-bike-logo.png"alt="Bike logo" id="header-img"></a>
    <nav id="nav-bar">
      <ul class="nav-ul">
        <li><a  class="nav-link" href="#features">Features</a></li>
        <li><a class="nav-link" href="#video-section">How It Works</a></li>
        <li class= "pricing-link"><a class="nav-link" href="#pricing">Pricing</a></li>
      </ul>
    </nav>
  </header>

<section id="container-top">

  <div class="left"></div>
  <div class="main">
    <div class="main-left">
      <div id=main-text>
      <div class="bold">Ride in Style</div>
      <p>
        "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. in culpa qui officia deserunt mollit anim id est laborum."
      </p>
      </div>
    </div>
    <div class="main-right">
      <form id="form" action="/https://www.freecodecamp.com/email-submit">
        <div id=sign-up class="bold"><strong>Sign Up Now</strong></div>
        <input name="email" id="email" type="email" placeholder="Enter your email address" required>
        <button type="submit" id="submit" value="Get Started" >Ride On!</button>
      </form>
      
    </div>
  </div>
  <div class="right">
      <ul id="social-media">
        <li class="social-link facebook"><a href="https://www.facebook.com">Facebook</a></li>
        <li class="social-link"><a href="https://www.twitter.com">Twitter</a></li>
        <li class="social-link"><a href="https://www.instagram.com">Instagram</a></li>
      </ul>
  </div>
  
</section>
<section id="features">
  <div class="info-flex">
    <div class="icon premium"></div>
    <div class="info">
      <h2>Premium Materials</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq</p>
    </div>
  </div>
  <div class="info-flex">
    <div class="icon fast"></div>
    <div class="info">
      <h2>Fast Delivery</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq</p>
    </div>
  </div>
   <div class="info-flex ">
    <div class="icon quality "></div>
    <div class="info">
      <h2>Quality Assurance</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq</p>
    </div>
  </div>
</section>

<section id="video-section">
    <iframe id="video" width="420" height="315"
        src="https://youtube.com/embed/OB2Fb6TqCfI?t=9">
    </iframe>
</section>
  
<section id="pricing">
    <div class="bikes">
      <h3>Original</h3>
      <p class="price">$999</p>
      <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit,"</p>
    </div>
    <div class="bikes">
      <h3>Premium</h3>
      <p class="price">$1999</p>
      <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ."</p>
    </div>
    <div class="bikes">
      <h3>Custom</h3>
       <p class="price">$2999+</p>
      <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. in culpa qui officia deserunt mollit anim id est laborum."</p>
    </div>
</section>
              
            
!

CSS

              
                html {
  scroll-behavior: smooth;
}
body{
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#959595+0,0d0d0d+46,010101+50,0a0a0a+53,4e4e4e+76,383838+87,1b1b1b+100;Black+Gloss+Pipe */
background: #959595; /* Old browsers */
background: -moz-linear-gradient(-45deg,  #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(-45deg,  #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(135deg,  #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#959595', endColorstr='#1b1b1b',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
color: #7FDBFF;
font-family: 'Montserrat', sans-serif;
}

a{
  text-decoration: none;
}
a:link, a:visited {
    color: #7FDBFF;
}
li{
  list-style: none;
}
.bold{
  font-weight: 900;
  font-size: 1.90em;
  margin-top: 20px;
}
#container-top{
  padding-top:76px;
  display: grid;
  grid-template-columns: 10% auto auto 10%;
  grid-template-rows: auto;
  grid-template-areas: 
    "left header header right"
    "left main   main   right"
    "left main   main   right"
    "left main   main   right"
    "left main   main   right";
}
img{

  width: 55px;
  height: 38px;
  margin: 15px;
  border: solid 2px;
  padding: 6.5px 0;
}
header{
  width: 100%;
  display: flex;
  text-align: right;
  justify-content: space-between;    
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 0.05)

}
img {
 
  -webkit-transition: -webkit-transform .8s ease-in-out;
          transition: transform .8s ease-in-out;
}
img:hover {
  -webkit-transform: rotate(-360deg);
          transform: rotate(-360deg);
  cursor:pointer;
}
#nav-bar{
  margin-top: 5px;
}

ul .nav-link{
  display: inline-flex;
  padding-bottom: 6px;
    border: 1px;
    border-top-style: transparent;
    border-right-style: transparent;
    border-bottom-style: transparent;
    border-left-style: transparent;
}
ul .nav-link:hover{
  cursor: pointer;
    border-top-style: transparent;
    border-right-style: transparent;
    border-bottom-style: solid;
    border-left-style: transparent;
    margin-bottom: -0.75px;
  
}

.head {
  grid-area: header;
}


.left {
  grid-area: left;
}
.main {
  display: inline-flex;
  align-content: center;
  justify-content: space-evenly;
  grid-area: main;
  height: 500px;
  background-image: url(https://images.unsplash.com/photo-1532298229144-0ec0c57515c7?ixlib=rb-0.3.5&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ&s=dea68f09938cc9e713277bbcab341ebc);
  background-size: 100%;
  background-repeat: no-repeat;
}
.main-left{
  width: 50%;
}
#main-text{
  margin-left: 5%;
  max-width: 250px;
}
p{
  color: white;
}

.main-right{
  width: 50%;
  display: flex;

}

.main-right form{
  display: block;
  margin-top: 20px;
  margin-left:auto;
  margin-right: 5%;
  align-items: center;
  border: solid white;
  height: 150px;
  width: 300px;
  
}
#email{
  margin-top:5%;
  width: 150px;
}
input, #submit{
  display: block;
  margin-left:auto;
  margin-right: auto;
  margin-top: 15px;
  
}
#submit{
  width: 200px;
  font-size: 1.5em;
  height: 40px;
  background-color: orange;
  color: white;
  border: none;
  border-radius: 10px
}
.right {
  display:flex;
  algin-content: center;
  justify-content: space-around;
  grid-area: right;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  
  
}
#social-media{
  margin-left: auto;
  margin-right: auto;
}

ul .social-link{
    display: inline-flex;
    padding-bottom: 60px;
    border: 1px;
    vertical-align: top;
}
.social-link:hover{
  cursor:pointer;
}
.facebook{
  padding-top: 60px;
}
#sign-up{
  text-align: center;
}

.nav-ul{
  display: flex;
  align-items: center;
  width: 400px;
  justify-content: space-between;
}
.nav-link{
  padding-left:
}

.pricing-link{
  margin-right: 10%;
}


/*Middle Section*/

#features{
margin-top: 40px;
}

.info-flex{
  display: flex;

}

.icon{
    height: 100px;
  flex-basis: 20%;
  margin-left: 10%;
  vertical-align: top;
}

.premium{
  background-image: url("https://img.icons8.com/ios/50/7FDBFF/best-seller-filled.png");
  background-repeat: no-repeat;
  background-position: 80% 70%; 
}

.fast{
    background-image: url("https://img.icons8.com/ios/50/7FDBFF/in-transit-filled.png");
  background-repeat: no-repeat;
  background-position: 80% 70%; 
}
.quality{
    background-image: url("https://img.icons8.com/ios/50/7FDBFF/security-checked-filled.png");
  background-repeat: no-repeat;
  background-position: 80% 70%; 
}

.info{
  height: 100px;
  flex-basis: 80%;
  margin-right: 10%;
  padding-top: 5px;
}

.info h2{
  margin-bottom:0;
}

.info p{
  margin-top:0
}

/*video section */
#video-section{
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#video{
  margin-left: auto;
  margin-right: auto;
}

/*Choices Section */

#pricing{
  display: flex;
}
.bikes{
  width: 30%;
  margin: 5%;
  text-align: center;
  border: solid white;
  padding: 1%;
}

h3{
  font-family: 'Black Han Sans', sans-serif;
  letter-spacing: 2px;
  font-size: 2.50em
}
.price{
  font-size: 1.25em;
  color: white;
}
section{
  padding-top:60px;
}

@media only screen and (max-width: 800px) {
  #pricing{
    flex-direction: column;
    align-items: center;
  }
  .bikes{
    width: 400px;
  }
  
} 
              
            
!

JS

              
                /*Photo by Mikkel Bech on Unsplash*/


/*<a href="https://icons8.com">Icon pack by Icons8</a>
"https://img.icons8.com/ios/50/7FDBFF/in-transit-filled.png"

*/

              
            
!
999px

Console