kitbash Sign in Connect agent
Components

Works index

Ruled rows of works on the six-column grid: italic title and year, medium, dimensions; a small picture of the pointed row appears in the last column.

Part of the style

Night Water Footnote

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

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@125,300;125,400;125,700;125,800&family=Noto+Sans:wght@400;500;700;900&family=Caveat:wght@500;700&display=swap");
:root {
  --font-serif: "Noto Sans", "Helvetica Neue", sans-serif;
  --font-grotesk: "Archivo", "Helvetica Neue", sans-serif;
}
</style>

<section class="index" aria-labelledby="index-heading">
  <div class="index__head">
    <h2 class="index__heading" id="index-heading">Works</h2>
    <p class="index__count">6 entries, newest first</p>
  </div>

  <div class="index__body">
    <ol class="index__rows">
      <li><a class="index__row is-current" href="#" data-row="0">
        <span class="index__title"><em>Slack Water</em>, 2026</span>
        <span class="index__medium">Silver gelatin print on baryta paper, white oak frame</span>
        <span class="index__size">16 x 20 x 1.5 in</span>
      </a></li>
      <li><a class="index__row" href="#" data-row="1">
        <span class="index__title"><em>Weather Over the Mole</em>, 2025–2026</span>
        <span class="index__medium">Single-channel video loop, salvaged ship's lamp, birch case</span>
        <span class="index__size">22 x 14 x 3 in</span>
      </a></li>
      <li><a class="index__row" href="#" data-row="2">
        <span class="index__title"><em>A Ledger of Swells</em>, 2025</span>
        <span class="index__medium">Forty contact prints pinned to a cedar lath</span>
        <span class="index__size">96 x 4 x 2 in</span>
      </a></li>
      <li><a class="index__row" href="#" data-row="3">
        <span class="index__title"><em>Two Boats, Leaving</em>, 2024–2026</span>
        <span class="index__medium">Pigment print mounted on aluminium, float frame</span>
        <span class="index__size">Various dimensions</span>
      </a></li>
      <li><a class="index__row" href="#" data-row="4">
        <span class="index__title"><em>Sky Held Still</em>, 2024</span>
        <span class="index__medium">Platinum print, hand-coated, pale ash frame</span>
        <span class="index__size">11 x 14 x 1.25 in</span>
      </a></li>
      <li><a class="index__row" href="#" data-row="5">
        <span class="index__title"><em>The Hour Exposure</em>, 2023</span>
        <span class="index__medium">Cyanotype on Japanese tissue, unframed</span>
        <span class="index__size">30 x 42 in</span>
      </a></li>
    </ol>

    <div class="index__preview" aria-hidden="true">
      <img class="index__picture is-current" data-row="0" src="assets/breaking-wave.jpg" alt="" width="650" height="800" loading="lazy">
      <img class="index__picture" data-row="1" src="assets/great-wave.jpg" alt="" width="1200" height="978" loading="lazy">
      <img class="index__picture" data-row="2" src="assets/solar-clouds.jpg" alt="" width="800" height="627" loading="lazy">
      <img class="index__picture" data-row="3" src="assets/brig.jpg" alt="" width="800" height="634" loading="lazy">
      <img class="index__picture" data-row="4" src="assets/cloud-music.jpg" alt="" width="649" height="800" loading="lazy">
      <img class="index__picture" data-row="5" src="assets/great-wave.jpg" alt="" width="1200" height="978" loading="lazy" style="object-position: 30% 80%;">
    </div>
  </div>
</section>

<style>
  .index {
    padding: var(--space-l) var(--edge) var(--section-space);
    background: var(--day);
    color: var(--ink);
  }
  .index__head,
  .index__body {
    display: grid;
    grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
    gap: var(--gap);
  }
  .index__head {
    margin-bottom: var(--space-xl);
  }
  .index__heading {
    margin: 0;
    font: 500 var(--text-nav) / var(--leading-tight) var(--font-grotesk);
  }
  .index__count {
    grid-column: 2 / span 2;
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--text-s);
  }
  .index__rows {
    grid-column: 1 / span 5;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .index__row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--gap);
    align-items: baseline;
    min-height: 44px;
    padding: var(--space-s) 0 var(--space-m);
    color: var(--ink-soft);
    font-size: var(--text-m);
    line-height: var(--leading);
    text-decoration: none;
    transition: color var(--quick) var(--ease);
  }
  .index__row.is-current,
  .index__row:hover,
  .index__row:focus-visible {
    color: var(--ink);
  }
  .index__row:focus-visible {
    outline: var(--line) solid var(--ink);
    outline-offset: 2px;
  }
  .index__title em {
    color: var(--ink);
  }
  .index__medium {
    grid-column: 2 / span 2;
  }
  .index__size {
    grid-column: 4;
  }

  .index__preview {
    grid-column: 6;
    position: relative;
    align-self: start;
    aspect-ratio: 4 / 5;
    background: var(--wall);
  }
  .index__picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--fade) var(--ease);
  }
  .index__picture.is-current {
    opacity: 1;
  }

  @media (max-width: 48rem) {
    .index__rows {
      grid-column: 1 / -1;
    }
    .index__preview {
      display: none;
    }
    .index__count {
      grid-column: 3 / -1;
    }
    .index__row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--space-xs) var(--gap);
      padding-bottom: var(--space-l);
    }
    .index__title {
      grid-column: 1 / -1;
    }
    .index__medium {
      grid-column: 1;
    }
    .index__size {
      grid-column: 2;
    }
  }
</style>

<script>
  (() => {
    document.querySelectorAll('.index').forEach((root) => {
      const rows = [...root.querySelectorAll('.index__row')];
      const pictures = [...root.querySelectorAll('.index__picture')];
      const show = (id) => {
        rows.forEach((r) => r.classList.toggle('is-current', r.dataset.row === id));
        pictures.forEach((p) => p.classList.toggle('is-current', p.dataset.row === id));
      };
      rows.forEach((row) => {
        row.addEventListener('pointerenter', () => show(row.dataset.row));
        row.addEventListener('focus', () => show(row.dataset.row));
      });
    });
  })();
</script>

Similar components

Register

Register

Finds ledger

Finds ledger

Features and mentions

Features and mentions

Release index

Release index

Work index

Work index

Index ledger

Index ledger

Partners and awards

Partners and awards

Object index

Object index