kitbash Sign in Connect agent
Components

Kept poems

Window-framed cards, each an old printed sheet in grey multiplied into the putty with black bars across it and the kept words below.

Part of the style

Pixel Caps Manuscript

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #bacd82;
  --ink: #000000;
  --ink-mute: #515b34;
  --rule-mute: #748150;
  --paper-wash: #b1c37b;
}
</style>

<section class="poems" id="poems" aria-labelledby="poems-heading">
  <div class="poems__head">
    <h2 class="poems__heading" id="poems-heading">Kept this week</h2>
    <p class="poems__note">Four pages, four readers, four poems nobody else would have found.</p>
  </div>
  <ul class="poems__grid">
    <li class="poems__card">
      <a class="poems__link" href="#">
        <span class="poems__bar"><span class="poems__title">Thread Pulled Loose</span><span class="poems__dots" aria-hidden="true"><i></i><i></i><i></i></span></span>
        <span class="poems__sheet">
          <img class="poems__img" src="assets/comet-sheet.jpg" alt="A printed broadside with a headline, a comet drawn as a long streak and a row of houses at the foot" width="545" height="800" loading="lazy">
          <span class="poems__strikes" aria-hidden="true"><i style="--y: 18%; --x: 8%; --w: 70%"></i><i style="--y: 34%; --x: 14%; --w: 58%"></i><i style="--y: 50%; --x: 6%; --w: 80%"></i><i style="--y: 66%; --x: 22%; --w: 50%"></i></span>
        </span>
        <span class="poems__words">the whole market / stayed open / like a pale thread</span>
        <span class="poems__by">kept by reader 0412</span>
      </a>
    </li>
    <li class="poems__card">
      <a class="poems__link" href="#">
        <span class="poems__bar"><span class="poems__title">Fair Wind, Ninth</span><span class="poems__dots" aria-hidden="true"><i></i><i></i><i></i></span></span>
        <span class="poems__sheet">
          <img class="poems__img" src="assets/almanac-page.jpg" alt="A small cloth-bound almanac standing open, its covers embroidered with flowers" width="800" height="734" loading="lazy">
          <span class="poems__strikes" aria-hidden="true"><i style="--y: 22%; --x: 10%; --w: 64%"></i><i style="--y: 40%; --x: 30%; --w: 56%"></i><i style="--y: 58%; --x: 8%; --w: 72%"></i><i style="--y: 76%; --x: 16%; --w: 44%"></i></span>
        </span>
        <span class="poems__words">mend the fence / somebody will learn / to whistle</span>
        <span class="poems__by">kept by reader 0388</span>
      </a>
    </li>
    <li class="poems__card">
      <a class="poems__link" href="#">
        <span class="poems__bar"><span class="poems__title">Wings Left Open</span><span class="poems__dots" aria-hidden="true"><i></i><i></i><i></i></span></span>
        <span class="poems__sheet">
          <img class="poems__img" src="assets/insect-title.jpg" alt="An engraved title page framed by butterflies and moths with open wings" width="800" height="515" loading="lazy">
          <span class="poems__strikes" aria-hidden="true"><i style="--y: 24%; --x: 26%; --w: 48%"></i><i style="--y: 42%; --x: 12%; --w: 76%"></i><i style="--y: 60%; --x: 30%; --w: 40%"></i></span>
        </span>
        <span class="poems__words">nothing at all / turned out / to be about wings</span>
        <span class="poems__by">kept by reader 0301</span>
      </a>
    </li>
    <li class="poems__card">
      <a class="poems__link" href="#">
        <span class="poems__bar"><span class="poems__title">Three Tides</span><span class="poems__dots" aria-hidden="true"><i></i><i></i><i></i></span></span>
        <span class="poems__sheet">
          <img class="poems__img" src="assets/news-sheet.jpg" alt="A two-page printed news sheet with dense columns, a verse panel and a woodcut scene" width="800" height="589" loading="lazy">
          <span class="poems__strikes" aria-hidden="true"><i style="--y: 16%; --x: 6%; --w: 40%"></i><i style="--y: 34%; --x: 52%; --w: 40%"></i><i style="--y: 54%; --x: 10%; --w: 70%"></i><i style="--y: 72%; --x: 24%; --w: 60%"></i></span>
        </span>
        <span class="poems__words">left on the landing / the ferryman / does sing</span>
        <span class="poems__by">kept by reader 0277</span>
      </a>
    </li>
  </ul>
</section>

<style>
  .poems {
    padding: var(--section-space) var(--edge);
  }
  .poems__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-s) var(--gap);
    margin-bottom: var(--space-l);
  }
  .poems__heading {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display-l);
    font-weight: 400;
    line-height: 1.1;
  }
  .poems__note {
    max-width: 40ch;
    margin: 0;
    color: var(--ink-mute);
  }
  .poems__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .poems__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: var(--rule) solid var(--ink);
    color: inherit;
    text-decoration: none;
    transition: background-color var(--quick) var(--ease);
  }
  .poems__link:hover,
  .poems__link:focus-visible {
    background: var(--paper-wash);
    outline: none;
  }
  .poems__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-s) var(--space-s) var(--space-m);
    border-bottom: var(--rule) solid var(--ink);
  }
  .poems__title {
    min-width: 0;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: var(--text-l);
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .poems__dots {
    display: flex;
    flex: none;
    gap: 3px;
  }
  .poems__dots i {
    width: 10px;
    height: 10px;
    border: var(--rule) solid var(--ink);
    border-radius: var(--radius-dot);
  }
  .poems__dots i:last-child {
    background: var(--ink);
  }
  .poems__sheet {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    margin: var(--space-m) var(--space-m) 0;
    overflow: hidden;
    background: var(--paper);
  }
  .poems__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.35) brightness(1.08);
    mix-blend-mode: multiply;
  }
  .poems__strikes i {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--w);
    height: 7%;
    background: var(--ink);
    transform: scaleX(0.82);
    transform-origin: 0 50%;
    transition: transform var(--step) var(--ease);
  }
  .poems__strikes i:nth-child(2) { transition-delay: 40ms; }
  .poems__strikes i:nth-child(3) { transition-delay: 80ms; }
  .poems__strikes i:nth-child(4) { transition-delay: 120ms; }
  .poems__link:hover .poems__strikes i,
  .poems__link:focus-visible .poems__strikes i {
    transform: scaleX(1);
  }
  .poems__words {
    padding: var(--space-m) var(--space-m) var(--space-xs);
    font-weight: 500;
    line-height: 1.4;
  }
  .poems__by {
    margin-top: auto;
    padding: 0 var(--space-m) var(--space-m);
    color: var(--ink-mute);
    font-size: var(--text-s);
  }

  @media (prefers-reduced-motion: reduce) {
    .poems__strikes i {
      transition: none;
    }
  }
</style>

Similar components

Floating card wall

Floating card wall

Dark work frames

Dark work frames

Work rail

Work rail

Place rail

Place rail

Drifting card shelf

Drifting card shelf

Project status cards

Project status cards

Mascot signboard

Mascot signboard

Recipe cards

Recipe cards