kitbash Sign in Connect agent
Components

Black half, photo half

A solid black half with a centred eyebrow, heading, copy and link beside a full-height photograph.

Part of the style

Tall Caps Showroom

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #c5c4c9;
  --ink-soft: rgba(197, 196, 201, 0.65);
  --paper: #030303;
  --paper-soft: rgba(3, 3, 3, 0.65);
  --tile: #060606;
  --rule: rgba(197, 196, 201, 0.18);
  --rule-dark: rgba(3, 3, 3, 0.28);
  --scrim: rgba(197, 196, 201, 0.32);
}
</style>

<section class="heritage">
  <div class="heritage__panel">
    <p class="heritage__eyebrow">Dealers since 1908</p>
    <h2 class="heritage__title">Four rooms, one long family</h2>
    <p class="heritage__copy">Varrow House began as a single cabinet of borrowed chairs above a bookbinder. Three generations later it fills four rooms with furniture, carpets and odd beautiful things, each one chosen for the house it will go to next.</p>
    <a class="heritage__link" href="#">Read the house journal</a>
  </div>
  <figure class="heritage__figure">
    <img class="heritage__picture" src="assets/dining-room.jpg" alt="Formal dining room with a long table, pale walls and tall windows" width="1200" height="820" loading="lazy">
  </figure>
</section>

<style>
  .heritage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: clamp(28rem, 48vw, 46rem);
    background: var(--ink);
    color: var(--paper);
  }
  .heritage__panel {
    display: grid;
    align-content: center;
    justify-items: center;
    padding: var(--section-space) clamp(1.5rem, 7vw, 7rem);
    text-align: center;
  }
  .heritage__eyebrow {
    margin: 0 0 var(--space-s);
    font-family: var(--font-label);
    font-size: var(--label-xs);
    font-weight: 500;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
  }
  .heritage__title {
    margin: 0 0 var(--space-m);
    font-family: var(--font-display);
    font-size: var(--display-l);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: var(--track-display);
    text-transform: uppercase;
    text-wrap: balance;
  }
  .heritage__copy {
    max-width: 30rem;
    margin: 0 0 var(--space-l);
    color: var(--paper-soft);
    font-family: var(--font-body);
    font-size: var(--text-m);
    line-height: var(--leading-body);
  }
  .heritage__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
    font-family: var(--font-label);
    font-size: var(--label-xs);
    font-weight: 500;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 0.75rem) / 100% var(--rule-thin);
    transition: background-size var(--underline) var(--ease-io);
  }
  .heritage__link:hover,
  .heritage__link:focus-visible {
    background-size: 0 var(--rule-thin);
    background-position-x: 100%;
  }
  .heritage__link:focus-visible {
    outline: var(--rule-thin) solid var(--paper);
    outline-offset: 4px;
  }
  .heritage__figure {
    position: relative;
    margin: 0;
    overflow: hidden;
  }
  .heritage__picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 50%;
  }
  @media (max-width: 48rem) {
    .heritage {
      grid-template-columns: 1fr;
    }
    .heritage__figure {
      aspect-ratio: 4 / 3;
    }
  }
</style>

Similar components

Night Room Statement

Night Room Statement

Tilting statement

Tilting statement

Matted diff feature

Matted diff feature

Centred statement

Centred statement

Window glimpse and statement

Window glimpse and statement

Statement

Statement

Loose statement

Loose statement

Profile

Profile