Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ add another resource


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


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.


Auto Save

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.


                <div id="app">
  <article class="album">
    <div class="image-wrap">
      <img src="">
    <div class="inner-wrap">
      <ul id="details">
        <li v-for="(item, index) in details" :key="index" class="detail">
          <strong>{{ index }}: </strong> {{ item }}
      <h2>Track listing</h3>
      <ol id="tracks">
        <li v-for="(track, index) in tracks">
          {{ track }}


body {
  background: black;
  min-height: 100vh;
  width: 100vw;
  overflow: auto;
  color: white;
  font-family: 'Open Sans', sans-serif;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-bottom: 3rem;

ul {
  list-style: none;

ul, ol {
  list-style-position: inside;
  padding-left: 0;

article {
  color: white;
  width: calc(30vw + 50px);  
  display: flex;
  line-height: 1.5;

.inner-wrap {
  background: #C70039;
  padding: 1.5rem;

#details li:first-child {
  font-family: 'Monoton', sans-serif;
  font-size: 2.2rem;
  color:  #c89413;
  line-height: 1.2;
  strong {
    display: none;

li {
  margin-bottom: 1.3rem;

.detail strong {
  display: block;

img {
  display: block;
  max-width: 100%;
  width: calc(30vw + 50px);
  height: auto;

h2 {
  font-family: 'Monoton', sans-serif;
  font-size: 1.7rem;
  color:  #c89413;


                class Album {
  constructor(title, artist, released) {
    this.title = title;
    this.artist = artist;
    this.released = released;
  list() {
    return undefined;

class TrackList extends Album {
  constructor(title, artist, released, tracks) {
    super(title, artist, released);
    this.tracks = tracks; 
  details() {
    const theDetails = {
      'Title': this.title,
      'Artist': this.artist,
      'Release date': this.released
    return theDetails;
  list() {
    let theTrackList = [];
    for (let track of this.tracks) {
    return theTrackList;

const album = new Album('God\'s Favourite Customer', 'Father John Misty', 2018);

const tracks = new TrackList(
    'Hangout at the Gallows',
    'Mr. Tillman',
    'Just Dumb Enough to Try',
    'Date Night',
    'Please Don\'t Die',
    'The Palace',
    'Disappointing Diamonds Are the Rarest of Them All',
    'God\'s Favorite Customer',
    'The Songwriter',
    'We\'re Only People (And There\'s Not Much Anyone Can Do About That)']);

var app = new Vue({
  el: '#app',
  data: {
    details: tracks.details(),
    tracks: tracks.list(),

console.log('tracks', tracks.list());