kitbash Sign in Connect agent
Components

Work index

Ruled table of projects in serif capitals with mono years and columns, a coordinate readout and a pointer-following greyscale thumbnail.

Part of the style

Pewter Haze Readout

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --fog-core: #3f73fa;
  --fog-mid: #0d02fe;
  --fog-edge: #040191;
  --night: #040191;
  --ink: #fef1f6;
  --ink-soft: rgba(254, 241, 246, 0.62);
  --ink-faint: rgba(254, 241, 246, 0.28);
  --veil: rgba(254, 241, 246, 0.08);
  --shade: rgba(4, 1, 145, 0.35);
  --iris-a: #ff69b3;
  --iris-b: #a697fd;
  --iris-c: #b2349c;
  --iris-d: #ff69b3;
}
</style>

<section class="index">
  <div class="index__locator">
    <p class="index__coords">51°55′22.4″ N<br>4°28′46.0″ E</p>
    <button class="index__box" type="button" aria-label="Previous room">
      <svg viewBox="0 0 24 24" focusable="false"><path d="M20 12H5M11 5l-7 7 7 7"/></svg>
    </button>
    <span class="index__box index__box--globe" aria-hidden="true">
      <svg viewBox="0 0 24 24" focusable="false"><circle cx="12" cy="12" r="9"/><ellipse cx="12" cy="12" rx="4" ry="9"/><path d="M3 12h18M5 7h14M5 17h14"/></svg>
    </span>
  </div>

  <table class="index__table">
    <thead>
      <tr>
        <th class="index__head" scope="col">Selected rooms</th>
        <th class="index__head" scope="col">Venue</th>
        <th class="index__head" scope="col">Medium</th>
        <th class="index__head index__head--end" scope="col"><span class="index__hidden">Link</span></th>
      </tr>
    </thead>
    <tbody>
      <tr class="index__row">
        <th class="index__name" scope="row"><a class="index__link" href="#">Cloud Archive<span class="index__year">./2026</span></a></th>
        <td class="index__cell">Harbour Museum</td>
        <td class="index__cell">Projection</td>
        <td class="index__go"><span aria-hidden="true">See room</span><img class="index__thumb" src="assets/clouds.jpg" alt="Clouds over a dark ridge" width="240" height="300" loading="lazy"></td>
      </tr>
      <tr class="index__row is-peek">
        <th class="index__name" scope="row"><a class="index__link" href="#">Lantern Choir<span class="index__year">./2025</span></a></th>
        <td class="index__cell">Old Exchange</td>
        <td class="index__cell">Glass &amp; tone</td>
        <td class="index__go"><span aria-hidden="true">See room</span><img class="index__thumb" src="assets/chandelier.jpg" alt="A tall brass chandelier" width="240" height="300" loading="lazy"></td>
      </tr>
      <tr class="index__row">
        <th class="index__name" scope="row"><a class="index__link" href="#">Amber Vessel<span class="index__year">./2025</span></a></th>
        <td class="index__cell">Night Fair</td>
        <td class="index__cell">Light object</td>
        <td class="index__go"><span aria-hidden="true">See room</span><img class="index__thumb" src="assets/lamp.jpg" alt="An enamelled glass lamp" width="240" height="300" loading="lazy"></td>
      </tr>
      <tr class="index__row">
        <th class="index__name" scope="row"><a class="index__link" href="#">Slow Tide<span class="index__year">./2024</span></a></th>
        <td class="index__cell">Dune Pavilion</td>
        <td class="index__cell">Sound field</td>
        <td class="index__go"><span aria-hidden="true">See room</span><img class="index__thumb" src="assets/lighthouse.jpg" alt="A bright shore below cliffs" width="240" height="300" loading="lazy"></td>
      </tr>
      <tr class="index__row">
        <th class="index__name" scope="row"><a class="index__link" href="#">Keeper's Shelf<span class="index__year">./2023</span></a></th>
        <td class="index__cell">Signal Festival</td>
        <td class="index__cell">Light object</td>
        <td class="index__go"><span aria-hidden="true">See room</span><img class="index__thumb" src="assets/lights.jpg" alt="Old lamps and lanterns on a shelf" width="240" height="300" loading="lazy"></td>
      </tr>
    </tbody>
  </table>

</section>

<style>
  .index {
    position: relative;
    padding: var(--space-xl) var(--edge) var(--section);
  }
  .index__locator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    margin-bottom: var(--space-xl);
  }
  .index__coords { margin: 0; text-align: right; font-size: var(--text-s); font-weight: 700; }
  .index__box {
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: var(--line) solid var(--ink);
    border-radius: var(--radius);
    background: none;
    color: var(--ink);
    cursor: pointer;
    transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
  }
  .index__box svg { width: 70%; fill: none; stroke: currentColor; stroke-width: 1.2; }
  .index__box--globe svg { stroke-width: 0.8; }
  button.index__box:hover, button.index__box:focus-visible { background: var(--ink); color: var(--night); outline: none; }
  .index__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }
  .index__head {
    padding: 0 var(--space-m) var(--space-m) 0;
    border-bottom: var(--line) solid var(--ink-faint);
    font-weight: 400;
    text-align: left;
  }
  .index__head:first-child { width: 42%; }
  .index__head--end { width: 9rem; }
  .index__hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .index__row {
    position: relative;
    border-bottom: var(--line) solid var(--ink-faint);
    transition: background-color var(--quick) var(--ease);
  }
  .index__row:hover, .index__row:focus-within { background: var(--veil); }
  .index__name, .index__cell, .index__go {
    padding: var(--space-m) var(--space-m) var(--space-m) 0;
    font: 400 var(--display-s)/1 var(--font-display);
    letter-spacing: var(--track-display);
    text-align: left;
    vertical-align: baseline;
  }
  .index__name { font-size: var(--display-m); }
  .index__link { text-decoration: none; }
  .index__link::after { content: ""; position: absolute; inset: 0; }
  .index__link:focus-visible { outline: none; }
  .index__row:has(.index__link:focus-visible) { outline: var(--line) solid var(--ink); outline-offset: -1px; }
  .index__year { margin-left: 0.15em; font: 700 var(--text-s)/1 var(--font-mono); letter-spacing: var(--track-mono); }
  .index__go {
    padding-right: 0;
    font: 400 var(--text)/1 var(--font-mono);
    letter-spacing: var(--track-mono);
    text-align: right;
    white-space: nowrap;
  }
  .index__go span::after { content: " \2197"; white-space: pre; }
  .index__go { position: static; }
  .index__thumb {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: clamp(10rem, 18vw, 15rem);
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: var(--line) solid var(--ink);
    box-shadow: 0 1.5rem 3rem var(--shade);
    filter: grayscale(1) contrast(1.2) brightness(1.05);
    pointer-events: none;
    opacity: 0;
    scale: 0.92;
    translate: var(--x, 64vw) var(--y, -45%);
    transition: opacity var(--glide) var(--ease), scale var(--glide) var(--ease);
  }
  .index__row.is-peek .index__thumb { opacity: 1; scale: 1; }
  @media (max-width: 48rem) {
    .index__head:nth-child(2), .index__head:nth-child(3), .index__cell { display: none; }
    .index__head:first-child { width: auto; }
    .index__head--end { width: 6.5rem; }
    .index__thumb { display: none; }
  }
</style>

<script>
(() => {
  for (const root of document.querySelectorAll('.index')) {
    root.querySelectorAll('.index__row').forEach((row) => {
      const thumb = row.querySelector('.index__thumb');
      const place = (x, y) => {
        const r = row.getBoundingClientRect();
        row.style.setProperty('--x', (x - r.left + 24) + 'px');
        row.style.setProperty('--y', (y - r.top - thumb.offsetHeight / 2) + 'px');
      };
      row.addEventListener('pointerenter', (e) => { root.querySelectorAll('.is-peek').forEach((other) => other.classList.remove('is-peek')); place(e.clientX, e.clientY); row.classList.add('is-peek'); });
      row.addEventListener('pointermove', (e) => place(e.clientX, e.clientY));
      row.addEventListener('pointerleave', () => row.classList.remove('is-peek'));
      row.addEventListener('focusin', () => {
        const r = row.getBoundingClientRect();
        place(r.left + r.width * 0.6, r.top + r.height / 2);
        row.classList.add('is-peek');
      });
      row.addEventListener('focusout', () => row.classList.remove('is-peek'));
    });
  }
})();
</script>

Similar components

Partners and awards

Partners and awards

Works index

Works index

Index ledger

Index ledger

Release index

Release index

Edition ledger

Edition ledger

Film index

Film index

Features and mentions

Features and mentions

Register

Register