kitbash Sign in Connect agent
Components

Wordmark intro

Reed panel with a full-width red wordmark and a three-line suffix that types itself behind a block cursor, plus a two-option language switch in the corner.

Part of the style

Reed Mono Chapters

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

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=Fraunces:ital,opsz,wght@1,9..144,400..600&display=swap");
:root {
  --reed: #5c563d;
  --bark: #f1f7ef;
  --sand: #474129;
  --night: #fffffe;
  --chalk: #332d15;
  --chalk-dim: #332d15;
  --shade: rgba(255, 255, 254, 0.28);
  --bark-veil: rgba(241, 247, 239, 0.2);
  --olive: #b6bba0;
  --mustard: #363c05;
  --harbor: #bea38f;
  --sky: #7b6b60;
  --signal: #95745a;
  --skin: #6f655d;
  --hair: #494440;
  --teal: #b6bba0;
  --font-mono: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mark: "Fraunces", Georgia, serif;
}
</style>

<header class="intro">
  <nav class="intro__langs" aria-label="Language">
    <a class="intro__lang is-active" href="#" aria-current="true"><span class="intro__chip">EN</span></a>
    <a class="intro__lang" href="#"><span class="intro__chip">NL</span></a>
  </nav>
  <h1 class="intro__mark" aria-label="pell signage">
    <span class="intro__word" aria-hidden="true">pell</span>
    <span class="intro__suffix" aria-hidden="true" data-lines="Sig|na|ge"></span>
  </h1>
</header>

<style>
  .intro {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(26rem, 58vw, 52rem);
    padding: var(--space-16) var(--gutter);
    background: var(--reed);
    overflow: hidden;
  }
  .intro__langs {
    position: absolute;
    top: calc(var(--gutter) - 0.75rem);
    right: calc(var(--gutter) - 0.5rem);
    display: flex;
  }
  .intro__lang {
    display: inline-grid;
    place-items: center;
    min-width: var(--tap);
    min-height: var(--tap);
    color: var(--bark);
    font-size: var(--text-xs);
    text-decoration: none;
  }
  .intro__chip {
    padding: 0.15em 0.5em;
    border: 1px solid transparent;
    transition: opacity 0.14s linear;
  }
  .intro__lang.is-active .intro__chip {
    background: var(--bark);
    color: var(--reed);
  }
  .intro__lang:hover .intro__chip { opacity: 0.6; }
  .intro__lang:focus-visible { outline: none; }
  .intro__lang:focus-visible .intro__chip { border-color: var(--bark); }

  .intro__mark {
    display: flex;
    align-items: center;
    gap: 0.06em;
    margin: 0;
    color: var(--signal);
    font-size: var(--text-mark);
    font-weight: 400;
    line-height: 1;
  }
  .intro__word {
    font-family: var(--font-mark);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.8;
    animation: intro-appear 0.6s linear 0.1s both;
  }
  .intro__suffix {
    display: grid;
    min-width: 3.2ch;
    font-family: var(--font-mono);
    font-size: 0.19em;
    font-weight: 500;
    line-height: 1.12;
    white-space: pre;
  }
  .intro__line { display: block; min-height: 1.12em; }
  .intro__cursor {
    display: inline-block;
    width: 0.62em;
    height: 0.9em;
    margin-left: 0.04em;
    vertical-align: -0.12em;
    background: currentColor;
  }
  .intro__cursor.is-blinking { animation: intro-blink 0.5s steps(1) 4 forwards; }

  @keyframes intro-appear { from { opacity: 0; } to { opacity: 1; } }
  @keyframes intro-blink { 50% { opacity: 0; } 100% { opacity: 0; } }

  @media (max-width: 40rem) {
    .intro__mark { flex-direction: column; align-items: flex-end; gap: 0.1em; }
    .intro__suffix { display: block; font-size: 0.24em; }
    .intro__line { display: inline; }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const beats = [80, 140, 80, 140, 80, 120];

    function type(suffix) {
      const lines = suffix.dataset.lines.split('|').map((text) => {
        const line = document.createElement('span');
        line.className = 'intro__line';
        suffix.append(line);
        return { line, text };
      });
      const cursor = document.createElement('span');
      cursor.className = 'intro__cursor';

      if (still) {
        lines.forEach(({ line, text }) => { line.textContent = text; });
        return;
      }

      const letters = lines.flatMap(({ line, text }) => [...text].map((letter) => ({ line, letter })));
      lines[0].line.append(cursor);
      let at = 1000;
      letters.forEach(({ line, letter }, index) => {
        setTimeout(() => {
          line.append(document.createTextNode(letter), cursor);
        }, at);
        at += beats[index % beats.length];
      });
      setTimeout(() => cursor.classList.add('is-blinking'), at);
    }

    document.querySelectorAll('.intro__suffix').forEach(type);
  })();
</script>

Similar components

Badge intro

Badge intro

Scramble loader

Scramble loader

Lens-scale intro

Lens-scale intro

Ticker loader

Ticker loader

Letter gathering intro

Letter gathering intro

Construction intro

Construction intro

Spiral intro

Spiral intro

Greeting loader

Greeting loader