kitbash Sign in Connect agent
Components

Collection banner

A wide dark photograph with a serif title, one line and a white pill button sitting on a soft scrim.

Part of the style

Kraft Panel Split

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #fef1f6;
  --ink-soft: #5283fd;
  --paper: #0d02fe;
  --paper-warm: #0c1aff;
  --field: #123cf0;
  --stone: #2558f5;
  --kraft-deep: #ffb4d3;
  --veil: rgba(254, 241, 246, 0.5);
  --veil-soft: rgba(254, 241, 246, 0.2);
  --paper-glass: rgba(13, 2, 254, 0.52);
  --night: #2c1921;
  --night-ink: #fdd2e3;
  --line: rgba(254, 241, 246, 0.08);
  --kraft: #c63282;
}
</style>

<section class="banner">
  <a class="banner__card" href="#">
    <img class="banner__img" src="assets/shaker-room.jpg" alt="A plain wooden room with pegs along the wall and a doorway" width="1200" height="559">
    <span class="banner__body">
      <span class="banner__kicker">Collection · 24 rooms</span>
      <span class="banner__title">Plain wood and<br>good light</span>
      <span class="banner__line">Workshops, schoolrooms and meeting houses you can still sit in.</span>
      <span class="banner__button">See the collection</span>
    </span>
  </a>
</section>

<style>
  .banner {
    padding: var(--section-space) var(--edge);
  }
  .banner__card {
    position: relative;
    display: grid;
    min-height: clamp(360px, 38vw, 520px);
    overflow: hidden;
    border-radius: var(--radius-s);
    background: var(--night);
    color: var(--paper);
    text-decoration: none;
  }
  .banner__img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82) saturate(0.85);
    transition: transform 900ms var(--ease);
  }
  .banner__card:hover .banner__img { transform: scale(1.03); }
  .banner__card::after {
    content: "";
    grid-area: 1 / 1;
    background: linear-gradient(to right, var(--veil), transparent 65%);
  }
  .banner__body {
    grid-area: 1 / 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: var(--space-s);
    padding: clamp(20px, 3vw, 40px);
  }
  .banner__kicker {
    color: var(--paper-glass);
    font-size: var(--text-xs);
  }
  .banner__title {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-xl), 3.4vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.01em;
  }
  .banner__line {
    max-width: 26em;
    font-size: var(--text-s);
    line-height: 1.25;
  }
  .banner__button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: var(--space-s);
    padding: 0 18px;
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink);
    font-size: var(--text-s);
    font-weight: 500;
    transition: background var(--quick) var(--ease);
  }
  .banner__card:hover .banner__button { background: var(--field); }
  .banner__card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
</style>

Similar components

Dock teaser

Dock teaser

Cut-out shape feature

Cut-out shape feature

Floating card feature

Floating card feature

Drop-in note

Drop-in note

Closing ask and footer

Closing ask and footer

Sticker follow line

Sticker follow line

Appeal

Appeal

Studio note

Studio note