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.

            
              <!-- 
Live: https://melanieseltzer.github.io/es6-all-the-things/
Repo: https://github.com/melanieseltzer/es6-all-the-things
-->

<section class="hero is-primary">
  <div class="hero-body">
    <div class="columns">
      <div class="column is-12">
        <div class="container content">
          <i class="is-large fab fa-js"></i> 
          <i class="is-large fas fa-code"></i>
          <h1 class="title">ES6 <em>All</em> The Things</h1>
          <h3 class="subtitle">
            Collection of ES6 goodies for next-level dev 🤓💻
          </h3>
          <a href="https://github.com/melanieseltzer" target="_blank" class="button is-primary is-large">
            <span class="icon">
              <i class="fab fa-github"></i>
            </span>
            <span>Github</span>
          </a>
        </div>
      </div>
    </div>
  </div>
</section>

<section class="section">
  <div class="container">
    <div class="columns">
      <div class="column is-3">
        <aside class="is-medium menu">
          <p class="menu-label">
            New Variables
          </p>
          <ul class="menu-list">
            <li><a href="#const">const</a></li>
            <li><a href="#let">let</a></li>
          </ul>
          <p class="menu-label">
            More to come...
          </p>
          <ul class="menu-list">
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
          </ul>
        </aside>
      </div>

      <div class="column is-9">
        <div class="content is-medium">
          <h3 class="title is-3">New Variables</h3>
          <div class="box">
            <h4 id="const" class="title is-3">const</h4>
            <article class="message is-primary">
              <span class="icon has-text-primary">
                <i class="fas fa-info-circle"></i>
              </span> 
              <div class="message-body">
                Block-scoped. Cannot be re-assigned. Not immutable.
              </div>
            </article>
            <pre><code class="language-javascript">const test = 'test';</code></pre>
          </div>

          <div class="box">
            <h4 id="let" class="title is-3">let</h4>
            <article class="message is-primary">
              <span class="icon has-text-primary">
                <i class="fas fa-info-circle"></i>
              </span> 
              <div class="message-body">
                Block-scoped. Can be re-assigned.
              </div>
            </article>
            <pre><code class="language-javascript">let i = 0;</code></pre>
          </div>

          <h3 class="title is-3">More to Come...</h3>
          <div class="box">
            <h4 id="lorem" class="title is-4">More to come...</h4>
            <article class="message is-primary">
              <span class="icon has-text-primary">
                <i class="fas fa-info-circle"></i>
              </span> 
              <div class="message-body">
                Lorem ipsum dolor sit amet, mea ne viderer veritus menandri, id scaevola gloriatur instructior sit.
              </div>
            </article>
            <pre><code class="language-javascript">let i = 0;</code></pre>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
            
          
!
            
              $grey-darker: hsl(0, 0%, 85%);
$grey-lighter: hsl(0, 0%, 95%);

body {
  border-top: 10px solid salmon;
  border-bottom: 10px solid salmon;
  border-left: 0;
  border-right: 0;
  border-image: linear-gradient(to right, #00d1b2, salmon) 1 stretch;
}

body,
html {
  background: $grey-lighter;
}

pre,
.message {
  max-width: 960px;
}

// Bulma overrides
.hero.is-primary {
  background: linear-gradient(to left, #da4453, #89216b);
}
.box {
  box-shadow: 0 2px 6px 0 hsla(0, 0%, 0%, 0.2);
}
.box span.icon {
  float: right;
  font-size: 1.7em;
  padding: 2rem 2rem 0 0;
}
.is-large.fab {
  font-size: 7em;
}
.is-large.fas {
  font-size: 5em;
  margin-left: 0.2em;
}
.menu-list li a:hover {
  background: $grey-darker;
}

// Fixes for Prisma/Bulma class conflict
.token.number {
  display: inline;
  padding: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: inherit;
  vertical-align: inherit;
  border-radius: inherit;
  font-weight: inherit;
  white-space: inherit;
  background: inherit;
  margin: inherit;
}
            
          
!
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