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. 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

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="content" class="container d-flex justify-content-center align-items-center">
  <div id="sign" class="">
    <signin/>
  </div>
</div>
              
            
!

CSS

              
                body, #content {
  width: 100%;
  height: 100%;
}

img {
  width: 56px;
  height: 48px;
}

h1 {
  font-weight: 200;
  font-style: 26px;
  margin: 10px;
}
              
            
!

JS

              
                Vue.component("signin", {
  template: `
    <div>
      <div class="ui segment p-5">
        <div class="d-flex flex-column align-items-center justify-content-center">
          <h2 class="m-1 text-dark">Crawford</h2>
          <h3 class="mt-1 mb-2 text-secondary">Sign In</h3>
          <p>Get into your Crawford account.</p>
        </div>
        <div class="ui fluid input mt-4">
          <input type="text" placeholder="Email...">
        </div>
        <div class="ui fluid input mt-4">
          <input type="text" placeholder="Password...">
        </div>
        <p class="mt-4">Having problems to Get In? <br>
          <a href="#">Recover Access</a></p>
        <div class="d-flex mt-4">
          <div class="small ui basic animated button" tabindex="0">
            <div class="visible content">Create Account</div>
            <div class="hidden content">
              <i class="right plus icon"></i>
            </div>
          </div>
          <div class="ml-4 small float-right ui animated button black" tabindex="0">
            <div class="visible content">Sign In</div>
            <div class="hidden content">
              <i class="right arrow icon"></i>
            </div>
          </div>
        </div>
      </div>
    </div>
  `
})

var store = new Vuex.Store({
  state: {
    view:"signIn"
  }
})

var sign = new Vue({
  el:"#sign",
  store: store
})
              
            
!
999px

Console