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

              
                <h1>Video Cassette Collection</h1>
<p>&hearts; inspired by <a href="https://twitter.com/allisongrayce/status/1244693832844881923" target="_blank">this tweet</a> by <a href="https://twitter.com/allisongrayce" target="_blank">Allison Grayce</a></p>

<ul class="cassette-list">
  <li class="cassette cassette--polaroid">
    <h2>Polaroid</h2>
    <dl>
      <dt class="quality">HS</dt>
      <dd class="quality__details">High Standard Video Cassette</dd>
    </dl>
    <div class="graphic--rainbow">
    </div>
    <div class="code">E-180</div>
    <div class="length">258m</div>
    <div class="vhs-logo-wrapper">
      <svg class="vhs-logo">
        <use xlink:href="#vhs-logo" />
      </svg>
      PAL SECAM
    </div>
  </li>
  <li class="cassette cassette--jvcxr">
    <div class="brand-wrapper">
      <h2>JVC</h2>
      <div class="note">Superb Quality</div>
    </div>
    <dl>
      <dt class="quality">XR</dt>
      <dd class="quality__details">Excellent Resolution</dd>      
    </dl>
    <div class="code--large">180</div>
    <div class="code--small">E-180XR</div>
    <div class="name">Video Cassette</div>
    <div class="vhs-logo-wrapper">
      <svg class="vhs-logo">
        <use xlink:href="#vhs-logo" />
      </svg>
      PAL SECAM
    </div>
  </li>
  <li class="cassette cassette--kodak">
    <h2>Kodak</h2>
    <div class="quality-wrapper">
      <div class="quality">HS</div>
    </div>
    <div class="details-wrapper">
      <div class="name">Video Casette</div>
      <div class="code">E-180</div>
    </div>
    <ul class="logos">
      <li>
        <svg class="logo">
          <use xlink:href="#kodak-logo" />
        </svg>
      </li>
      <li>
        <div class="vhs-logo-wrapper">
          <svg class="vhs-logo">
            <use xlink:href="#vhs-logo" />
          </svg>
          PAL SECAM
        </div>
      </li>
    </ul>
  </li>
  <li class="cassette cassette--hitachi">
    <h2>
      <svg class="logo">
        <use xlink:href="#hitachi-logo" />
      </svg>
      Hitachi&reg;
    </h2>
    <div class="details">
      <div class="code">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 84 69">
          <text y="53">180</text>
        </svg>
      </div>
      <div class="vhs-logo-wrapper">
        <svg class="vhs-logo">
          <use xlink:href="#vhs-logo" />
        </svg>
        PAL SECAM
      </div>
    </div>
  </li>
  <li class="cassette cassette--jvchr">
    <header>
      <h2>JVC</h2>
      <div class="name">Video Cassette</div>
      <div class="code--large">180</div>
      <div class="code--small">E-180HR</div>
      <ul class="length-list">
        <li class="length">1800min</li>
        <li class="length">360min</li>
      </ul>
    </header>
    <div class="details">Dynarec</div>
    <dl class="quality-wrapper">
      <dt class="quality">HR</dt>
      <dd class="quality-details">High Resolution</dd>
    </dl>
    <div class="vhs-logo-wrapper">
      <svg class="vhs-logo">
        <use xlink:href="#vhs-logo" />
      </svg>
      PAL SECAM
    </div>
  </li>
  <li class="cassette cassette--philips">
    <h2>Philips</h2>
    <div class="name">Video Cassette Quality Grade</div>
    <div class="code">E180</div>
    <div class="length">180min</div>
    <div class="vhs-logo-wrapper">
      <svg class="vhs-logo">
        <use xlink:href="#vhs-logo" />
      </svg>
      PAL SECAM
    </div>
  </li>
  <li class="cassette cassette--agfa">
    <h2>AGFA</h2>
    <div class="quality">High Color</div>
    <div class="details">Made in Germany</div>
    <div class="code">E-180</div>
    <div class="vhs-logo-wrapper">
      <svg class="vhs-logo">
        <use xlink:href="#vhs-logo" />
      </svg>
      PAL SECAM
    </div>
  </li>
  <li class="cassette cassette--basf">
    <h2>
      <svg class="logo">
        <use xlink:href="#basf-logo" />
      </svg>
      BASF
    </h2>
    <div class="graphic"><em>Fantastic</em> Colours</div>
    <div class="code">E 180</div>
    <div class="quality">Extra Quality</div>
    <div class="name">Chrome Videocassette</div>
    <div class="vhs-logo-wrapper">
      <ul class="details-list">
        <li>Stereo</li>
        <li>3h</li>
      </ul>
      <svg class="vhs-logo">
        <use xlink:href="#vhs-logo" />
      </svg>
      PAL SECAM
    </div>
  </li>
</ul>

<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
  <symbol id="vhs-logo" fill-rule="evenodd" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" viewBox="0 0 400 204">
    <g>
      <path d="M145 24h33v154h-33zM216 24h33v154h-33zM27 24h37l39 155H66L27 24z" />
      <path d="M131 24h-20v5c2 6 1 13 0 19L81 179h15l35-155zM220 123h-73l-9 14h58c9 0 21-7 24-14zM327 89c-51-10-34-52-5-52h47l6-13h-61c-18 0-57 18-52 53 2 23 18 32 47 40 50 12 34 48 12 48h-54l6 14h51c27 0 51-19 51-46-1-28-16-38-48-44z" />
      <path fill="none" stroke-width="7" d="M8 7h386v190H8z" />
    </g>
  </symbol>
  <symbol id="kodak-logo" overflow="visible" viewBox="0 0 187 170">
    <g fill-rule="evenodd" clip-rule="evenodd">
      <path fill="#FFB210" d="M187 169V0H0v169h187z" />
      <path fill="#FE000C" stroke="#FE000C" stroke-miterlimit="2.6" stroke-width=".2" d="M36 85c0 1 0 3 3 7l34 48c2 2 3 7-3 7H32l-3-1c-2 0-4-1-5-3l-2-6V32l2-5a10 10 0 018-4h38c6 0 5 4 3 7L39 78c-3 3-3 5-3 7z" />
      <path fill="#FE000C" stroke="#FE000C" stroke-miterlimit="2.6" stroke-width=".2" d="M165 134c0 14-13 13-13 13h-39c-5 0-7-3-10-5a7866 7866 0 01-64-57l1-2 63-55c3-2 5-5 10-5h39s13-1 13 13v98z" />
      <path fill="#FFB210" stroke="#FFB210" stroke-miterlimit="2.6" stroke-width=".2" d="M59 74h6v9l7-9h7l-7 11 8 13h-8l-7-12v12h-6V74z" />
      <path fill="#FFB210" stroke="#FFB210" stroke-miterlimit="2.6" stroke-width=".2" d="M88 79c5 0 9 4 9 10s-4 9-9 9c-6 0-10-3-10-9s4-10 10-10zm-1 15c3 0 3-2 3-5s0-5-3-5c-2 0-2 1-2 5s0 5 2 5zM110 97l-5 1c-5 0-7-3-7-9s2-9 7-9l5 1v-7h6v24h-5l-1-1zm-3-3c2 0 3-2 3-5s-1-5-3-5-3 2-3 5c0 4 1 5 3 5zM129 96c-1 1-2 2-6 2s-6-2-6-5c0-4 3-5 6-6l6-1s0-3-3-3c-2 0-3 2-3 3h-4v-6h10c5 0 6 3 6 6v12h-6v-2zm-1-7c-3 0-5 1-5 3s1 2 3 2 3-1 3-4v-1h-1zM136 74h6v12l5-6h6l-5 7 6 11h-7l-5-8v8h-6V74z" />
    </g>
  </symbol>
  <symbol id="hitachi-logo" viewBox="0 0 50 50">
    <g fill-rule="evenodd">
      <path d="M45 19c-2-7-7-12-14-14-4-1-5-4-6-5-1 1-2 4-6 5-7 2-13 7-15 14 0 4-3 5-4 6 1 1 4 2 4 6 3 7 8 12 15 15 4 0 5 3 6 4 1-1 2-4 6-4 7-3 12-8 14-15 1-4 4-5 5-6-1-1-4-2-5-6zm-8-7H27V7l10 5zm-12 4a9 9 0 11-9 9c0-5 4-9 9-9zm-2-9v5H13l10-5zM10 34a18 18 0 010-18h6c-2 2-3 5-3 9s1 7 3 9h-6zm15 9c-4 0-9-2-12-5h24c-3 3-7 5-12 5zm15-9h-6a12 12 0 000-18h6a18 18 0 010 18z" />
      <path d="M25 19c3 0 6 3 6 6a6 6 0 01-12 0c0-3 3-6 6-6z" />
    </g>
  </symbol>
  <symbol id="basf-logo" viewBox="0 2.68 170.01 169.56">
    <defs/>
    <path fill="#ed1c24" d="M68.64 126.51a10.12 10.12 0 10.01-20.23 10.12 10.12 0 000 20.23M170 161.32c-2.8 4.03-5.87 7.22-9.25 10.92h9.26v-10.92"/>
    <path fill="#ed1c24" d="M.21 76.56c13.68-23.84 39.22-40.1 68.45-40.1 43.67 0 76.03 33.86 70.58 80.77-3.55 30.37-26.41 48.9-52.13 55.01h26.79c21.87-13.47 38.63-35.8 38.3-64.39 0-44.15-26.93-74.82-67.88-80.98v5.02h-47.9a90.3 90.3 0 00-36.21 26v18.67"/>
    <path fill="#ed1c24" d="M.18 130.45c3.54 17.3 13.47 31.74 27.24 41.8h25.45c-24.66-6.88-42.74-29.05-42.74-55.87 0-32.28 26.2-59.34 58.5-59.34 32.31 0 50.54 24.04 49.66 52.2-.46 27.69-25.06 46.45-49.66 46.31-21.65-.12-39.21-17.54-39.21-39.17A39.2 39.2 0 0168.63 77.2c21.66 0 42.04 19.52 38.32 44.98 11.12-29.04-10.37-56.35-38.32-56.35a50.57 50.57 0 00-50.6 50.55 50.57 50.57 0 0050.6 50.54c27.95 0 60.38-21.95 61.4-54.57 1.66-40.2-22.8-66.69-61.4-66.69-33.77 0-61.94 24.62-68.45 56.6v28.19M13.06 172.24c-5.02-4.92-9.38-9.81-13.06-15.92v15.92h13.06"/>
    <path fill="#ed1c24" d="M84.48 17.15c46.18 6.5 77.28 41.87 77.28 91.1-.18 27.6-12.6 49.1-30.46 64h15.25c10.34-10.08 19.4-22.45 23.34-37V78.64C159.55 42.13 129.71 11.1 84.5 5.62v11.53"/>
    <path fill="#ed1c24" d="M114.6 2.98c23.84 8.3 46.02 29.4 55.34 50.14V34.21a109.41 109.41 0 00-30.82-31.15l-24.51-.08M154.5 3c3.5 2.08 13.46 12.37 15.5 15.67V2.95L154.5 3M0 31.64v13.9c4.74-6.07 13.68-12.06 17.09-13.9H.01"/>
    <path d="M59.4 10c.19-.75-.13-2.87-1.32-4.4-2.22-2.82-6.48-2.92-7.7-2.92-5.57 0-8.2 2.7-8.58 6.32-.37 3.7 1.66 5.48 4.14 6.32 2.94 1 7.45 1 8.95 2.56 1.13 1.13.9 2.91-.1 3.85-.59.56-2.06 1.03-3.63 1.07-1.56.06-3.25-.29-4.28-1.35a3.41 3.41 0 01-.98-2.35h-4.57a7.9 7.9 0 003.2 5.88c1.69 1.22 4.44 1.63 5.6 1.6 2.54-.03 5.2-.34 7.14-1.6 2.85-1.84 4.07-7.25 1.44-10-1.44-1.47-4.13-2.04-5.39-2.26-.87-.15-5.2-.84-5.72-1.4-1.04-.4-1.57-.72-1.44-2.29.15-1.87 1.84-2.65 4.13-2.62 3.22.06 4.76 1.75 4.7 3.6h4.4M63.82 3.06v22.8h4.7V17.4h8.86V13.5h-8.87V6.97h10.66V3.06H63.82M10.24 21.95H4.73v-5.88h6.39c.87 0 2.66.13 2.66 2.69 0 3.13-2.13 3.19-3.54 3.19zM4.73 6.97h5.57c1.63 0 2.91.62 2.91 2.6 0 1.8-1.16 2.59-3.16 2.59H4.73zm10.8 6.75a6.13 6.13 0 002.16-4.69c0-.93-.44-5.97-8.23-5.97H0v22.8h10.32c1.44 0 3.98-.22 5.54-1.56a6.19 6.19 0 002.38-4.82 7.25 7.25 0 00-2.72-5.76M27.24 17.38l2.81-8.85 3.04 8.85zm5.5-14.32h-5.41l-7.95 22.8h4.79l1.6-4.57h8.45l1.56 4.57h4.8l-7.83-22.8"/>
  </symbol>
</svg>
<!-- All SVGs optimized via SVGO -->
<!-- VHS logo from Wikimedia Commons: https://commons.wikimedia.org/wiki/File:VHS_logo.svg -->
<!-- Kodak logo from Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Logo_of_the_Eastman_Kodak_Company_(1987%E2%80%932006).svg -->
<!-- Hitachi logo from Wikichip: https://en.wikichip.org/wiki/File:ic_logo_(hitachi).svg -->
<!-- BASF logo from Vecteezy: https://www.vecteezy.com/vector-art/64262-basf -->
              
            
!

CSS

              
                // https://twitter.com/ARasheedPhoto/status/1244337514233520129/photo/1

// Fonts
// - Audiowide (JVC XR)
// - Libre Franklin: 300, 600, 700 (Polaroid base font)
// - Martel Sans: 900 (Kodak logo)
// - Oswald: 300, 400, 600 (Polaroid code)
// - Quattrocento Sans: 700 (Hitachi 180)
// - Saira: 800 (Kodak HS)
// - Teko: 400, 500, 700 (JVC logo)


// Base styles
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  align-items: center;
  background-color: hsl(256, 40%, 95%);
  color: hsl(62, 4%, 12%);
  display: flex;
  font-family: "Libre Franklin", sans-serif;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
}
h1, p {
  flex: 1 0 100%;  
  text-align: center;
}
h1 {
  margin-bottom: 0.2em;
}
p {
  margin-top: 0;
  opacity: 0.76;
  >a {
    color: inherit;
    &:hover, &:focus {
      color: rebeccapurple;
    }
  }
}

// VHS logo defaults
.vhs-logo {
  height: 16px;
  width: 100%;
  &-wrapper {
    font-size: 4px;
    margin-top: 1px;
    text-align: right;
    width: 32px;
  }
}

// Cassette Grid
.cassette-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  grid-gap: 1em;
  list-style: none;
  padding-left: 0;
  width: 80%;
  max-width: 800px;
}

// Cassette Defaults
.cassette {
  background: hsl(45, 81%, 92%);
  box-shadow: 2px 2px 16px rgba(black, 0.21);
  height: 300px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 165px;

  &::before {
    background-color: rgba(black, 0.05);
    content: "";
    height: 100%;
    width: 3px;
    position: absolute;
    top: 0;
    left: 0;
  }

  // Individual Cassettes  
  &--polaroid {
    h2 {
      font-size: 26px;
      margin: 8px 0 10px;
    }
    .quality {
      font-size: 42px;
      font-weight: 700;
      letter-spacing: -1px;
      &__details {
        font-size: 7px;
        font-weight: 300;
        letter-spacing: 3px;
        margin-bottom: 2px;
        text-align: justify;
        text-transform: uppercase;
        max-width: 102px;
      }
    }
    h2,
    .quality,
    .quality__details,
    .length,
    .vhs-logo-wrapper {
      margin-left: 6px;
    }
    .graphic {
      &--rainbow {
        background: linear-gradient(
          hsl(198, 97%, 39%) 0%,
          hsl(198, 97%, 39%) 20%,
          hsl(83, 52%, 48%) 20%,
          hsl(83, 52%, 48%) 40%,
          hsl(55, 99%, 50%) 40%,
          hsl(55, 99%, 50%) 60%,
          hsl(25, 95%, 54%) 60%,
          hsl(25, 95%, 54%) 80%,
          hsl(335, 93%, 61%) 80%
        );
        position: relative;
        height: 135px;
        width: 106px;

        &::before {
          background-color: rgba(black, 0.1);
          content: "";
          height: 100%;
          width: 3px;
          position: absolute;
          top: 0;
          left: 0;
        }
      }
    }
    .length {
      font-family: Oswald, sans-serif;
      font-size: 14px;
      font-weight: 600;
      margin-top: 8px;
    }
    .code {
      font-family: Oswald, sans-serif;
      font-size: 20px;
      font-weight: 600;
      letter-spacing: -1px;
      position: absolute;
      right: 4px;
      bottom: 6px;
    }

    &::after {
      // cassette peek
      background: linear-gradient(
        45deg,
        hsl(100, 3%, 20%) 22%,
        hsl(100, 2%, 28%) 22%,
        hsl(100, 2%, 28%) 25%,
        hsl(100, 3%, 20%) 25%,
        hsl(100, 2%, 20%) 28%,
        hsl(100, 2%, 28%) 28%,
        hsl(100, 3%, 28%) 31%,
        hsl(100, 3%, 20%) 31%,
        hsl(100, 2%, 20%) 34%,
        hsl(100, 2%, 28%) 34%,
        hsl(100, 3%, 28%) 37%,
        hsl(100, 3%, 20%) 37%,
        hsl(100, 2%, 20%) 40%,
        hsl(100, 2%, 28%) 40%,
        hsl(100, 3%, 28%) 43%,
        hsl(100, 3%, 20%) 43%,
        hsl(100, 2%, 20%) 46%,
        hsl(100, 2%, 28%) 46%,
        hsl(100, 3%, 28%) 49%,
        hsl(100, 3%, 20%) 49%
      );
      border-radius: 5px;
      content: "";
      transform: rotate(45deg);
      position: absolute;
      top: 160px;
      right: -25px;
      height: 50px;
      width: 50px;
    }
  }

  &--jvcxr {
    background-color: hsl(218, 14%, 57%);

    .brand-wrapper {
      margin-bottom: 86px;
      padding: 8px;
      position: relative;
      &::before {
        background: linear-gradient(
          hsl(221, 3%, 18%),
          hsl(288, 7%, 44%) 55%,
          hsl(288, 7%, 44%) 70%,
          hsl(2, 65%, 48%) 70%
        );
        content: "";
        position: absolute;
        top: 0;
        left: 17px;
        height: 206px;
        width: 131px;
        clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
      }
    }

    h2 {
      color: hsl(2, 65%, 48%);
      font-family: "Teko", sans-serif;
      font-size: 58px;
      font-weight: 700;
      margin: 0;
      text-align: center;
    }
    .note {
      color: white;
      font-family: Oswald, sans-serif;
      font-size: 14px;
      margin: auto;
      text-align: center;
      max-width: 60px;
    }
    h2,
    .note {
      position: relative;
      z-index: 1;
    }
    .quality {
      font-family: Audiowide, sans-serif;
      font-size: 56px;
      font-weight: bolder;
      padding: 0 14px 0 10px;
      text-align: center;
      transform: scaleX(1.5);
      &__details {
        font-family: Oswald, sans-serif;
        font-size: 9px;
        font-weight: 300;
        margin-top: -11px;
        text-align: center;
        text-transform: uppercase;
        transform: scaleX(1.7);
      }
    }
    .code {
      &--large,
      &--small {
        position: absolute;
        left: 12px;
      }
      &--large {
        font-family: "Teko", sans-serif;
        font-size: 42px;
        font-weight: 400;
        transform: scaleX(1.2);
        top: 46%;
      }
      &--small {
        color: hsl(51, 38%, 83%);
        font-family: serif;
        font-size: 9px;
        font-style: italic;
        bottom: 9px;
      }
    }
    .name {
      font-family: Oswald, sans-serif;
      font-size: 8px;
      font-style: italic;
      font-weight: 400;
      position: relative;
      top: 11px;
      text-align: right;
      text-transform: uppercase;
      width: 73%;
    }
    .vhs-logo-wrapper {
      position: absolute;
      right: 9px;
      bottom: 9px;
    }
    
    &::after {
    // cassette peek
      background-color: hsl(120, 2%, 12%);
      border-radius: 2px 0 0 2px;
      box-shadow: -1px 1px rgba(white, 0.3), 1px -1px rgba(white, 0.3);
      content: '';
      height: 50px;
      width: 7px;
      position: absolute;
      top: 42%;
      right: 0;
    }
  }

  &--kodak {
    background-color: hsl(43, 99%, 50%);
    display: grid;
    grid-template-columns: 68px 1fr ;
    grid-template-rows: 1fr 40px;
    h2 {
      color: hsl(351, 95%, 42%);
      font-family: 'Martel Sans', sans-serif;
      font-size: 66px;
      font-weight: 900;
      grid-row: 1/-1;
      letter-spacing: -4px;
      @supports (writing-mode: sideways-lr) {
      // only works in FF: https://caniuse.com/#feat=mdn-css_properties_writing-mode_sideways_values
        margin: 3px 0 3px 12px;
        writing-mode: sideways-lr;
      }
      
      @supports not (writing-mode: sideways-lr) {
        margin: 240px 0 0 16px;
        transform: rotate(-90deg);
      }
    }
    .quality {
      color: hsl(39, 26%, 32%);
      font-family: Saira, sans-serif;
      font-size: 34px;
      font-weight: 600;
      &-wrapper {
        align-items: flex-end;
        background-color: hsl(49, 11%, 9%);
        display: flex;
        height: 90px;
        justify-content: flex-end;
        padding: 2px 50px;
        position: absolute;
        top: -30px;
        left: -30px;
        transform: rotate(-25deg);
        width: 120%;
        &::before {
          background: linear-gradient(
            hsl(39, 26%, 26%) 0%,
            hsl(47, 20%, 39%) 2%,
            transparent 2%,
            transparent 14%,
            hsl(39, 26%, 26%) 14%,
            hsl(47, 20%, 39%) 17%,
            transparent 17%,
            transparent 26%,
            hsl(39, 26%, 26%) 26%,
            hsl(47, 20%, 39%) 30%,
            transparent 30%,
            transparent 38%,
            hsl(39, 26%, 26%) 38%,
            hsl(47, 20%, 30%) 47%,
            transparent 47%,
            transparent 51%,
            hsl(39, 26%, 26%) 51%,
            hsl(47, 20%, 30%) 66%,
            transparent 66%,
            transparent 70%,
            hsl(39, 26%, 26%) 70%,
            hsl(47, 20%, 30%) 90%,
            transparent 90%
          );
          content: '';
          position: absolute;
          bottom: 0;
          left: 0;
          height: 45px;
          width: 42%;
          transform: skewX(-16deg);
        }
      }
    }
    .details-wrapper {
      align-self: center;
      position: relative;
      top: 58px;
      text-align: center;
      transform: rotate(-30deg);
      max-width: 8ch;
    }
    .name {
      letter-spacing: -1px;
      margin-left: 8px;
    }
    .code {
      font-size: 24px;
      font-weight: 600;
      letter-spacing: -1px;
    }
    .logos {
      align-items: center;
      display: flex;
      flex-direction: row-reverse;
      justify-content: space-around;
      list-style: none;
      padding-left: 0;
    }
    .logo {
      height: 36px;
      width: 40px;
    }
    &::after {
    // cassette peek
      background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        hsl(73, 6%, 17%) 2px,
        hsl(73, 6%, 17%) 3px
      ),
        repeating-linear-gradient(
        hsl(73, 6%, 22%),
        hsl(73, 6%, 22%) 2px,
        hsl(73, 6%, 17%) 2px,
        hsl(73, 6%, 17%) 3px
      );
      border-radius: 2px;
      box-shadow: -1px 1px rgba(white, 0.3), 1px -1px rgba(white, 0.3);
      content: '';
      position: absolute;
      top: 42%;
      right: -27px;
      height: 50px;
      width: 42px;
      transform: rotate(-30deg);
    }
  }

  &--hitachi {
    background: linear-gradient(to left, hsl(43, 58%, 84%), hsl(41, 78%, 91%));
    color: hsl(58, 11%, 53%);
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    .logo, .vhs-logo {
      fill: hsl(58, 11%, 53%);
    }
    .vhs-logo {
      stroke: hsl(58, 11%, 53%);
    }
    h2 {
      align-items: center;
      display: flex;
      justify-content: space-around;
      padding: 0 10px;
      text-transform: uppercase;
      svg {
        height: 30px;
      }
    }
    .details {
      position: relative;
      top: 30px;
      left: 10px;
      transform: rotate(-40deg);
      
      &::before {
        background: linear-gradient(
          135deg,
          hsl(45, 98%, 53%),
          hsl(45, 98%, 53%) 12%,
          transparent 12%,
          transparent 13%,
          hsl(30, 100%, 50%) 13%,
          hsl(30, 100%, 50%) 26%,
          transparent 26%,
          transparent 27%,
          hsl(25, 100%, 50%) 27%,
          hsl(25, 100%, 50%) 39%,
          transparent 39%,
          transparent 40%,
          hsl(349, 98%, 40%) 40%,
          hsl(349, 98%, 40%) 54.25%,
          transparent 54.25%,
          transparent 55.25%,
          hsl(314, 64%, 50%) 55.25%,
          hsl(314, 64%, 50%) 71%,
          transparent 71%
        );
        clip-path: polygon(0.65% 0%, 74.11% 0%, 99.18% 38.18%, 85.89% 60.91%, 64.38% 60.91%, 64.11% 83.64%, 39.18% 102.73%, 15.62% 82.73%, 0.65% 89%);
        content: '';
        height: 110px;
        width: 146px;
        position: absolute;
        top: -21px;
        left: 17px;
        transform: rotate(40deg);
      }
    }
    .code {
      font-family: 'Quattrocento Sans', sans-serif;
      font-size: 62px;
      font-weight: 700;
      letter-spacing: -7px;
      margin-left: 39px;
      transform: scaleX(1.5) scaleY(1.21);
      svg {
        width: 90%;
      }
      text {
        fill: hsl(45, 81%, 92%);
        stroke: currentcolor;
        stroke-width: 2;
      }
    }
    .vhs-logo-wrapper {
      position: absolute;
      top: 60px;
      left: -20px;
    }
    &::after {
    // cassette peek
      background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 2px,
        hsl(150, 2%, 14%) 2px,
        hsl(150, 2%, 14%) 3px,
      ),
        repeating-linear-gradient(
        45deg,
        hsl(150, 2%, 17%),
        hsl(150, 2%, 17%) 4px,
        hsl(150, 2%, 25%) 4px,
        hsl(150, 2%, 25%) 5px,
      );
      border-radius: 5px;
      content: "";
      transform: rotate(45deg);
      position: absolute;
      top: 140px;
      right: -25px;
      height: 50px;
      width: 50px;
    }
  }

  &--jvchr {
    color: hsl(250, 51%, 21%);
    h2 {
      font-family: "Teko", sans-serif;
      font-size: 58px;
      font-weight: 700;      
    }
    .vhs-logo {
      fill: hsl(250, 51%, 21%);
      stroke: hsl(250, 51%, 21%);
    }
    &::after {
    // cassette peek
    }
  }

  &--philips {
    background: linear-gradient(
      hsl(78, 5%, 17%),
      hsl(51, 7%, 39%),
      hsl(49, 9%, 60%),
      hsl(46, 38%, 92%)
    );
    &::after {
    // cassette peek
    }
  }

  &--agfa {
    &::after {
    // cassette peek
    }
  }

  &--basf {
    background: hsl(199, 22%, 68%);
    &::after {
    // cassette peek
    }
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console