cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <lig-single-biography>
  <img
    slot="img"
    src="https://cdn.liginc.co.jp/wp-content/uploads/2017/07/149999564855711400_38.png"
    width="150"
    height="150"
  >
  <p slot="name" class="red">づや</p>
  <p slot="text">大学卒業後、Javaプログラマとしてシステム開発に従事後、2007年株式会社アストロデオを創業。システム開発全般を統括。2012年1月に創業した株式会社アストロデオが株式会社LIGと合併し、現職。取締役CTOとして社内の技術全般を統括。現在は、取締役兼監査役として経営に従事。また、経営に携わりながらもエンジニアとしてシステム開発も行っている。</p>
</lig-single-biography>
<lig-single-biography>
  <img
    slot="img"
    src="https://cdn.liginc.co.jp/wp-content/uploads/2017/09/150582513747649200_98.png"
    width="150"
    height="150"
  >
  <p slot="name">まこと</p>
  <p slot="text">LIGの執行役員、すごく仕事ができてセレブ。怖い。リモートワークだかなんだかでオフィスにいなかったので、ビデオチャットにて召喚した。</p>
</lig-single-biography>
<script>
class LigSingleBiography extends HTMLElement {
  static get template() {
    return `
    <style>
      * {
        padding: 0;
        margin: 0;
      }
      :host {
        display: block;
      }
      .wrapper {
        display: flex;
        align-items: center;
        padding: 20px;
        border: 1px solid #e1e1e1;
        box-shadow: 0 3px 0 rgba(8,1,2,0.03);
      }
      .head {
        padding-right: 20px;
      }
      .body {
        font-size: 16px;
        line-height: 2;
      }
      ::slotted([slot="name"]) {
        font-weight: bold;
      }
    </style>
    <div class="wrapper">
      <div class="head">
        <slot name="img"></slot>
      </div>
      <div class="body">
        <slot name="name"></slot>
        <slot name="text"></slot>
      </div>
    </div>
    `;
  }

  constructor() {
    super();

    this.attachShadow({
      mode: 'open'
    }).innerHTML = LigSingleBiography.template;
  }
}
customElements.define('lig-single-biography', LigSingleBiography);
</script>
            
          
!
            
              lig-single-biography {
  margin-bottom: 20px;
}
.red {
  color: red;
}
            
          
!
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.
Loading ..................

Console