kitbash Sign in Connect agent
Components

Centred statement

A small grey kicker over short centred serif paragraphs and a small film still with a round play mark, all fading up on view.

Part of the style

Inscribed Glyph Night

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #fff2f1;
  --paper: #334493;
  --ink-mid: rgba(255, 242, 241, 0.6);
  --ink-faint: rgba(255, 242, 241, 0.5);
  --rule-colour: rgba(255, 242, 241, 0.18);
  --veil: rgba(51, 68, 147, 0.92);
  --shade: rgba(51, 68, 147, 0.45);
  --plate-light: #f3c9c7;
  --plate: #e0aaa8;
  --plate-deep: #8495cc;
  --stone-light: rgba(255, 242, 241, 0.55);
  --stone-dark: rgba(51, 68, 147, 0.7);
  --stone-fill: rgba(94, 113, 179, 0.55);
}
</style>

<section class="statement">
  <p class="statement__kicker statement__item">A new typeface by Hallmoor Letterworks</p>
  <div class="statement__body">
    <p class="statement__item">Corvid was cut, letter by letter, for the shoulders of church bells. To mark the last version we poured its story into four bells, one for each foundry and decade where it changed.</p>
    <p class="statement__item">Corvid now reads in Latin and Cyrillic, with <em>italics</em> for every weight.</p>
    <p class="statement__item">It is ringing.</p>
  </div>
  <button class="statement__film statement__item" type="button" aria-label="Watch the film, one minute twenty">
    <img class="statement__still" src="assets/toning-bell.jpg" alt="A painting of a bellfounder tuning a bell while a fiddler plays" width="800" height="1074">
    <span class="statement__play" aria-hidden="true"></span>
    <span class="statement__film-label">Watch the film <span class="statement__time">(1:20)</span></span>
  </button>
</section>

<style>
  .statement {
    display: grid;
    justify-items: center;
    gap: var(--space-l);
    padding: var(--section-space) var(--edge);
    background: var(--paper);
    color: var(--ink);
    text-align: center;
  }
  .statement__kicker {
    margin: 0;
    color: var(--ink-faint);
    font-size: var(--text-s);
  }
  .statement__body {
    display: grid;
    gap: 0.6em;
    max-width: 21em;
    font-family: var(--font-display);
    font-size: var(--display-s);
    font-weight: 400;
    line-height: 1.2;
    text-wrap: balance;
  }
  .statement__body p {
    margin: 0;
  }
  .statement__body em {
    font-style: italic;
  }
  .statement__film {
    position: relative;
    display: block;
    width: min(320px, 70vw);
    aspect-ratio: 16 / 10;
    margin-top: var(--space-l);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-l);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
  }
  .statement__still {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 62%;
    filter: grayscale(1) contrast(1.15) brightness(0.75);
    transform: scale(1.02);
    transition: transform var(--rise) var(--ease), filter var(--quick) var(--ease);
  }
  .statement__film:hover .statement__still,
  .statement__film:focus-visible .statement__still {
    transform: scale(1.08);
    filter: grayscale(1) contrast(1.15) brightness(0.95);
  }
  .statement__film:focus-visible {
    outline: var(--rule) solid var(--ink);
    outline-offset: 4px;
  }
  .statement__play {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 48px;
    height: 48px;
    border: var(--rule) solid var(--ink);
    border-radius: var(--radius-pill);
    transform: translate(-50%, -50%);
  }
  .statement__play::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 15px;
    border-left: 13px solid var(--ink);
    border-block: 9px solid transparent;
  }
  .statement__film-label {
    position: absolute;
    left: var(--space-m);
    bottom: var(--space-s);
    font-size: var(--text-s);
  }
  .statement__time {
    color: var(--ink-mid);
  }

  .statement__item {
    opacity: 0;
    translate: 0 16px;
    transition: opacity var(--fade) var(--ease), translate var(--rise) var(--ease);
    transition-delay: calc(var(--order, 0) * 120ms);
  }
  .statement.is-seen .statement__item {
    opacity: 1;
    translate: 0 0;
  }
  @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

Window glimpse and statement

Window glimpse and statement

Tilting statement

Tilting statement

Statement

Statement

Night Room Statement

Night Room Statement

Black half, photo half

Black half, photo half

Drifting statement

Drifting statement

Quote and three rails

Quote and three rails