kitbash Sign in Connect agent
Components

Floating card bento

A two-by-two grid of rounded photo tiles and dashed grid panels with white app cards bobbing over them, each captioned by an icon chip and a two-tone sentence.

Part of the style

Floating Card Showcase

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

Preview

Code
<section class="bento">
  <header class="bento__head">
    <h2 class="bento__title">Less waste every week, and on every trip.</h2>
    <p class="bento__lead">Tools for keeping a shared kitchen stocked and the costs fair, without a spreadsheet.</p>
  </header>

  <div class="bento__grid">
    <article class="bento__item">
      <div class="bento__tile bento__tile--grid">
        <svg class="bento__chart" viewBox="0 0 400 200" preserveAspectRatio="none" aria-hidden="true">
          <path d="M0 190 L70 150 L130 158 L190 112 L250 120 L300 78" fill="none" stroke="var(--ink-faint)" stroke-width="2" vector-effect="non-scaling-stroke"/>
        </svg>
        <span class="bento__marker">● 31%</span>
        <div class="bento__card bento__card--budget">
          <div class="bento__card-row"><b>Monthly groceries</b><span class="bento__soft-chip">Mar 1–31</span></div>
          <p class="bento__amount">€ 248,00 <span>/ € 800,00</span></p>
          <span class="bento__bar"><span></span></span>
          <p class="bento__fine">You have used <b>31%</b> of the budget, about €12 a day.</p>
        </div>
      </div>
      <h3 class="bento__label"><span class="bento__icon"><svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><circle cx="10" cy="10" r="7" fill="none" stroke="currentColor" stroke-width="2"/><path d="M10 3v7h7" fill="none" stroke="currentColor" stroke-width="2"/></svg></span>Budgets</h3>
      <p class="bento__text"><b>The kitchen keeps its own books.</b> Set a weekly or monthly limit for the shared shop and see how close you are before the till.</p>
    </article>

    <article class="bento__item">
      <div class="bento__tile bento__tile--photo">
        <img class="bento__pic" src="assets/basket-apples.jpg" alt="A basket of apples, a bottle and biscuits on a draped table" width="1200" height="960">
        <div class="bento__card bento__card--float">
          <span class="bento__round">
            <svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M7 4h6M10 4v3M5 9h10l-1 7H6z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/></svg>
          </span>
          <div><b>Apples, 2 kg</b><span>You paid € 5,40</span></div>
          <div class="bento__end"><span class="bento__lent">Shared <i></i></span><b>€ 2,70</b></div>
        </div>
      </div>
      <h3 class="bento__label"><span class="bento__icon"><svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><rect x="7" y="2" width="6" height="10" rx="3" fill="currentColor"/><path d="M4.5 10a5.5 5.5 0 0 0 11 0M10 15.5V18" fill="none" stroke="currentColor" stroke-width="2"/></svg></span>Voice add <span class="bento__badge">PLUS</span></h3>
      <p class="bento__text"><b>“Two kilos of apples, split with Teo.”</b> Done. The item is on the list and the cost is shared without typing.</p>
    </article>

    <article class="bento__item">
      <div class="bento__tile bento__tile--photo">
        <img class="bento__pic" src="assets/white-tablecloth.jpg" alt="A white cloth on a small table with bread and a glass" width="800" height="620">
        <div class="bento__card bento__card--float bento__card--stack">
          <span class="bento__round">
            <svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M3 7a10 10 0 0 1 14 0M6 10a6 6 0 0 1 8 0M3 3l14 14" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
          </span>
          <div><b>Bread & cheese</b><span>Saved offline</span></div>
          <div class="bento__end"><span class="bento__lent">Queued <i></i></span><b>€ 9,10</b></div>
        </div>
      </div>
      <h3 class="bento__label"><span class="bento__icon"><svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M3 8a10 10 0 0 1 14 0M6 11a6 6 0 0 1 8 0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="10" cy="15" r="1.6" fill="currentColor"/></svg></span>Works offline</h3>
      <p class="bento__text"><b>In the cellar, on the ferry, at the farm stall.</b> Add things with no signal and they sync when you are back.</p>
    </article>

    <article class="bento__item">
      <div class="bento__tile bento__tile--grid bento__tile--hatch">
        <div class="bento__card bento__card--float bento__card--centre">
          <img class="bento__thumb" src="assets/fruit-asparagus.jpg" alt="" width="44" height="44">
          <div><b>Veg box</b><span>Every week · 3 of 12</span></div>
          <span class="bento__date"><small>Thu</small>14</span>
        </div>
      </div>
      <h3 class="bento__label"><span class="bento__icon"><svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true"><path d="M4 10a6 6 0 0 1 10.5-4M16 10a6 6 0 0 1-10.5 4M14 2.5V6h-3.5M6 17.5V14h3.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></span>Weekly staples</h3>
      <p class="bento__text"><b>Milk on Mondays, the veg box on Thursdays.</b> Set repeats once and they land on the list on time.</p>
    </article>
  </div>
</section>

<style>
  .bento {
    padding: var(--section-space) var(--edge);
    background: var(--paper);
  }
  .bento__head {
    max-width: 30em;
    margin: 0 auto var(--space-xl);
    text-align: center;
  }
  .bento__title {
    margin: 0;
    font-size: var(--display-m);
    font-weight: var(--weight-medium);
    line-height: 1.1;
    letter-spacing: var(--track-tight);
    text-wrap: balance;
  }
  .bento__lead {
    margin: var(--space-m) auto 0;
    max-width: 26em;
    color: var(--ink-soft);
    font-size: var(--text-s);
    line-height: 1.4;
  }
  .bento__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl) var(--gap);
    max-width: var(--max);
    margin: 0 auto;
  }
  .bento__tile {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 472 / 330;
    border-radius: var(--radius-panel);
    background: var(--mist);
  }
  .bento__tile--grid {
    background-color: var(--mist);
    background-image:
      repeating-linear-gradient(90deg, var(--dash) 0 1px, transparent 1px 100%),
      repeating-linear-gradient(0deg, var(--dash) 0 1px, transparent 1px 100%);
    background-size: 25% 25%;
    background-position: -1px -1px;
  }
  .bento__tile--hatch::before {
    content: "";
    position: absolute;
    inset: 25% 25%;
    background: repeating-linear-gradient(135deg, var(--hair) 0 1px, transparent 1px 8px);
  }
  .bento__pic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .bento__chart {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64%;
    height: 50%;
  }
  .bento__marker {
    position: absolute;
    left: 58%;
    top: 30%;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    box-shadow: var(--shadow-card);
  }
  .bento__marker::first-letter {
    color: var(--accent);
  }
  .bento__card {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-card);
    background: var(--paper);
    box-shadow: var(--shadow-card);
    animation: bento-float var(--float-time) ease-in-out infinite;
  }
  .bento__item:nth-child(2) .bento__card { animation-delay: -1.5s; }
  .bento__item:nth-child(3) .bento__card { animation-delay: -3s; }
  .bento__item:nth-child(4) .bento__card { animation-delay: -4.5s; }
  @keyframes bento-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }
  .bento__card--budget {
    width: min(78%, 300px);
    margin-top: 12%;
    padding: 14px 16px;
  }
  .bento__card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-s);
  }
  .bento__card-row b {
    font-weight: var(--weight-semi);
  }
  .bento__soft-chip {
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: var(--mist);
    color: var(--ink-faint);
    font-size: 11px;
  }
  .bento__amount {
    margin: 10px 0 8px;
    font-size: var(--text-l);
    font-weight: var(--weight-semi);
  }
  .bento__amount span {
    color: var(--ink-faint);
    font-weight: var(--weight-medium);
  }
  .bento__bar {
    display: block;
    height: 3px;
    border-radius: var(--radius-pill);
    background: var(--stone);
  }
  .bento__bar span {
    display: block;
    width: 31%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
  }
  .bento__fine {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 11px;
  }
  .bento__fine b {
    color: var(--ink);
  }
  .bento__card--float {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    width: min(76%, 340px);
    padding: 12px 14px;
    align-self: start;
    margin-top: 12%;
    font-size: var(--text-xs);
  }
  .bento__card--float b {
    display: block;
    font-size: var(--text-m);
    font-weight: var(--weight-semi);
  }
  .bento__card--float span {
    color: var(--ink-soft);
  }
  .bento__card--stack {
    align-self: end;
    margin: 0 0 14%;
    box-shadow: var(--shadow-card), 0 8px 0 -4px rgba(255, 255, 255, 0.75), 0 16px 0 -8px rgba(255, 255, 255, 0.5);
  }
  .bento__card--centre {
    align-self: center;
    margin: 0;
  }
  .bento__round {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: var(--rule) solid var(--hair);
    border-radius: 50%;
    color: var(--ink-2) !important;
  }
  .bento__end {
    text-align: right;
  }
  .bento__lent i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 2px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
  }
  .bento__thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
  }
  .bento__date {
    display: grid;
    min-width: 44px;
    padding: 4px 8px;
    border-radius: 10px;
    background: var(--mist);
    color: var(--ink) !important;
    font-size: var(--text-l);
    font-weight: var(--weight-semi);
    text-align: center;
  }
  .bento__date small {
    color: var(--ink-faint);
    font-size: 10px;
    font-weight: var(--weight-medium);
  }
  .bento__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: var(--space-l) 0 var(--space-m);
    font-size: var(--text-l);
    font-weight: var(--weight-medium);
  }
  .bento__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-s);
    background: var(--ink);
    color: var(--on-ink);
  }
  .bento__badge {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--accent);
    color: var(--on-ink);
    font-size: 10px;
    font-weight: var(--weight-semi);
    letter-spacing: 0.04em;
  }
  .bento__text {
    margin: 0;
    color: var(--ink-faint);
    font-size: var(--text-l);
    line-height: 1.3;
  }
  .bento__text b {
    color: var(--ink);
    font-weight: var(--weight-medium);
  }

  @media (max-width: 44rem) {
    .bento__grid {
      grid-template-columns: 1fr;
    }
    .bento__tile {
      aspect-ratio: 4 / 3.4;
    }
    .bento__card--float {
      width: 86%;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .bento__card {
      animation: none;
    }
  }
</style>

Similar components

Cut-out tiles

Cut-out tiles

Rooms in light

Rooms in light

Centred case column

Centred case column

Case-study column

Case-study column

Use rail

Use rail

Room cards

Room cards

Drifting card shelf

Drifting card shelf

Photo cards with floating chips

Photo cards with floating chips