kitbash Sign in Connect agent
Components

Red flood split

An oxblood initial on black, a wide picture and a flat red panel with a light caption stack.

Part of the style

Blackletter Credit Stack

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

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@125,900&family=Inter+Tight:wght@400;500&family=Newsreader:opsz,wght@6..72,400&family=Pinyon+Script&display=swap");
:root {
  --font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mark: "Newsreader", Georgia, serif;
  --font-small: "Newsreader", Georgia, serif;
}
</style>

<section class="flood-split">
  <span class="flood-split__mark" aria-hidden="true">O</span>
  <div class="flood-split__body">
    <figure class="flood-split__frame">
      <img class="flood-split__picture" src="assets/stormy-landscape.jpg" alt="Painted meadow at dusk under a red-streaked sky, one small figure walking" width="1024" height="680">
    </figure>
    <div class="flood-split__panel">
      <a class="flood-split__caption" href="#">
        <span class="flood-split__client">LINDQVIST AUCTIONS</span>
        <span class="flood-split__maker">Signe Halvorsen</span>
      </a>
    </div>
  </div>
</section>

<style>
  .flood-split {
    background: var(--night);
    color: var(--night-ink);
  }
  .flood-split__mark {
    display: block;
    padding-left: calc(var(--edge) * 0.4);
    font-family: var(--font-mark);
    font-size: var(--mark-small);
    line-height: 0.9;
    letter-spacing: 0;
    color: var(--oxblood);
  }
  .flood-split__body {
    display: grid;
    grid-template-columns: 4fr 1fr;
    min-height: clamp(400px, 50vw, 740px);
  }
  .flood-split__frame {
    margin: 0;
    overflow: hidden;
  }
  .flood-split__picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 50%;
    transition: transform 400ms var(--ease-out);
  }
  .flood-split__body:hover .flood-split__picture {
    transform: scale(1.02);
  }
  .flood-split__panel {
    display: grid;
    place-items: center;
    padding: var(--space-m) var(--edge);
    background: var(--oxblood);
  }
  .flood-split__caption {
    display: grid;
    width: min(100%, var(--caption-w));
    color: var(--night-ink);
    text-align: center;
    text-decoration: none;
  }
  .flood-split__client,
  .flood-split__maker {
    display: block;
    padding: 9px var(--space-xs) 10px;
    line-height: 1.05;
  }
  .flood-split__maker {
    border-top: var(--hair) solid currentColor;
    transition: opacity var(--quick) var(--ease);
  }
  .flood-split__caption::after {
    content: "";
    height: 15px;
    border-top: var(--hair) solid currentColor;
    background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 7px);
  }
  .flood-split__caption:hover .flood-split__maker,
  .flood-split__caption:focus-visible .flood-split__maker {
    opacity: 0.6;
  }

  @media (max-width: 52rem) {
    .flood-split__body {
      grid-template-columns: 1fr;
      min-height: 0;
    }
    .flood-split__frame {
      aspect-ratio: 4 / 5;
    }
    .flood-split__panel {
      padding: var(--space-l) var(--edge);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .flood-split__picture { transition: none; }
  }
</style>

Similar components

Single print viewer

Single print viewer

Curling film ribbon

Curling film ribbon

Location reel

Location reel

Floating card spotlight

Floating card spotlight

Treated cover rail

Treated cover rail

Scattered letter case

Scattered letter case

Matted device wall

Matted device wall

Stagger

Stagger