kitbash Sign in Connect agent
Components

This week

Black section opened by a slanted edge in the frame colour. A tilted gold poster with a hard shadow (two labels, a two-line title, a tab-shaped picture of a mirror ball, blurb and dates) sits over giant pink blocks; beside it two black tabs cut out of one pink tab hold a ruled list of nights and a call to action with a sinking button.

Part of the style

Rollerdrome Colour Block

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --page: #fcfaf8;
  --ink: #222220;
  --paper: #ffffff;
  --pink: #a67fac;
  --gold: #a67fac;
  --cobalt: #321237;
  --frame: #a67fac;
  --red: #a67fac;
  --orange: #bd9cc1;
}
</style>

<section class="feature">
  <div class="feature__shapes" aria-hidden="true">
    <span class="feature__shape feature__shape--a"></span>
    <span class="feature__shape feature__shape--b"></span>
    <span class="feature__shape feature__shape--c"></span>
  </div>

  <div class="feature__inner">
    <article class="feature__poster">
      <p class="feature__heads">
        <span class="feature__head">Otto presents</span>
        <span class="feature__head">All-nighter</span>
      </p>
      <h2 class="feature__title">Spin<br>Cycle</h2>
      <div class="feature__picture" aria-hidden="true">
        <span class="feature__ball"></span>
        <span class="feature__spark feature__spark--a"></span>
        <span class="feature__spark feature__spark--b"></span>
        <span class="feature__spark feature__spark--c"></span>
      </div>
      <div class="feature__foot">
        <p class="feature__blurb">Four hours, two DJs and one mirror ball the size of a small car.</p>
        <p class="feature__dates">Mar 12 — Mar 14</p>
      </div>
    </article>

    <div class="feature__side">
      <div class="feature__panel">
        <h3 class="feature__label">On the floor this week</h3>
        <ul class="feature__nights">
          <li class="feature__night">
            <span class="feature__day">Thu</span>
            <span class="feature__date">Mar 12</span>
            <span class="feature__state">Sold out</span>
          </li>
          <li class="feature__night">
            <span class="feature__day">Fri</span>
            <span class="feature__date">Mar 13</span>
            <span class="feature__state">Sold out</span>
          </li>
          <li class="feature__night">
            <span class="feature__day">Sat</span>
            <span class="feature__date">Mar 14</span>
            <a class="feature__state feature__state--open" href="#">Book <svg class="feature__arrow" viewBox="0 0 20 14" aria-hidden="true"><path d="M0 7H16M10 1.5 16 7 10 12.5"/></svg></a>
          </li>
        </ul>
      </div>
      <div class="feature__panel">
        <h3 class="feature__call">Lace up</h3>
        <a class="feature__button" href="#">Get a wristband <svg class="feature__arrow" viewBox="0 0 20 14" aria-hidden="true"><path d="M0 7H16M10 1.5 16 7 10 12.5"/></svg></a>
      </div>
    </div>
  </div>
</section>

<style>
  .feature {
    position: relative;
    container-type: inline-size;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
  }

  /* The frame colour of the screen above ends here in a slanted edge. */
  .feature::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    height: 3.6cqw;
    background: var(--frame);
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }

  /* Giant pink blocks behind everything, the same tabs as the pixel blocks at a hundred times the size. */
  .feature__shapes {
    position: absolute;
    inset: 0;
  }
  .feature__shape {
    position: absolute;
    background: var(--pink);
  }
  .feature__shape--a {
    top: 5cqw;
    left: 27cqw;
    width: 26cqw;
    height: 17cqw;
    border-radius: 0 8.5cqw 8.5cqw 4cqw;
  }
  .feature__shape--b {
    top: 37cqw;
    left: -6cqw;
    width: 22cqw;
    height: 16cqw;
  }
  .feature__shape--c {
    top: 50cqw;
    left: 34cqw;
    width: 21cqw;
    height: 30cqw;
    border-radius: 0 0 0 9cqw;
  }

  .feature__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 46cqw minmax(0, 1fr);
    column-gap: 9cqw;
    align-items: start;
    padding: 9.5cqw 4cqw 8cqw 5cqw;
  }

  /* The poster: a tilted sheet with a hard shadow. */
  .feature__poster {
    display: grid;
    gap: 2.4cqw;
    padding: 3cqw 3.2cqw 2.6cqw;
    rotate: -4deg;
    background: var(--gold);
    box-shadow: var(--drop-lift) var(--drop-lift) 0 var(--ink);
    color: var(--ink);
  }
  .feature__heads {
    display: flex;
    justify-content: space-between;
    gap: var(--space-s);
    margin: 0;
  }
  .feature__head,
  .feature__label,
  .feature__day,
  .feature__state {
    font-size: var(--text-xs);
    font-weight: var(--label-weight);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
  }
  .feature__title,
  .feature__dates,
  .feature__date,
  .feature__call,
  .feature__button {
    font-weight: var(--display-weight);
    font-stretch: var(--display-width);
    text-transform: uppercase;
  }
  .feature__title {
    margin: 1.4cqw 0 0;
    font-size: 11.6cqw;
    line-height: 0.84;
    letter-spacing: var(--tracking-giant);
  }
  .feature__picture {
    position: relative;
    height: 17cqw;
    overflow: hidden;
    border-radius: 0 8.5cqw 8.5cqw 3.4cqw;
    background: var(--ink) conic-gradient(from 166deg at 36% -30%, transparent 0 6deg, var(--cobalt) 6deg 20deg, transparent 20deg 28deg, var(--cobalt) 28deg 34deg, transparent 34deg);
  }
  .feature__ball {
    --tile: 1.9cqw;
    position: absolute;
    top: 14%;
    left: 22%;
    height: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
      repeating-linear-gradient(0deg, var(--ink) 0 calc(var(--tile) * 0.12), transparent 0 var(--tile)),
      repeating-linear-gradient(90deg, var(--ink) 0 calc(var(--tile) * 0.12), transparent 0 var(--tile)),
      repeating-conic-gradient(var(--paper) 0 25%, var(--pink) 0 50%, var(--paper) 0 75%, var(--gold) 0 100%) 0 0 / calc(var(--tile) * 4) calc(var(--tile) * 2);
  }
  .feature__ball::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: calc(50% - 0.15cqw);
    width: 0.3cqw;
    height: 4cqw;
    background: var(--paper);
  }
  .feature__spark {
    position: absolute;
    width: var(--spark-size);
    aspect-ratio: 1;
    background: var(--paper);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  }
  .feature__spark--a {
    --spark-size: 4.2cqw;
    top: 16%;
    left: 60%;
  }
  .feature__spark--b {
    --spark-size: 2.4cqw;
    top: 58%;
    left: 74%;
    background: var(--gold);
  }
  .feature__spark--c {
    --spark-size: 2cqw;
    top: 50%;
    left: 8%;
    background: var(--pink);
  }
  .feature__foot {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-s);
  }
  .feature__blurb {
    max-width: 17em;
    margin: 0;
    font-size: clamp(0.8125rem, 1.25cqw, var(--text-m));
    text-wrap: pretty;
  }
  .feature__dates {
    margin: 0;
    font-size: clamp(1.375rem, 2.9cqw, 2.5rem);
    line-height: 1;
    white-space: nowrap;
  }

  /* The side: two black tabs cut out of one giant pink tab that runs off the page. */
  .feature__side {
    position: relative;
    display: grid;
    gap: 3.4cqw;
    margin-top: 5cqw;
  }
  .feature__side::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -3.4cqw -30cqw -3.4cqw -3cqw;
    border-radius: 0 30cqw 30cqw 12cqw;
    background: var(--pink);
  }
  .feature__panel {
    padding: 3cqw 6cqw 3cqw 3.4cqw;
    border-radius: 0 9cqw 9cqw 4cqw;
    background: var(--ink);
  }
  .feature__label {
    margin: 0 0 var(--space-s);
    color: var(--pink);
  }
  .feature__nights {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .feature__night {
    display: grid;
    grid-template-columns: 2.6rem 1fr auto;
    align-items: center;
    gap: var(--space-xs);
    min-height: var(--tap);
    border-top: var(--rule) solid var(--pink);
  }
  .feature__date {
    font-size: var(--title-s);
    line-height: 1;
  }
  .feature__state {
    color: var(--pink);
  }
  .feature__state--open {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-height: var(--tap);
    text-decoration: none;
    transition: gap var(--time-fast) var(--ease-out);
  }
  .feature__state--open:hover,
  .feature__state--open:focus-visible {
    gap: 0.9em;
  }
  .feature__arrow {
    width: 1.25em;
    height: 0.875em;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
  }
  .feature__call {
    margin: 0 0 var(--space-s);
    font-size: var(--title-m);
    line-height: var(--leading-title);
    letter-spacing: var(--tracking-title);
  }
  .feature__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-height: var(--tap);
    padding: 0 var(--space-m);
    border-radius: var(--tab-s);
    background: var(--gold);
    box-shadow: var(--drop-button) var(--drop-button) 0 var(--pink);
    color: var(--ink);
    font-size: var(--title-xs);
    letter-spacing: var(--tracking-button);
    white-space: nowrap;
    text-decoration: none;
    transition: translate var(--time-fast) var(--ease-out), box-shadow var(--time-fast) var(--ease-out);
  }
  .feature__button:hover,
  .feature__button:focus-visible {
    translate: var(--drop-button) var(--drop-button);
    box-shadow: 0 0 0 var(--pink);
  }
  .feature__state--open:focus-visible,
  .feature__button:focus-visible {
    outline: 3px solid var(--paper);
    outline-offset: 3px;
  }

  @media (max-width: 46rem) {
    .feature__inner {
      grid-template-columns: minmax(0, 1fr);
      row-gap: 14cqw;
      padding: 13cqw 6cqw 12cqw;
    }
    .feature__poster {
      gap: 5cqw;
      padding: 6cqw 6cqw 5cqw;
      rotate: -2.5deg;
      box-shadow: var(--drop) var(--drop) 0 var(--ink);
    }
    .feature__title {
      font-size: 25cqw;
    }
    .feature__picture {
      height: 36cqw;
      border-radius: 0 18cqw 18cqw 7cqw;
    }
    .feature__ball {
      --tile: 3.8cqw;
    }
    .feature__spark {
      width: calc(var(--spark-size) * 2);
    }
    .feature__foot {
      flex-direction: column;
      align-items: start;
    }
    .feature__blurb {
      font-size: var(--text-s);
    }
    .feature__shape--a {
      top: 4cqw;
      left: 52cqw;
      width: 60cqw;
      height: 34cqw;
      border-radius: 0 0 0 12cqw;
    }
    .feature__shape--b {
      top: 70cqw;
      width: 30cqw;
      height: 40cqw;
    }
    .feature__shape--c {
      display: none;
    }
    .feature__side {
      gap: 6cqw;
      margin-top: 0;
    }
    .feature__side::before {
      inset: -6cqw -30cqw -6cqw -3cqw;
      border-radius: 0 0 0 16cqw;
    }
    .feature__panel {
      padding: 6cqw 9cqw 6cqw 6cqw;
      border-radius: 0 14cqw 14cqw 6cqw;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .feature__state--open,
    .feature__button {
      transition-duration: 0s;
    }
  }
</style>

Similar components

Card rail

Card rail

Selected work cards

Selected work cards

Specimen cards

Specimen cards

Stepped service cards

Stepped service cards

Process cards on a string

Process cards on a string

Colour specimen

Colour specimen

Feature cells

Feature cells

Edition slips

Edition slips