kitbash Sign in Connect agent
Components

Window glimpse and statement

A canvas window fading into the dark, with a white page of three cards, followed by two columns of grey copy with white lead-ins.

Part of the style

Night Editor Chrome

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #000000;
  --ink: #f9f2ff;
  --ink-soft: rgba(249, 242, 255, 0.7);
  --ink-mute: rgba(249, 242, 255, 0.45);
  --ink-dark: #000000;
  --surface: rgba(249, 242, 255, 0.05);
  --surface-up: rgba(249, 242, 255, 0.08);
  --surface-top: rgba(249, 242, 255, 0.14);
  --line: rgba(249, 242, 255, 0.1);
  --line-strong: rgba(249, 242, 255, 0.18);
  --chrome: #010000;
  --chrome-deep: #000000;
  --sheet: #f9f2ff;
  --sheet-ink: #584e51;
  --sheet-line: #d6ccdd;
  --signal: #41617f;
  --signal-deep: #141f29;
  --select: #6e87a0;
  --ok: #63556d;
}
</style>

<section class="statement">
  <div class="statement__glimpse statement__item" aria-hidden="true">
    <div class="statement__frame">
      <div class="statement__rail">
        <span class="statement__rail-row is-on"></span>
        <span class="statement__rail-row"></span>
        <span class="statement__rail-row"></span>
        <span class="statement__rail-row"></span>
      </div>
      <div class="statement__sheet">
        <p class="statement__sheet-kicker">This week</p>
        <p class="statement__sheet-head">Three letters from the harbour</p>
        <div class="statement__cards">
          <div class="statement__card">
            <img class="statement__card-img" src="assets/boats-beach.jpg" alt="" width="800" height="638" loading="lazy">
            <span class="statement__card-title">Boats on the shingle</span>
            <span class="statement__card-line"></span>
          </div>
          <div class="statement__card">
            <img class="statement__card-img" src="assets/boats-rest.jpg" alt="" width="800" height="579" loading="lazy">
            <span class="statement__card-title">A blue hull at rest</span>
            <span class="statement__card-line"></span>
          </div>
          <div class="statement__card statement__card--note">
            <span class="statement__card-quote">“Fold it twice and it still reads.”</span>
            <span class="statement__card-title">Reader mail</span>
            <span class="statement__card-line"></span>
          </div>
        </div>
      </div>
      <div class="statement__rail statement__rail--right">
        <span class="statement__rail-field"></span>
        <span class="statement__rail-field"></span>
      </div>
    </div>
  </div>

  <div class="statement__copy">
    <p class="statement__para statement__item"><span class="statement__lead">An assistant can fill a page in a minute.</span> Most of them hand it back sealed: columns you cannot nudge, type you cannot change and an issue you cannot take elsewhere. The moment you want it your way, you start over.</p>
    <p class="statement__para statement__item"><span class="statement__lead">Here, every suggestion lands as real layers.</span> Ask for a spread, then move each column by hand. The words stay yours, the grid stays editable, and the assistant only saves you the typing.</p>
  </div>
</section>

<style>
  .statement {
    padding: var(--section-space) var(--edge);
  }
  .statement__glimpse {
    -webkit-mask-image: linear-gradient(to bottom, var(--ink) 35%, transparent 96%);
    mask-image: linear-gradient(to bottom, var(--ink) 35%, transparent 96%);
  }
  .statement__frame {
    display: grid;
    grid-template-columns: minmax(0, 0.18fr) minmax(0, 1fr) minmax(0, 0.18fr);
    height: clamp(240px, 32vw, 420px);
    border: var(--rule) solid var(--line);
    border-bottom: 0;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    background: var(--chrome);
    overflow: hidden;
  }
  .statement__rail {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: var(--space-m);
    border-right: var(--rule) solid var(--line);
    background: var(--chrome-deep);
  }
  .statement__rail--right {
    border-right: 0;
    border-left: var(--rule) solid var(--line);
  }
  .statement__rail-row,
  .statement__rail-field {
    height: 8px;
    border-radius: 4px;
    background: var(--surface-up);
  }
  .statement__rail-row.is-on { background: var(--signal); }
  .statement__rail-field { height: 26px; border-radius: 6px; }
  .statement__sheet {
    margin: var(--space-l) clamp(12px, 4vw, 56px) 0;
    padding: clamp(16px, 3vw, 36px);
    border-radius: 4px 4px 0 0;
    background: var(--sheet);
    color: var(--ink-dark);
  }
  .statement__sheet-kicker {
    margin: 0;
    color: var(--sheet-ink);
    font-size: 10px;
  }
  .statement__sheet-head {
    margin: 4px 0 0;
    font-size: clamp(14px, 1.8vw, 22px);
    font-weight: 600;
    letter-spacing: -0.03em;
  }
  .statement__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: var(--space-m);
  }
  .statement__card {
    display: grid;
    gap: 6px;
    padding: 6px;
    border: var(--rule) solid var(--sheet-line);
    border-radius: 6px;
  }
  .statement__card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
  }
  .statement__card--note {
    align-content: end;
  }
  .statement__card-quote {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 8px;
    border-radius: 3px;
    background: var(--ink-dark);
    color: var(--sheet);
    font-family: var(--font-accent);
    font-size: clamp(11px, 1.4vw, 17px);
    font-style: italic;
    line-height: 1.1;
    text-align: center;
  }
  .statement__card-title {
    font-size: 10px;
    font-weight: 600;
  }
  .statement__card-line {
    width: 70%;
    height: 5px;
    border-radius: 3px;
    background: var(--sheet-line);
  }

  .statement__copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 6vw, 96px);
    margin-top: var(--space-m);
    position: relative;
  }
  .statement__para {
    margin: 0;
    max-width: 52ch;
    color: var(--ink-mute);
    font-size: var(--text-m);
    line-height: 1.6;
  }
  .statement__lead { color: var(--ink); }

  .statement__item {
    opacity: 0;
    translate: 0 16px;
    transition: opacity var(--slow) var(--ease), translate var(--slow) var(--ease);
    transition-delay: calc(var(--order, 0) * 80ms);
  }
  .statement.is-seen .statement__item { opacity: 1; translate: 0 0; }

  @media (max-width: 720px) {
    .statement__copy { grid-template-columns: 1fr; margin-top: 0; }
    .statement__frame { grid-template-columns: minmax(0, 1fr); }
    .statement__rail { display: none; }
    .statement__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .statement__card--note { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .statement__item { opacity: 1; translate: none; transition: none; }
  }
</style>

<script>
  (() => {
    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (!entry.isIntersecting) continue;
        entry.target.classList.add('is-seen');
        seen.unobserve(entry.target);
      }
    }, { threshold: 0.15 });
    for (const root of document.querySelectorAll('.statement')) {
      root.querySelectorAll('.statement__item').forEach((item, order) => item.style.setProperty('--order', order));
      seen.observe(root);
    }
  })();
</script>

Similar components

Matted diff feature

Matted diff feature

Centred statement

Centred statement

Night Room Statement

Night Room Statement

Tilting statement

Tilting statement

Black half, photo half

Black half, photo half

Statement

Statement

Filling statement

Filling statement

Typed statement

Typed statement