kitbash Sign in Connect agent
Components

Stamp sheet

The signature: a white sheet where every click or tap presses the chosen mark in the next ink; turn and clear tools bottom left, three mark choices bottom right, a counter and a headline in difference blend.

Part of the style

Crossed Ring Stamps

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #fff2f1;
  --paper: #334493;
  --ink-soft: #94a8e7;
  --blend-ink: #334493;
  --stamp-red: #ec9493;
  --stamp-coral: #9a5c5b;
  --stamp-oxblood: #b36d6c;
  --stamp-magenta: #cd92af;
  --stamp-rose: #825e6f;
  --stamp-lilac: #77676e;
  --stamp-blue: #a95858;
  --stamp-mint: #8d5772;
  --stamp-foam: #846875;
  --stamp-lime: #7e5c6d;
  --stamp-ice: #a95858;
}
</style>

<section class="pad" data-inks="warm">
  <div class="pad__sheet" tabindex="0" role="button" aria-label="Press a mark onto the sheet">
    <svg class="pad__stamp" style="left: 58%; top: 30%; --size: 132px; --tilt: -12deg; color: var(--stamp-red)" viewBox="0 0 100 100" fill="none" aria-hidden="true"><circle cx="50" cy="50" r="46"/><ellipse cx="50" cy="50" rx="46" ry="19" transform="rotate(30 50 50)"/><ellipse cx="50" cy="50" rx="46" ry="19" transform="rotate(-30 50 50)"/></svg>
    <svg class="pad__stamp" style="left: 74%; top: 58%; --size: 110px; --tilt: 18deg; color: var(--stamp-magenta)" viewBox="0 0 100 100" fill="none" aria-hidden="true"><circle cx="50" cy="50" r="46"/><ellipse cx="50" cy="50" rx="17" ry="46"/><path d="M4 50H96"/></svg>
    <svg class="pad__stamp" style="left: 81%; top: 52%; --size: 120px; --tilt: -30deg; color: var(--stamp-coral)" viewBox="0 0 100 100" fill="none" aria-hidden="true"><circle cx="50" cy="50" r="46"/><ellipse cx="50" cy="50" rx="46" ry="19" transform="rotate(30 50 50)"/><ellipse cx="50" cy="50" rx="46" ry="19" transform="rotate(-30 50 50)"/></svg>
    <svg class="pad__stamp" style="left: 40%; top: 72%; --size: 100px; --tilt: 8deg; color: var(--stamp-oxblood)" viewBox="0 0 100 100" fill="none" aria-hidden="true"><ellipse cx="50" cy="50" rx="46" ry="15"/><ellipse cx="50" cy="50" rx="46" ry="15" transform="rotate(45 50 50)"/><ellipse cx="50" cy="50" rx="46" ry="15" transform="rotate(90 50 50)"/><ellipse cx="50" cy="50" rx="46" ry="15" transform="rotate(135 50 50)"/></svg>
    <svg class="pad__stamp" style="left: 92%; top: 18%; --size: 96px; --tilt: 24deg; color: var(--stamp-blue)" viewBox="0 0 100 100" fill="none" aria-hidden="true"><circle cx="50" cy="50" r="46"/><ellipse cx="50" cy="50" rx="17" ry="46"/><path d="M4 50H96"/></svg>
  </div>

  <h1 class="pad__title">Every pot<br>leaves with<br>a mark</h1>
  <p class="pad__note">Ondo Clayworks — small-batch stoneware, signed by hand. Tap the sheet to sign it.</p>

  <div class="pad__tools">
    <button class="pad__tool pad__tool--turn" type="button" aria-label="Switch ink set">
      <svg viewBox="0 0 56 56" fill="none" aria-hidden="true"><path d="M44 21A17 17 0 1 0 45 33"/><path d="M45 11V21H35"/></svg>
    </button>
    <button class="pad__tool pad__tool--clear" type="button" aria-label="Clear the sheet">
      <svg viewBox="0 0 56 56" fill="none" aria-hidden="true"><path d="M8 8L48 48M48 8L8 48"/></svg>
    </button>
    <span class="pad__count" aria-live="polite"><span class="pad__count-num">005</span> marks</span>
  </div>

  <div class="pad__glyphs" role="radiogroup" aria-label="Mark">
    <button class="pad__glyph is-active" type="button" role="radio" aria-checked="true" aria-label="Orbit mark">
      <svg viewBox="0 0 100 100" fill="none" aria-hidden="true"><circle cx="50" cy="50" r="46"/><ellipse cx="50" cy="50" rx="46" ry="19" transform="rotate(30 50 50)"/><ellipse cx="50" cy="50" rx="46" ry="19" transform="rotate(-30 50 50)"/></svg>
    </button>
    <button class="pad__glyph" type="button" role="radio" aria-checked="false" aria-label="Seed mark">
      <svg viewBox="0 0 100 100" fill="none" aria-hidden="true"><circle cx="50" cy="50" r="46"/><ellipse cx="50" cy="50" rx="17" ry="46"/><path d="M4 50H96"/></svg>
    </button>
    <button class="pad__glyph" type="button" role="radio" aria-checked="false" aria-label="Petal mark">
      <svg viewBox="0 0 100 100" fill="none" aria-hidden="true"><ellipse cx="50" cy="50" rx="46" ry="15"/><ellipse cx="50" cy="50" rx="46" ry="15" transform="rotate(45 50 50)"/><ellipse cx="50" cy="50" rx="46" ry="15" transform="rotate(90 50 50)"/><ellipse cx="50" cy="50" rx="46" ry="15" transform="rotate(135 50 50)"/></svg>
    </button>
  </div>
</section>

<style>
  .pad {
    position: relative;
    height: clamp(560px, 60vw, 820px);
    overflow: hidden;
    isolation: isolate;
    background: var(--paper);
  }
  .pad__sheet {
    position: absolute;
    inset: 0;
    cursor: crosshair;
  }
  .pad__sheet:focus-visible { outline: var(--line) solid var(--ink); outline-offset: -6px; }

  .pad__stamp {
    position: absolute;
    width: var(--size, 120px);
    height: var(--size, 120px);
    margin: calc(var(--size, 120px) / -2) 0 0 calc(var(--size, 120px) / -2);
    stroke: currentColor;
    stroke-width: var(--stamp-line);
    transform: rotate(var(--tilt, 0deg));
    pointer-events: none;
  }
  .pad__stamp * { vector-effect: non-scaling-stroke; }
  .pad__stamp.is-new { animation: pad-land var(--stamp-time) var(--ease-pop) both; }
  .pad__stamp.is-lifting { opacity: 0; transition: opacity var(--time) var(--ease); }
  @keyframes pad-land {
    from { opacity: 0; transform: rotate(var(--tilt, 0deg)) scale(1.35); }
    to { opacity: 1; transform: rotate(var(--tilt, 0deg)) scale(1); }
  }

  /* Words sit in difference blend over the stamps: black on white, inverted where ink lies under them. */
  .pad__title {
    position: absolute;
    top: var(--edge);
    left: var(--edge);
    margin: 0;
    color: var(--blend-ink);
    font-family: var(--font-display);
    font-size: var(--text-xxl);
    font-weight: var(--weight-light);
    line-height: 0.92;
    letter-spacing: var(--tracking-tight);
    text-transform: uppercase;
    mix-blend-mode: difference;
    pointer-events: none;
  }
  .pad__note {
    position: absolute;
    left: var(--edge);
    bottom: calc(var(--tap) + var(--space-l));
    max-width: 24rem;
    margin: 0;
    color: var(--blend-ink);
    font-size: var(--text-m);
    mix-blend-mode: difference;
    pointer-events: none;
  }

  .pad__tools,
  .pad__glyphs {
    position: absolute;
    bottom: var(--edge);
    display: flex;
    align-items: center;
    gap: var(--gap);
    mix-blend-mode: exclusion;
  }
  .pad__tools { left: var(--edge); }
  .pad__glyphs { right: var(--edge); }

  .pad__tool,
  .pad__glyph {
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 0;
    background: none;
    color: var(--blend-ink);
    cursor: pointer;
    transition: transform var(--time) var(--ease), opacity var(--time) var(--ease);
  }
  .pad__tool svg,
  .pad__glyph svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: var(--line);
  }
  .pad__glyph svg { width: 82%; height: 82%; }
  .pad__tool svg *,
  .pad__glyph svg * { vector-effect: non-scaling-stroke; }
  .pad__tool:hover,
  .pad__glyph:hover { transform: scale(1.08); }
  .pad__tool:active,
  .pad__glyph:active { transform: scale(0.9); }
  .pad__tool--turn svg { transition: transform var(--stamp-time) var(--ease); }
  .pad__tool--turn.is-turned svg { transform: rotate(180deg); }
  .pad__glyph { opacity: 0.4; }
  .pad__glyph.is-active { opacity: 1; }
  .pad__tool:focus-visible,
  .pad__glyph:focus-visible { outline: var(--line) solid var(--blend-ink); outline-offset: -2px; }

  .pad__count {
    padding-left: var(--space-s);
    color: var(--blend-ink);
    font-size: var(--text-s);
    font-weight: var(--weight-regular);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    white-space: nowrap;
  }

  @media (max-width: 40rem) {
    .pad { height: clamp(560px, 150vw, 720px); }
    .pad__note { bottom: calc(var(--tap) * 2 + var(--space-l)); max-width: 80%; }
    .pad__tools { bottom: calc(var(--edge) + var(--tap) + var(--gap)); }
    .pad__glyphs { left: var(--edge); right: auto; }
  }
</style>

<script>
(() => {
  const sets = {
    warm: ['--stamp-red', '--stamp-coral', '--stamp-rose', '--stamp-magenta', '--stamp-blue', '--stamp-oxblood'],
    pale: ['--stamp-mint', '--stamp-foam', '--stamp-lime', '--stamp-lilac', '--stamp-ice'],
  };
  const MAX = 60;

  for (const root of document.querySelectorAll('.pad')) {
    const sheet = root.querySelector('.pad__sheet');
    const glyphs = [...root.querySelectorAll('.pad__glyph')];
    const turn = root.querySelector('.pad__tool--turn');
    const clear = root.querySelector('.pad__tool--clear');
    const count = root.querySelector('.pad__count-num');
    let set = root.dataset.inks === 'pale' ? 'pale' : 'warm';
    let ink = 0;

    const tally = () => {
      count.textContent = String(sheet.querySelectorAll('.pad__stamp:not(.is-lifting)').length).padStart(3, '0');
    };

    const press = (x, y) => {
      const active = glyphs.find((g) => g.classList.contains('is-active')) || glyphs[0];
      const mark = active.querySelector('svg').cloneNode(true);
      const box = sheet.getBoundingClientRect();
      const size = Math.round(Math.min(150, Math.max(84, box.width * 0.11)) * (0.85 + Math.random() * 0.3));
      const colours = sets[set];
      mark.setAttribute('class', 'pad__stamp is-new');
      mark.style.left = `${x}px`;
      mark.style.top = `${y}px`;
      mark.style.setProperty('--size', `${size}px`);
      mark.style.setProperty('--tilt', `${Math.round(Math.random() * 60 - 30)}deg`);
      mark.style.color = `var(${colours[ink % colours.length]})`;
      ink += 1;
      sheet.append(mark);
      const all = sheet.querySelectorAll('.pad__stamp');
      if (all.length > MAX) all[0].remove();
      tally();
    };

    sheet.addEventListener('pointerdown', (event) => {
      const box = sheet.getBoundingClientRect();
      press(event.clientX - box.left, event.clientY - box.top);
    });
    sheet.addEventListener('keydown', (event) => {
      if (event.key !== 'Enter' && event.key !== ' ') return;
      event.preventDefault();
      const box = sheet.getBoundingClientRect();
      press(box.width * (0.15 + Math.random() * 0.7), box.height * (0.15 + Math.random() * 0.7));
    });

    for (const glyph of glyphs) {
      glyph.addEventListener('click', () => {
        for (const g of glyphs) {
          g.classList.toggle('is-active', g === glyph);
          g.setAttribute('aria-checked', String(g === glyph));
        }
      });
    }

    turn.addEventListener('click', () => {
      set = set === 'warm' ? 'pale' : 'warm';
      root.dataset.inks = set;
      ink = 0;
      turn.classList.toggle('is-turned');
    });

    clear.addEventListener('click', () => {
      const marks = sheet.querySelectorAll('.pad__stamp');
      marks.forEach((mark) => mark.classList.add('is-lifting'));
      tally();
      setTimeout(() => marks.forEach((mark) => mark.remove()), 160);
    });
  }
})();
</script>

Similar components

Hero with stage accordion

Hero with stage accordion

Doodled wordmark with x-ray

Doodled wordmark with x-ray

Painted desktop

Painted desktop

Stage and inspector

Stage and inspector

Pill-stuck hero

Pill-stuck hero

Screensaver deck

Screensaver deck

Fitted headline sheet

Fitted headline sheet

Film reel

Film reel