kitbash Sign in Connect agent
Components

Dark work frames

Near-black section of case cards: interface windows on tinted fields, coral client, statement, figure and a white pill.

Part of the style

Coral Particle Halo

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

Preview

Code
<section class="work">
  <header class="work__head">
    <h2 class="work__title"><span class="work__label">Projects</span> From first sketch to tools people open every day.</h2>
  </header>

  <div class="work__grid">
    <article class="work__card" style="--tint: var(--tint-lilac)">
      <a class="work__frame" href="#" aria-label="Glasshouse bookings case study">
        <div class="work__window" aria-hidden="true">
          <div class="work__window-bar"><i></i><i></i><i></i><span class="work__window-field">Glasshouse slots, Saturday</span></div>
          <div class="work__window-body">
            <img class="work__photo" src="assets/greenhouse.jpg" alt="Engraving of a palm house path with visitors" width="187" height="300" loading="lazy">
            <div class="work__ui">
              <p class="work__ui-title">Pick a time</p>
              <div class="work__slots">
                <span class="work__slot">10:00</span><span class="work__slot is-picked">10:30</span><span class="work__slot">11:00</span><span class="work__slot">11:30</span>
              </div>
              <p class="work__ui-row"><span>Palm house</span><span>2 tickets</span></p>
              <p class="work__ui-row"><span>Fern walk</span><span>sold out</span></p>
              <span class="work__ui-button">Book 2 tickets</span>
            </div>
          </div>
        </div>
      </a>
      <p class="work__client">Halden Botanic Garden</p>
      <h3 class="work__statement">Timed tickets that ended the Saturday queue.</h3>
      <p class="work__text">Visitors waited an hour at the gate on sunny weekends. Now they pick a half-hour slot on the way, and the glasshouses never pass their limit.</p>
      <p class="work__figure">41% more weekend visits, no queue at the gate since April.</p>
      <a class="work__button" href="#">Read the case</a>
    </article>

    <article class="work__card" style="--tint: var(--tint-mint)">
      <a class="work__frame" href="#" aria-label="Flower show guide case study">
        <div class="work__window" aria-hidden="true">
          <div class="work__window-bar"><i></i><i></i><i></i><span class="work__window-field">Show guide, hall B</span></div>
          <div class="work__window-body">
            <div class="work__ui">
              <p class="work__ui-title">Judges' notes</p>
              <p class="work__ui-check is-done">Colour held after two days</p>
              <p class="work__ui-check is-done">Stems cut to one height</p>
              <p class="work__ui-check">Label names the grower</p>
              <p class="work__ui-check">Vessel suits the class</p>
              <span class="work__ui-button">Save score</span>
            </div>
            <img class="work__photo" src="assets/chrysanthemums.jpg" alt="Painting of chrysanthemums in a vase" width="360" height="300" loading="lazy">
          </div>
        </div>
      </a>
      <p class="work__client">Marlow Flower Society</p>
      <h3 class="work__statement">A show guide the judges carry instead of clipboards.</h3>
      <p class="work__text">Six hundred entries, eleven classes and one tired paper form. The guide keeps scores, photos and notes together and posts the results by tea time.</p>
      <p class="work__figure">Results out in 40 minutes instead of two days.</p>
      <a class="work__button" href="#">Read the case</a>
    </article>
  </div>
</section>

<style>
  .work {
    padding: var(--section-space) var(--edge);
    background: var(--night);
    color: var(--night-ink);
  }
  .work__title {
    max-width: 22em;
    margin: 0 0 var(--space-xl);
    font-family: var(--font-display);
    font-size: var(--display-m);
    font-weight: var(--weight);
    line-height: 1.05;
    letter-spacing: var(--track-tight);
  }
  .work__label {
    display: block;
    color: var(--coral);
  }
  .work__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl) var(--gap);
  }
  .work__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .work__frame {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 11;
    margin-bottom: var(--space-l);
    padding: 7% 8% 0;
    overflow: hidden;
    border-radius: var(--radius-l);
    background: var(--tint);
    color: var(--ink);
    text-decoration: none;
  }
  .work__frame:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
  }
  .work__window {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-m) var(--radius-m) 0 0;
    background: var(--paper);
    box-shadow: var(--shadow-window);
    color: var(--ink);
    transform-origin: 50% 100%;
    transition: scale var(--time) var(--ease-out);
  }
  .work__frame:hover .work__window,
  .work__frame:focus-visible .work__window {
    scale: 1.03;
  }
  .work__window-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    border-bottom: var(--hair) solid var(--line);
  }
  .work__window-bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
  }
  .work__window-field {
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: var(--pill);
    background: var(--mist);
    color: var(--ink-mute);
    font-size: var(--text-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .work__window-body {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 14px;
    height: 100%;
    padding: 14px;
  }
  .work__photo {
    width: 100%;
    height: calc(100% - 52px);
    min-height: 0;
    border-radius: var(--radius-s);
    object-fit: cover;
  }
  .work__ui {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    font-size: var(--text-xs);
  }
  .work__ui p {
    margin: 0;
  }
  .work__ui-title {
    font-size: var(--text-m);
    letter-spacing: var(--track-tight);
  }
  .work__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .work__slot {
    padding: 3px 8px;
    border-radius: var(--pill);
    box-shadow: inset 0 0 0 var(--hair) var(--line);
  }
  .work__slot.is-picked {
    background: var(--coral);
    box-shadow: none;
    color: var(--white);
  }
  .work__ui-row,
  .work__ui-check {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-s);
    background: var(--mist);
    color: var(--ink-soft);
  }
  .work__ui-check {
    justify-content: flex-start;
  }
  .work__ui-check::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 2px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 var(--hair) var(--ink-mute);
  }
  .work__ui-check.is-done::before {
    background: var(--coral);
    box-shadow: none;
  }
  .work__ui-button {
    justify-self: start;
    padding: 5px 12px;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--white);
  }
  .work__client {
    margin: 0 0 var(--space-s);
    color: var(--coral);
    font-size: var(--text-xl);
    letter-spacing: var(--track);
  }
  .work__statement {
    margin: 0 0 var(--space-m);
    font-size: var(--display-s);
    font-weight: var(--weight);
    line-height: 1.2;
    letter-spacing: var(--track-tight);
    text-wrap: balance;
  }
  .work__text {
    max-width: 34em;
    margin: 0 0 var(--space-l);
    color: var(--night-mute);
    font-size: var(--text-l);
    line-height: 1.4;
  }
  .work__figure {
    align-self: stretch;
    margin: 0 0 var(--space-l);
    padding-top: var(--space-m);
    border-top: var(--hair) solid var(--night-line);
    font-size: var(--text-l);
    line-height: 1.4;
  }
  .work__button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: auto;
    padding: 0 22px;
    border-radius: var(--pill);
    background: var(--white);
    color: var(--ink);
    font-size: var(--text-m);
    text-decoration: none;
    transition: background var(--quick) var(--ease-out), color var(--quick) var(--ease-out);
  }
  .work__button:hover,
  .work__button:focus-visible {
    background: var(--coral);
    color: var(--white);
    outline: none;
  }

  @media (max-width: 48rem) {
    .work__grid {
      grid-template-columns: 1fr;
    }
    .work__frame {
      aspect-ratio: 4 / 3.4;
    }
  }
  @media (max-width: 30rem) {
    .work__window-body {
      grid-template-columns: 1fr;
    }
    .work__photo {
      display: none;
    }
  }
</style>

Similar components

Work rail

Work rail

Staggered work grid

Staggered work grid

Reel window gallery

Reel window gallery

Drifting card shelf

Drifting card shelf

Mascot signboard

Mascot signboard

Floating card bento

Floating card bento

Tinted plates

Tinted plates

Floating card wall

Floating card wall