kitbash Sign in Connect agent
Components

Project slice

One project: two columns of black-matted pictures and a drawn tablet beside a white column with the underlined name, copy, services and year, closed by a thick rule.

Part of the style

Orange Caps on Putty

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #030204;
  --putty: #bec3c3;
  --sheet: #dce1e1;
  --ink-soft: #575d5d;
  --mat-soft: #454247;
  --on-ink: #dce1e1;
  --flare: #897264;
  --screen-rust: #332a24;
  --screen-green: #897264;
}
</style>

<section class="slice">
  <div class="slice__grid">
    <figure class="slice__tile slice__tile--device">
      <div class="slice__device">
        <div class="slice__screen">
          <img class="slice__thumb" src="assets/railing.jpg" alt="A cast iron balcony railing panel with scrolling flowers" width="800" height="593" />
          <ol class="slice__contents">
            <li>Foreword</li>
            <li>The Survey</li>
            <li>Rooms Above the Street</li>
            <li>Railings &amp; Thresholds</li>
            <li>Afterword</li>
          </ol>
        </div>
      </div>
    </figure>

    <figure class="slice__tile slice__tile--tall">
      <img class="slice__photo" src="assets/church.jpg" alt="A painted church interior with white columns and a wooden choir screen" width="800" height="674" />
    </figure>

    <figure class="slice__tile slice__tile--card">
      <div class="slice__card">
        <p class="slice__card-title">Harbour Rooms<br />A Survey of Old Lofts</p>
        <img class="slice__card-photo" src="assets/vase.jpg" alt="A pale green celadon vase on a grey ground" width="592" height="800" />
        <p class="slice__card-foot">Vol. 1 — Port Calder Civic Trust</p>
      </div>
    </figure>

    <article class="slice__text">
      <div class="slice__inner">
      <h2 class="slice__name"><a class="slice__link" href="#">Harbour Rooms</a></h2>
      <p class="slice__copy">Harbour Rooms is a survey of the old warehouse lofts along the quay, made for a civic trust that wants them lived in rather than knocked down.</p>
      <p class="slice__copy">A year of measuring is a heavy thing to hand to a council. The site reads it as one long walk, room by room, the way you would cross a courtyard.</p>
      <dl class="slice__facts">
        <dt class="slice__label">Services</dt>
        <dd class="slice__services">Digital design,<br />Digital development,<br />Identity design</dd>
        <dt class="slice__label">Year</dt>
        <dd class="slice__year">2025—</dd>
      </dl>
      </div>
    </article>
  </div>
  <hr class="slice__rule" />
</section>

<style>
  .slice {
    padding: var(--edge) var(--edge) 0;
  }
  .slice__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--text-column);
    grid-template-rows: auto 1fr;
    gap: var(--gap);
    align-items: start;
  }
  .slice__tile {
    margin: 0;
    background: var(--ink);
    overflow: hidden;
    opacity: 0;
    translate: 0 16px;
    transition: opacity var(--slow) var(--ease), translate var(--slow) var(--ease);
    transition-delay: calc(var(--order, 0) * 80ms);
  }
  .slice.is-seen .slice__tile {
    opacity: 1;
    translate: 0 0;
  }
  .slice__tile--device {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1.41;
    display: grid;
    place-items: center;
  }
  .slice__tile--tall {
    grid-column: 2;
    grid-row: 1 / span 2;
    aspect-ratio: 0.75;
  }
  .slice__tile--card {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 1.41;
    display: grid;
    place-items: center;
    background: var(--mat-soft);
  }

  .slice__device {
    width: 82%;
    aspect-ratio: 1.4;
    padding: 3.5%;
    border: 2px solid var(--ink-soft);
    border-radius: var(--radius-device);
    background: var(--ink);
  }
  .slice__screen {
    position: relative;
    height: 100%;
    border-radius: var(--radius-screen);
    background: var(--sheet);
    overflow: hidden;
  }
  .slice__thumb {
    position: absolute;
    left: 4%;
    bottom: 6%;
    width: 30%;
    height: 44%;
    object-fit: cover;
    filter: grayscale(0.3);
  }
  .slice__contents {
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 80%;
    margin: 0;
    padding: 6% 4%;
    display: grid;
    align-content: start;
    background: var(--screen-green);
    color: var(--ink);
    font-size: clamp(10px, 1.45vw, 21px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    list-style: none;
    text-align: center;
  }

  .slice__photo,
  .slice__card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .slice__photo {
    filter: saturate(0.85) contrast(1.05);
  }
  .slice__card {
    width: 62%;
    aspect-ratio: 1.4;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    grid-template-rows: 1fr auto;
    gap: 4%;
    padding: 4%;
    background: var(--sheet);
  }
  .slice__card-title {
    margin: 0;
    font-size: clamp(8px, 0.85vw, 12px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
  }
  .slice__card-photo {
    grid-row: 1 / span 2;
    grid-column: 2;
    min-height: 0;
  }
  .slice__card-foot {
    margin: 0;
    font-size: clamp(6px, 0.6vw, 9px);
  }

  .slice__text {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: stretch;
    padding: var(--space-m) var(--edge);
    margin: calc(var(--edge) * -1) calc(var(--edge) * -1) 0 0;
    background: var(--sheet);
  }
  .slice__inner {
    position: sticky;
    top: calc(var(--bar-height) + var(--space-m));
  }
  .slice__name {
    margin: 0 0 var(--space-m);
    font-size: var(--text-m);
    font-weight: 700;
    line-height: var(--leading);
    text-transform: uppercase;
  }
  .slice__link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: currentColor;
    transition: color var(--quick) var(--ease), text-decoration-color var(--quick) var(--ease);
  }
  .slice__link:hover {
    color: var(--flare);
  }
  .slice__link:focus-visible {
    outline: 2px solid var(--flare);
    outline-offset: 2px;
  }
  .slice__copy {
    margin: 0 0 var(--space-m);
  }
  .slice__facts {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    column-gap: var(--gap);
    margin: 0;
  }
  .slice__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .slice__services,
  .slice__year {
    margin: 0;
  }
  .slice__rule {
    height: var(--rule-thick);
    margin: var(--space-xl) 0 0;
    border: 0;
    background: var(--ink);
  }

  @media (max-width: 56rem) {
    .slice__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .slice__text {
      grid-column: 1 / -1;
      grid-row: 3;
      margin: 0;
      background: none;
      padding: var(--space-m) 0 0;
    }
    .slice__inner {
      position: static;
    }
    .slice__copy {
      max-width: 36rem;
    }
    .slice__facts {
      max-width: 24rem;
    }
  }
  @media (max-width: 40rem) {
    .slice__grid {
      grid-template-columns: 1fr;
      grid-template-rows: none;
    }
    .slice__tile--device,
    .slice__tile--tall,
    .slice__tile--card,
    .slice__text {
      grid-column: 1;
      grid-row: auto;
    }
    .slice__tile--tall {
      aspect-ratio: 0.8;
    }
    .slice__contents {
      font-size: clamp(11px, 3.6vw, 18px);
    }
    .slice__card-title {
      font-size: clamp(8px, 2.4vw, 12px);
    }
    .slice__card-foot {
      font-size: clamp(6px, 1.8vw, 9px);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .slice__tile {
      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('.slice')) {
    root.querySelectorAll('.slice__tile').forEach((tile, order) => tile.style.setProperty('--order', order));
    seen.observe(root);
  }
})();
</script>

Similar components

Edge-to-edge specimen

Edge-to-edge specimen

Project windows

Project windows

Numbered tile index

Numbered tile index

Inset project tiles

Inset project tiles

Floating card spotlight

Floating card spotlight

Scattered pictures

Scattered pictures

Staggered work grid

Staggered work grid

Black work cards with device frames

Black work cards with device frames