kitbash Sign in Connect agent
Components

Wallet sheet

Copy beside a lilac wallet card with two counting figures, drawn line charts and a toast that slides in.

Part of the style

Dusty Status Cards

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --stone: #251a1a;
  --white: #7a6c6c;
  --night: #fbf4ee;
  --ink: #fbf4ee;
  --ink-soft: #f8efe8;
  --ink-faint: #786c6c;
  --rule: rgba(251, 244, 238, 0.16);
  --button: #f8f0ea;
  --on-button: #7a6c6c;
  --sage: #4d4141;
  --sage-ink: #cfc8c1;
  --lilac: #87645e;
  --lilac-ink: #fff5f3;
  --lilac-line: rgba(25, 1, 0, 0.3);
  --lilac-deep: #774e47;
  --rose: #87645e;
  --rose-ink: #fff7f6;
  --ochre: #87645e;
  --ochre-ink: #9c817c;
}
</style>

<section class="wallet">
  <div class="wallet__sheet">
    <p class="wallet__label"><span class="wallet__tab">Step 4 • The payment</span></p>
    <div class="wallet__body">
      <div class="wallet__text">
        <h2 class="wallet__title">Pay in coin or a share of the till</h2>
        <p class="wallet__copy">One payment covers the whole crew, in cash or a mix of cash and a small share of what the room earns in its first year.</p>
        <blockquote class="wallet__quote">"Paying four makers took one click. Two of them chose a share of the bar's takings instead."</blockquote>
        <div class="wallet__person">
          <img class="wallet__face" src="assets/face-d.jpg" alt="Painted portrait standing in for a customer" width="48" height="48">
          <p class="wallet__who"><span class="wallet__name">Aurel Saska</span><span class="wallet__role">Owner, Saska Records &amp; Bar</span></p>
        </div>
      </div>
      <div class="wallet__visual">
        <div class="wallet__card">
          <div class="wallet__toast">
            <span class="wallet__coin" aria-hidden="true">$</span>
            <p class="wallet__toasttext">New deposit from the bakery fit-out<span class="wallet__toastwhen">2 mins ago</span></p>
          </div>
          <div class="wallet__head">
            <img class="wallet__avatar" src="assets/face-e.jpg" alt="" width="40" height="40">
            <p class="wallet__purse">Your purse</p>
          </div>
          <div class="wallet__stat">
            <p class="wallet__kind">Cash</p>
            <p class="wallet__figure"><span class="wallet__num" data-to="38.6">38.6</span>k <span class="wallet__badge">↗ 32%</span></p>
            <svg class="wallet__chart" viewBox="0 0 300 80" preserveAspectRatio="none" aria-hidden="true">
              <path class="wallet__area" d="M0 70 L40 66 L90 68 L140 52 L190 54 L240 48 L270 46 L300 14 L300 80 L0 80 Z"/>
              <path class="wallet__line" pathLength="1" d="M0 70 L40 66 L90 68 L140 52 L190 54 L240 48 L270 46 L300 14"/>
            </svg>
          </div>
          <div class="wallet__stat">
            <p class="wallet__kind">Shares</p>
            <p class="wallet__figure"><span class="wallet__num" data-to="21.9">21.9</span>k <span class="wallet__badge">↗ 88%</span></p>
            <svg class="wallet__chart" viewBox="0 0 300 80" preserveAspectRatio="none" aria-hidden="true">
              <path class="wallet__area" d="M0 62 L50 54 L100 66 L150 70 L200 64 L250 60 L300 10 L300 80 L0 80 Z"/>
              <path class="wallet__line" pathLength="1" d="M0 62 L50 54 L100 66 L150 70 L200 64 L250 60 L300 10"/>
            </svg>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

<style>
  .wallet {
    background: var(--night);
    padding-top: var(--seam);
    overflow-x: clip;
  }
  .wallet__sheet {
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-band) var(--radius-band) 0 0;
  }
  .wallet__label {
    display: flex;
    align-items: center;
    height: var(--step-bar);
    margin: 0;
    padding: 0 var(--edge);
  }
  .wallet__tab {
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius-chip);
    background: var(--stone);
    font-size: var(--text-label);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
  }
  .wallet__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) var(--edge) var(--section-space);
  }
  .wallet__title {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: var(--weight-regular);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
  }
  .wallet__copy {
    max-width: 30rem;
    margin: var(--space-m) 0 var(--space-l);
    font-size: var(--text-m);
  }
  .wallet__quote {
    position: relative;
    max-width: 22rem;
    margin: 0 0 var(--space-l);
    padding: var(--space-m);
    border-radius: var(--radius-bubble);
    background: var(--stone);
    font-size: var(--text-s);
  }
  .wallet__quote::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.9rem;
    width: 1.1rem;
    height: 1rem;
    background: var(--stone);
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  .wallet__person { display: flex; align-items: center; gap: var(--space-s); }
  .wallet__face,
  .wallet__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: var(--pill);
    object-fit: cover;
    object-position: 50% 22%;
  }
  .wallet__who { display: grid; margin: 0; font-size: var(--text-s); line-height: 1.35; }
  .wallet__name { font-weight: var(--weight-regular); }
  .wallet__role { color: var(--ink-faint); }

  .wallet__visual { display: flex; justify-content: center; padding-top: var(--space-l); }
  .wallet__card {
    position: relative;
    width: min(100%, 22rem);
    border-radius: var(--radius-card);
    background: var(--lilac);
    color: var(--lilac-ink);
  }
  .wallet__head {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-m);
    border-bottom: var(--line) solid var(--lilac-line);
  }
  .wallet__avatar { width: 2.5rem; height: 2.5rem; border: 2px solid var(--white); }
  .wallet__purse { margin: 0; font-size: var(--text-l); font-weight: var(--weight-regular); }
  .wallet__stat { padding: var(--space-m) var(--space-m) 0; overflow: hidden; }
  .wallet__stat + .wallet__stat { border-top: var(--line) solid var(--lilac-line); }
  .wallet__kind {
    margin: 0;
    font-size: var(--text-xs);
    font-weight: var(--weight-regular);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
  }
  .wallet__figure {
    display: flex;
    align-items: center;
    gap: 0;
    margin: var(--space-xs) 0 0;
    font-size: var(--text-2xl);
    font-weight: var(--weight-regular);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  .wallet__figure::before { content: "$"; }
  .wallet__badge {
    margin-left: var(--space-xs);
    padding: 2px var(--space-xs);
    border-radius: var(--pill);
    background: var(--lilac-ink);
    color: var(--lilac);
    font-size: var(--text-xs);
  }
  .wallet__chart {
    width: calc(100% + 2 * var(--space-m));
    max-width: none;
    height: 4.5rem;
    margin: 0 calc(var(--space-m) * -1);
  }
  .wallet__area { fill: var(--lilac-deep); opacity: 0; transition: opacity var(--time-slow) var(--ease) 0.9s; }
  .wallet__line {
    fill: none;
    stroke: var(--lilac-ink);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.4s var(--ease-soft) 0.2s;
  }
  .wallet.is-seen .wallet__line { stroke-dashoffset: 0; }
  .wallet.is-seen .wallet__area { opacity: 1; }

  .wallet__toast {
    position: absolute;
    top: -2rem;
    right: -2.5rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-s);
    max-width: 17rem;
    padding: var(--space-s) var(--space-m) var(--space-s) var(--space-s);
    border-radius: var(--pill);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-float);
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity var(--time-slow) var(--ease-soft) 0.9s, transform var(--time-slow) var(--ease-soft) 0.9s;
  }
  .wallet.is-seen .wallet__toast { opacity: 1; transform: none; }
  .wallet__coin {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--pill);
    background: var(--lilac);
    color: var(--lilac-ink);
    font-weight: var(--weight-medium);
  }
  .wallet__toasttext { display: grid; margin: 0; font-size: var(--text-s); line-height: 1.3; font-weight: var(--weight-regular); }
  .wallet__toastwhen { color: var(--ink-faint); font-size: var(--text-xs); }

  @media (max-width: 52rem) {
    .wallet__body { grid-template-columns: minmax(0, 1fr); }
    .wallet__visual { order: -1; padding-top: var(--space-xl); }
    .wallet__visual { padding-top: 5rem; }
    .wallet__toast { top: -4rem; right: auto; left: 50%; width: max-content; max-width: calc(100% + 1rem); transform: translate(-50%, -0.75rem); }
    .wallet.is-seen .wallet__toast { transform: translate(-50%, 0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .wallet__line { stroke-dashoffset: 0; transition: none; }
    .wallet__area { opacity: 1; transition: none; }
    .wallet__toast { transition: none; }
  }
</style>

<script>
(() => {
  const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
  const seen = new IntersectionObserver((entries) => {
    for (const entry of entries) {
      if (!entry.isIntersecting) continue;
      const root = entry.target;
      root.classList.add('is-seen');
      seen.unobserve(root);
      if (reduce) continue;
      for (const num of root.querySelectorAll('.wallet__num')) {
        const to = parseFloat(num.dataset.to);
        const start = performance.now();
        const step = (now) => {
          const t = Math.min(1, (now - start) / 1400);
          num.textContent = (to * (1 - Math.pow(1 - t, 3))).toFixed(1);
          if (t < 1) requestAnimationFrame(step);
        };
        requestAnimationFrame(step);
      }
    }
  }, { threshold: 0.2 });
  for (const root of document.querySelectorAll('.wallet')) seen.observe(root);
})();
</script>

Similar components

Wireframe and system status

Wireframe and system status

Odds readout

Odds readout

Bar meters

Bar meters

Logo cells and counts

Logo cells and counts

Avatar stack and name grid

Avatar stack and name grid

Numbers

Numbers

Speckled result figure

Speckled result figure

Countdown block

Countdown block