kitbash Sign in Connect agent
Components

Coming-soon card

One wide black card with a live dot badge, a title, a half-muted sentence and a slowly turning line-drawn surface fading in from the right.

Part of the style

Iridescent Render Mosaic

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #c5aa7f;
  --void: #f7dbae;
  --tile: #b9a077;
  --ink: #040201;
  --ink-soft: #241f1b;
  --ink-mute: #4a3d33;
  --line: rgba(4, 2, 1, 0.09);
  --chip: rgba(4, 2, 1, 0.06);
  --chip-line: rgba(4, 2, 1, 0.14);
  --button: #040201;
  --on-button: #d0b589;
  --tint-frost: #090603;
  --tint-violet: #735133;
  --accent: #735133;
  --tint-pink: #7d5735;
  --tint-red: #5e360b;
  --tint-amber: #8b6d54;
  --glow: #8c6d52;
  --tint-yellow: #735133;
}
</style>

<section class="teaser">
  <article class="teaser__card">
    <div class="teaser__copy">
      <p class="teaser__badge"><span class="teaser__dot" aria-hidden="true"></span>Coming soon</p>
      <h2 class="teaser__title">Smoke series</h2>
      <p class="teaser__text">The third paperweight run. Same domes, tinted dark. <span class="teaser__muted">Out of the kiln for members first.</span></p>
      <a class="teaser__link" href="#">Join the list <span aria-hidden="true">→</span></a>
    </div>
    <canvas class="teaser__canvas" role="img" aria-label="A folded sheet of fine white lines turning slowly, with a rainbow edge"></canvas>
  </article>
</section>

<style>
  .teaser {
    padding: var(--section-space) var(--edge);
  }
  .teaser__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 260px;
    overflow: hidden;
    border: var(--rule) solid var(--line);
    border-radius: var(--radius-card);
    background: var(--void);
  }
  .teaser__copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: var(--space-m);
    padding: var(--space-xl);
  }
  .teaser__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(243, 238, 231, 0.08);
    color: var(--ink);
    font-size: var(--text-s);
  }
  .teaser__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: teaser-pulse 2.4s ease-in-out infinite;
  }
  @keyframes teaser-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 104, 58, 0.6); }
    50% { box-shadow: 0 0 0 5px rgba(240, 104, 58, 0); }
  }
  .teaser__title {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--display-m);
    font-weight: var(--weight);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .teaser__text {
    max-width: var(--measure);
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--text-m);
  }
  .teaser__text { color: rgba(243, 238, 231, 0.78); }
  .teaser__muted { color: var(--ink-mute); }
  .teaser__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--tap);
    color: var(--ink);
    font-size: var(--text-s);
    text-decoration: none;
    transition: gap var(--mid) var(--ease);
  }
  .teaser__link:hover,
  .teaser__link:focus-visible { gap: 14px; }
  .teaser__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  .teaser__canvas {
    width: 100%;
    height: 100%;
    min-height: 260px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  }

  @media (max-width: 760px) {
    .teaser__card { grid-template-columns: 1fr; }
    .teaser__canvas {
      grid-row: 1;
      min-height: 220px;
      -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
      mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    }
    .teaser__copy { padding: 0 var(--space-l) var(--space-l); }
  }
  @media (prefers-reduced-motion: reduce) {
    .teaser__dot { animation: none; }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');

    // A ruled surface: many thin lines strung between two moving curves, so it reads as a folded sheet.
    function paint(context, width, height, seconds) {
      context.fillStyle = '#000';
      context.fillRect(0, 0, width, height);
      const lines = 90;
      const t = seconds * 0.3;
      const ax = width * 0.25, ay = height * 1.05;
      const bx = width * 0.7, by = -height * 0.05;
      for (let i = 0; i < lines; i += 1) {
        const k = i / (lines - 1);
        const a = k * Math.PI;
        const x1 = ax + Math.cos(a + t) * width * 0.22;
        const y1 = ay - Math.sin(a) * height * 0.35;
        const x2 = bx + Math.cos(a * 1.4 - t * 1.3) * width * 0.16;
        const y2 = by + Math.sin(a + t) * height * 0.25 + height * 0.2;
        const edge = Math.pow(Math.sin(a), 6);
        const glow = 0.12 + 0.6 * Math.pow(Math.abs(Math.sin(a * 1.5 + t)), 3);
        context.strokeStyle = edge > 0.85
          ? `hsla(${(k * 360 + seconds * 40) % 360}, 90%, 70%, ${glow})`
          : `rgba(243, 238, 231, ${glow})`;
        context.lineWidth = 0.6;
        context.beginPath();
        context.moveTo(x1, y1);
        context.quadraticCurveTo(width * 0.5 + Math.sin(t + k * 3) * width * 0.12, height * 0.5, x2, y2);
        context.stroke();
      }
    }

    function run(canvas) {
      const context = canvas.getContext('2d');
      let frame = 0;
      const fit = () => {
        const density = Math.min(2, devicePixelRatio || 1);
        canvas.width = canvas.clientWidth * density;
        canvas.height = canvas.clientHeight * density;
        context.setTransform(density, 0, 0, density, 0, 0);
        paint(context, canvas.clientWidth, canvas.clientHeight, performance.now() / 1000);
      };
      const tick = (now) => {
        paint(context, canvas.clientWidth, canvas.clientHeight, now / 1000);
        frame = requestAnimationFrame(tick);
      };
      new ResizeObserver(fit).observe(canvas);
      new IntersectionObserver(([entry]) => {
        cancelAnimationFrame(frame);
        if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
      }).observe(canvas);
    }

    document.querySelectorAll('.teaser__canvas').forEach(run);
  })();
</script>

Similar components

Seven-day timeline

Seven-day timeline

Fanned feature cards

Fanned feature cards

Grey card rail

Grey card rail

Ruled three-column pillars

Ruled three-column pillars

Use case columns

Use case columns

Triage queue window

Triage queue window

Latest notes

Latest notes

Swatch service tiles

Swatch service tiles