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.

            
              <!-- Navbar -->
  <nav class="navbar navbar-default">
    <div class="container-fluid">
      <div class="navbar-header col-sm-6 col-xs-6">
        <a class="navbar-brand" href="#">
          <img class="logoImg" src="img/codecademyLogo.png" alt="">
        </a>
      </div>
      <div class="btn-holder pull-right col-sm-6 col-xs-6">
        <a id="loginBtn" class="btn navButton" href="#">Log in</a>
        <a id="signupBtn" class="btn navButton" href="#">Sign up</a>
      </div>
    </div>
  </nav>

  <div class="container-fluid">

    <!-- Attention getter -->
    <div class="header-title">
      <h1>Learn to code interactively, for free.</h1>
    </div>

    <!-- Padding -->
    <div class="divide-padding"></div>

    <!-- Signup section -->
    <div class="signupDiv container-fluid">
      <div class="row">
        <!-- Left image -->
        <div class="signup-img-div col-lg-6 col-md-6 col-sm-6 col-xs-12">
          <img class="signup-img img-responsive" src="img/mac.png" alt="">
        </div>
        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
          <!-- Right form -->
          <div class="form-signup"
            <form class="form-signin">
              <h2 class="form-signin-heading">SIGN UP AND START CODING IN SECONDS</h2>
              <div class="inputs btn-group-vertical" role="group" aria-label="...">
                <input class="btn btn-default" type="email" name="" placeholder="Email">
                <input class="btn btn-default" type="text" name="" placeholder="Username">
                <input class="btn btn-default" type="password" name="" placeholder="Password">
              </div>
              <!-- Signup button -->
              <button class="signup-btn btn btn-lg btn-primary btn-block" type="submit">SIGN UP</button>
              <!-- Login with Google/Facebook buttons -->
              <div class="social-btn">
                <button class="btn btn-primary" type="submit"><span class="g-icon"><i class="fa fa-google"></i></span> Google</button>
                <button class="btn btn-primary pull-right" type="submit"><span class="fb-icon"><i class="fa fa-facebook-official"></i></span> Facebook</button>
              </div>
            <!-- Terms of service disclaimer -->
            <p class="ToS">By signing up, you agree to our Terms of service</p>
          </form>
        </div>
      </div>
    </div>
  </div>
            
          
!
            
              $green: #34b3a0
$greenHover: rgb(54, 196, 175)
$textColor: rgb(46, 66, 86)

*
  font-family: 'Open Sans', sans-serif
  box-sizing: border-box

body
  background-color: rgb(233, 233, 233)

.navbar
  height: 50px
  background-color: #fff
  .container-fluid
    padding: 0px
    max-width: 950px
  .navbar-header
    max-width: 100px
    min-width: 100px
    .logoImg
      width: 120px
      position: relative
      top: -2px
  .btn-holder
    text-align: right
    line-height: 48px
    min-width: 239px
    .navButton
      border-radius: 0px
      height: 38px
      width: 100px
      font-size: 16px
      transition: all .15s
    #loginBtn
      border: 1px solid $green
      color: $green
      &:hover
        border-color: $greenHover
        color: $greenHover
    #signupBtn
      margin-left: 5px
      border: 1px solid $green
      background-color: $green
      color: #fff
      &:hover
        background-color: $greenHover
        border-color: $greenHover

.header-title
  max-width: 944px
  text-align: center
  margin: 0 auto
  p
    color: $textColor
    font-size: 39px
    font-weight: 600px

.divide-padding
  margin: 0 auto
  height: 48px
  max-width: 944px

.signupDiv
  max-width: 944px
  padding-top: 50px
  .signup-img-div
    padding: 50px 100px 150px 100px
  .form-signup 
    margin: 0 auto
    max-width: 300px
    .form-signin-heading
      text-align: center
      font-size: 19px
      color: rgb(149, 149, 149)
      padding: 25px 20px 10px 20px
    .inputs
      width: 300px
      margin-bottom: 30px
      .btn
        border-radius: 0px /* This one DOESN'T work... */
        border: 1px solid rgb(129, 129, 129)
        cursor: text
        color: $textColor
        text-align: left
        height: 50px
        font-size: 17px
        outline: none /* This one DOES work... */
        &:hover
          background-color: #fff
    .signup-btn
      background-color: $green
      border: none
      height: 50px
      font-size: 20px
      border-radius: 0px /* This one DOES work... */
      outline: none /* This one DOESN'T work... */
      margin-bottom: 30px
      &:hover
        background-color: $greenHover
    .social-btn
      margin-bottom: 5px
      font-size: 15px
      .btn
        line-height: 20px
        text-align: left
        background-color: #fff
        border: none
        color: rgb(129, 129, 129)
        border-radius: 0px
        width: 145px
        height: 40px
        box-shadow: 0px 1px 1px #888888
        outline: none
        &:hover
          background-color: rgb(233, 233, 233)
        span
          font-size: 20px
          padding-right: 5px
        .g-icon
          color: rgb(209, 68, 55)
        .fb-icon
          color: rgb(67, 84, 141)
    .ToS
      color: $textColor
      font-size: 13.5px
      text-align: center

            
          
!
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