kitbash Sign in Connect agent
Components

Dispatches

An inverse (white) section with large framed cards set alternately right and left: an inset archive photograph printed as a night duotone (deep blue shadows, horizon glow lights), a small kind label hanging before a capitals title, two lines of copy and an underlined link.

Part of the style

Night Chart Console

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --night: #e8f4e5;
  --paper: #07150a;
  --paper-dim: rgba(7, 21, 10, 0.6);
  --paper-faint: rgba(7, 21, 10, 0.36);
  --night-dim: rgba(232, 244, 229, 0.6);
  --night-faint: rgba(232, 244, 229, 0.4);
  --smoke: #98a495;
  --fog: #0d1c11;
  --wordmark-shade: #213024;
  --map-ghost: #435246;
  --retro-face: #2b392d;
  --retro-chip: #0f1e13;
  --retro-edge: #627265;
  --scene-sky: #6d926a;
  --scene-sea: #6e846c;
  --retro-bar: #468f43;
  --retro-bar-end: #aae5a6;
  --map-line: #c1efbd;
  --scene-glow: #4a7353;
  --map-live: #4b6c52;
  --scene-lamp: #1a793c;
  --scene-amber: #50744b;
}
</style>

<section class="dispatch">
  <h2 class="dispatch__label">The latest</h2>

  <article class="dispatch__card">
    <a class="dispatch__link" href="#">
      <span class="dispatch__picture">
        <img class="dispatch__scene" src="assets/steam-tug.jpg" alt="" width="1024" height="816" style="--focus: 50% 52%">
      </span>
      <h3 class="dispatch__title">
        <span class="dispatch__kind">Press</span>
        <span class="dispatch__name">Harbour Gazette: the boat that only talks after dark</span>
      </h3>
      <p class="dispatch__copy">"You tune in for the shipping news and stay for forty minutes of rain on a tin roof," says one listener from the hill above the harbour.</p>
      <span class="dispatch__more">Read article</span>
    </a>
  </article>

  <article class="dispatch__card dispatch__card--left">
    <a class="dispatch__link" href="#">
      <span class="dispatch__picture">
        <img class="dispatch__scene" src="assets/radio-operator.jpg" alt="" width="1024" height="828" style="--focus: 50% 40%; --crop: 1.14">
      </span>
      <h3 class="dispatch__title">
        <span class="dispatch__kind">Log</span>
        <span class="dispatch__name">Night 1,300: what we learned keeping one signal alive</span>
      </h3>
      <p class="dispatch__copy">A blown fuse, two storms and a gull in the wheelhouse. Notes from the people who take the desk when everybody else has gone to bed.</p>
      <span class="dispatch__more">Read the log</span>
    </a>
  </article>
</section>

<style>
  /* An inverse section: the same frames and type, black on white. */
  .dispatch {
    display: grid;
    gap: var(--section-space);
    padding: var(--space-xl) var(--gutter) var(--section-space);
    background: var(--paper);
    color: var(--night);
  }
  .dispatch__label {
    margin: 0 0 calc(var(--space-xl) - var(--section-space));
    font-size: var(--text-m);
    font-weight: 400;
    text-transform: uppercase;
  }

  .dispatch__card {
    width: min(100%, max(62.5%, 30rem));
    margin-left: auto;
    border: var(--frame) solid var(--night);
  }
  .dispatch__card--left {
    margin-left: calc(100% / 12);
    margin-right: auto;
  }
  .dispatch__link {
    display: grid;
    justify-items: start;
    gap: var(--space-xs);
    padding: var(--space-m);
    color: inherit;
    text-decoration: none;
  }

  /* Archive photographs printed as a night duotone: shadows in deep sea blue, lights in horizon glow. */
  .dispatch__picture {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 640 / 368;
    margin-bottom: var(--space-xs);
    overflow: hidden;
    background: var(--scene-glow);
    isolation: isolate;
  }
  .dispatch__picture::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--scene-sky), var(--scene-sea));
    mix-blend-mode: screen;
    pointer-events: none;
  }
  .dispatch__scene {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
    filter: grayscale(1) contrast(1.5) brightness(0.74);
    mix-blend-mode: multiply;
    scale: var(--crop, 1.06);
    transition: scale var(--time) ease-out;
  }
  .dispatch__link:hover .dispatch__scene,
  .dispatch__link:focus-visible .dispatch__scene {
    scale: calc(var(--crop, 1.06) * var(--zoom));
  }

  .dispatch__title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 0.75rem;
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
  }
  .dispatch__kind {
    color: var(--night-dim);
    font-size: var(--text-s);
    letter-spacing: 0.08em;
  }
  .dispatch__name {
    font-size: var(--text-l);
    letter-spacing: var(--tracking-tight);
    line-height: 1.05;
    text-wrap: balance;
  }
  .dispatch__copy {
    max-width: 52rem;
    margin: var(--space-xs) 0 0;
  }
  .dispatch__more {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    margin-bottom: calc(var(--space-xs) * -1);
    text-decoration: underline var(--frame) currentColor;
    text-transform: uppercase;
    text-underline-offset: 0.4em;
    transition: text-decoration-color var(--time-fast) var(--ease-fast);
  }
  .dispatch__link:hover .dispatch__more,
  .dispatch__link:focus-visible .dispatch__more {
    text-decoration-color: transparent;
  }
  .dispatch__link:focus-visible {
    outline: var(--frame) solid var(--night);
    outline-offset: 4px;
  }

  @media (max-width: 48rem) {
    .dispatch__card--left {
      margin-left: 0;
    }
    .dispatch__title {
      grid-template-columns: minmax(0, 1fr);
      gap: 0.25rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .dispatch__scene,
    .dispatch__more {
      transition-duration: 0s;
    }
    .dispatch__link:hover .dispatch__scene,
    .dispatch__link:focus-visible .dispatch__scene {
      scale: 1;
    }
  }
</style>

Similar components

Work cards

Work cards

Colour specimen

Colour specimen

Three movements

Three movements

Stepped service cards

Stepped service cards

Specimen cards

Specimen cards

Feature cards

Feature cards

Process cards on a string

Process cards on a string

Selected work cards

Selected work cards