kitbash Sign in Connect agent
Components

Fog hero with fluid blob

Huge serif capitals with a swash letter, a mono readout row between corner ticks, an iridescent canvas blob and icon squares.

Part of the style

Pewter Haze Readout

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

Preview

Code
<section class="hero">
  <canvas class="hero__canvas" role="img" aria-label="An iridescent fluid blob drifting in grey fog"></canvas>

  <h1 class="hero__title">
    <span class="hero__line">Slow light</span>
    <span class="hero__line"><span class="hero__swash">S</span>ound rooms</span>
  </h1>

  <div class="hero__row">
    <i class="hero__tick hero__tick--l" aria-hidden="true"></i>
    <p class="hero__read">(Open)for commissions</p>
    <p class="hero__read">Studio in Rotterdam<br><span class="hero__clock" data-zone="Europe/Amsterdam">10:20</span> (CET)</p>
    <p class="hero__read hero__read--mark"><span class="hero__square" aria-hidden="true"></span><b>Kelda Studio</b></p>
    <p class="hero__read">Rooms built with<br>glass &amp; signal</p>
    <i class="hero__tick hero__tick--r" aria-hidden="true"></i>
  </div>

  <div class="hero__foot">
    <a class="hero__down" href="#" aria-label="Scroll to the work">
      <svg viewBox="0 0 24 24" focusable="false"><path d="M12 4v15M5 12l7 7 7-7"/></svg>
    </a>
    <p class="hero__tagline">Installations, sound<br>and moving light — built<br>to be stood inside.</p>
  </div>

  <div class="hero__tools">
    <div class="hero__icons">
      <button class="hero__icon" type="button" aria-label="Play ambient sound">
        <svg viewBox="0 0 28 20" focusable="false"><path d="M2 10v0M5 8v4M8 5v10M11 7v6M14 2v16M17 6v8M20 4v12M23 8v4M26 9v2"/></svg>
      </button>
      <a class="hero__icon" href="#" aria-label="Open the archive">
        <svg viewBox="0 0 28 20" focusable="false"><path d="M2 4h8l2 2h14v12H2z M2 9h24"/></svg>
      </a>
    </div>
    <a class="hero__more" href="#">Discover the archive</a>
  </div>
</section>

<style>
  .hero {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    min-height: clamp(36rem, 58vw, 54rem);
    padding: var(--space-m) var(--edge) var(--edge);
    overflow: hidden;
    isolation: isolate;
  }
  .hero__canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .hero__title {
    margin: 0;
    font: 400 var(--display-xl)/var(--leading-display) var(--font-display);
    letter-spacing: var(--track-display);
    text-align: center;
    text-transform: uppercase;
  }
  .hero__line { display: block; }
  .hero__swash {
    font-style: italic;
    font-size: 1.22em;
    line-height: 0;
    letter-spacing: -0.08em;
  }
  .hero__row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: var(--space-m) var(--gap);
    margin-top: var(--space-l);
    padding: 0 calc(var(--tick) + var(--space-m));
  }
  .hero__read {
    margin: 0;
    text-align: center;
  }
  .hero__read--mark { display: flex; align-items: center; gap: var(--space-s); font-size: 0.9375rem; }
  .hero__square { width: 0.875rem; height: 0.875rem; background: var(--ink); }
  .hero__tick {
    position: absolute;
    bottom: -0.5rem;
    width: var(--tick);
    height: var(--tick);
    border: 0 solid var(--ink);
    border-bottom-width: var(--line-bold);
  }
  .hero__tick--l { left: 0; border-left-width: var(--line-bold); }
  .hero__tick--r { right: 0; border-right-width: var(--line-bold); }
  .hero__foot, .hero__tools {
    grid-row: 4;
    display: flex;
    align-items: flex-end;
    gap: var(--space-m);
  }
  .hero__foot { grid-column: 1; justify-self: start; }
  .hero__tools { grid-column: 1; justify-self: end; flex-direction: column; align-items: flex-end; }
  .hero__tagline { margin: 0; }
  .hero__down, .hero__icon {
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: var(--line) solid var(--ink);
    border-radius: var(--radius);
    background: none;
    color: var(--ink);
    cursor: pointer;
    transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
  }
  .hero__down svg, .hero__icon svg {
    width: 60%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
  }
  .hero__down:hover, .hero__down:focus-visible, .hero__icon:hover, .hero__icon:focus-visible { background: var(--ink); color: var(--night); outline: none; }
  .hero__icons { display: flex; gap: var(--space-s); }
  .hero__more {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    text-decoration: none;
  }
  .hero__more::after { content: " \2197"; white-space: pre; }
  .hero__more:hover, .hero__more:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
  @media (max-width: 40rem) {
    .hero { min-height: 44rem; }
    .hero__title { text-align: left; }
    .hero__row { justify-content: flex-start; padding: 0; }
    .hero__read { text-align: left; }
    .hero__tick { display: none; }
    .hero__foot { grid-row: 4; align-self: end; }
    .hero__tools { grid-row: 5; margin-top: var(--space-m); }
  }
</style>

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

  function paint(ctx, w, h, t, pointer, colours) {
    ctx.clearRect(0, 0, w, h);
    const narrow = w < 640;
    const cx = w * (narrow ? 0.62 : 0.4) + (pointer.x - 0.5) * w * 0.06 + Math.sin(t * 0.3) * w * 0.02;
    const cy = h * (narrow ? 0.55 : 0.6) + (pointer.y - 0.5) * h * 0.06 + Math.cos(t * 0.25) * h * 0.02;
    const r = Math.min(w, h) * (narrow ? 0.26 : 0.22);
    const shape = (scale, phase) => {
      ctx.beginPath();
      for (let i = 0; i <= 96; i++) {
        const a = (i / 96) * Math.PI * 2;
        const k = 1 + 0.22 * Math.sin(a * 3 + t * 0.7 + phase) + 0.12 * Math.sin(a * 5 - t * 0.9 + phase * 2) + 0.06 * Math.sin(a * 9 + t * 1.3);
        const x = cx + Math.cos(a) * r * k * scale * 0.82;
        const y = cy + Math.sin(a) * r * k * scale * 1.15;
        i ? ctx.lineTo(x, y) : ctx.moveTo(x, y);
      }
      ctx.closePath();
    };
    const sheen = ctx.createConicGradient(t * 0.35, cx, cy);
    colours.forEach((c, i) => sheen.addColorStop(i / colours.length, c));
    sheen.addColorStop(1, colours[0]);
    ctx.save();
    ctx.filter = 'blur(' + Math.round(r * 0.06) + 'px)';
    ctx.globalAlpha = 0.95;
    shape(1, 0);
    ctx.fillStyle = sheen;
    ctx.fill();
    ctx.restore();
    ctx.save();
    shape(1, 0);
    ctx.clip();
    ctx.globalCompositeOperation = 'soft-light';
    ctx.filter = 'blur(' + Math.max(2, Math.round(r * 0.025)) + 'px)';
    for (let ring = 0; ring < 7; ring++) {
      shape(0.9 - ring * 0.12, ring * 0.9 + t * 0.2);
      ctx.lineWidth = r * (0.03 + ring * 0.012);
      ctx.strokeStyle = ring % 2 ? 'rgba(255,255,255,0.7)' : 'rgba(10,10,40,0.75)';
      ctx.stroke();
    }
    ctx.restore();
  }

  for (const canvas of document.querySelectorAll('.hero__canvas')) {
    const root = canvas.closest('.hero');
    const css = getComputedStyle(root);
    const colours = ['--iris-a', '--iris-b', '--iris-c', '--iris-d', '--iris-b'].map((n) => css.getPropertyValue(n).trim());
    const ctx = canvas.getContext('2d');
    const pointer = { x: 0.5, y: 0.5 };
    const aim = { x: 0.5, y: 0.5 };
    let frame = 0;
    const draw = (now) => paint(ctx, canvas.clientWidth, canvas.clientHeight, now / 1000, pointer, colours);
    const fit = () => {
      const d = Math.min(2, devicePixelRatio || 1);
      canvas.width = canvas.clientWidth * d;
      canvas.height = canvas.clientHeight * d;
      ctx.setTransform(d, 0, 0, d, 0, 0);
      draw(performance.now());
    };
    const tick = (now) => {
      pointer.x += (aim.x - pointer.x) * 0.05;
      pointer.y += (aim.y - pointer.y) * 0.05;
      draw(now);
      frame = requestAnimationFrame(tick);
    };
    root.addEventListener('pointermove', (e) => {
      const box = root.getBoundingClientRect();
      aim.x = (e.clientX - box.left) / box.width;
      aim.y = (e.clientY - box.top) / box.height;
    });
    new ResizeObserver(fit).observe(canvas);
    new IntersectionObserver(([entry]) => {
      cancelAnimationFrame(frame);
      if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
    }).observe(canvas);

    const clock = root.querySelector('.hero__clock');
    const time = () => {
      try {
        clock.textContent = new Intl.DateTimeFormat('en-GB', { hour: '2-digit', minute: '2-digit', timeZone: clock.dataset.zone }).format(new Date());
      } catch (e) { /* keep the written time */ }
    };
    time();
    setInterval(time, 30000);
  }
})();
</script>

Similar components

Night water statement

Night water statement

Film reel

Film reel

Stage

Stage

Concertina hero

Concertina hero

Hero with editor window

Hero with editor window

Kraft split hero

Kraft split hero

Iris lens opener

Iris lens opener

Framed still reel

Framed still reel