kitbash Sign in Connect agent
Components

Grey stage

One object large on studio grey in a slow breathing zoom, a white slip naming it, and a strip of three labelled tiles below.

Part of the style

White Tag Object Grid

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #0e1217;
  --paper: #959093;
  --tile: #868184;
  --tile-deep: #8a8488;
  --ink-soft: #201b1f;
  --on-ink: #959093;
  --finish-b: #7c767a;
  --finish-c: #2f3338;
  --flag: #6c83a5;
  --finish-a: #6581ad;
}
</style>

<section class="hero">
  <a class="hero__stage" href="#">
    <img class="hero__picture" src="assets/tankard.jpg" alt="A tall lidded mug with a hinged pewter lid" width="620" height="800">
    <span class="hero__tags">
      <span class="hero__tag">Lidded Mug No. 4</span>
      <span class="hero__tag hero__tag--flag">Waitlist open</span>
    </span>
  </a>
  <ul class="hero__strip">
    <li class="hero__cell">
      <a class="hero__link" href="#">
        <img class="hero__thumb hero__thumb--fill" src="assets/scissors.jpg" alt="Long steel scissors with looped handles" width="800" height="297">
        <span class="hero__tag">Field Scissors</span>
      </a>
    </li>
    <li class="hero__cell">
      <a class="hero__link" href="#">
        <img class="hero__thumb" src="assets/padlock.jpg" alt="An engraved heart-shaped padlock case" width="749" height="800">
        <span class="hero__tag">Etched Lock Case</span>
      </a>
    </li>
    <li class="hero__cell">
      <a class="hero__link" href="#">
        <img class="hero__thumb hero__thumb--fill" src="assets/astrolabe.jpg" alt="A brass dial with a pierced pattern" width="843" height="1155">
        <span class="hero__tag">Brass Day Dial</span>
      </a>
    </li>
  </ul>
</section>

<style>
  .hero {
    font-family: var(--font-mono);
    background: var(--tile);
  }
  .hero__stage {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(360px, 48vw, 640px);
    overflow: hidden;
    background: var(--tile);
    color: var(--ink);
    text-decoration: none;
  }
  /* Pale-ground photographs are set with darken, so their backdrop melts into the studio grey. */
  .hero__picture {
    height: 92%;
    width: auto;
    aspect-ratio: 620 / 800;
    object-fit: contain;
    mix-blend-mode: darken;
    animation: hero-breathe 14s var(--ease) infinite alternate;
  }
  .hero:not(.is-seen) .hero__picture { animation-play-state: paused; }
  @keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.06); } }

  .hero__tags {
    position: absolute;
    top: var(--tag-inset);
    left: var(--tag-inset);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--tag-gap);
  }
  .hero__tag {
    display: inline-block;
    padding: var(--tag-pad-y) var(--tag-pad-x);
    background: var(--paper);
    color: var(--ink);
    font-size: var(--text-xs);
    line-height: var(--leading-tag);
    text-transform: uppercase;
    transition: box-shadow var(--lift) var(--ease);
  }
  .hero__tag--flag { background: var(--flag); }

  .hero__strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .hero__cell + .hero__cell .hero__link { border-left: var(--line) solid var(--paper); }
  .hero__link {
    position: relative;
    display: block;
    height: 120px;
    overflow: hidden;
    background: var(--tile);
    color: var(--ink);
    text-decoration: none;
    transition: background-color var(--fade) var(--ease);
  }
  .hero__thumb {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    mix-blend-mode: darken;
    transition: transform var(--zoom) var(--ease);
  }
  .hero__thumb--fill {
    object-fit: cover;
    object-position: center;
    mix-blend-mode: normal;
  }
  .hero__link .hero__tag {
    position: absolute;
    top: var(--tag-inset);
    left: var(--tag-inset);
    max-width: calc(54% - var(--tag-inset));
  }
  .hero__link:hover,
  .hero__link:focus-visible { background: var(--tile-deep); outline: none; }
  .hero__link:hover .hero__thumb,
  .hero__link:focus-visible .hero__thumb { transform: scale(1.04); }
  .hero__link:hover .hero__tag,
  .hero__link:focus-visible .hero__tag,
  .hero__stage:hover .hero__tag { box-shadow: var(--shadow); }
  .hero__stage:focus-visible { outline: var(--line) solid var(--ink); outline-offset: -4px; }

  @media (max-width: 640px) {
    .hero__strip { grid-template-columns: 1fr; }
    .hero__cell + .hero__cell .hero__link { border-left: 0; border-top: var(--line) solid var(--paper); }
    .hero__link { height: 96px; }
    .hero__thumb { width: 40%; }
    .hero__link .hero__tag { max-width: calc(60% - var(--tag-inset)); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero__picture { animation: none; }
  }
</style>

<script>
(() => {
  const watch = new IntersectionObserver((entries) => {
    for (const entry of entries) entry.target.classList.toggle('is-seen', entry.isIntersecting);
  });
  for (const root of document.querySelectorAll('.hero')) watch.observe(root);
})();
</script>

Similar components

Numbered plate

Numbered plate

Tile ring hero

Tile ring hero

Framed still reel

Framed still reel

Drifting oval field

Drifting oval field

Statement with picture trail

Statement with picture trail

Drifting print field

Drifting print field

Portrait lineup

Portrait lineup

Threaded drag board

Threaded drag board