Bento features grid
A feature section laid out as a bento box, where every tile has its own small live animation.
import "./bento-features.css";
/**
* BentoFeatures
* A 4-column bento grid (stacks on small containers). Each tile pairs a short
* title + text with a tiny CSS-only visual: a speed meter, a pulsing map,
* a typing cursor, bars that grow, and a lock that clicks shut.
* Edit the text right in the JSX below.
*/
export function BentoFeatures() {
return (
<section className="gu-bento" aria-labelledby="gu-bento-title">
<div className="gu-bento__inner">
<h2 id="gu-bento-title" className="gu-bento__title">
Everything you need.
<br />
<span>Nothing you don't.</span>
</h2>
<div className="gu-bento__grid">
{/* Big tile: speed */}
<article className="gu-bento__tile gu-bento__tile--wide">
<div
className="gu-bento__visual gu-bento__speed"
aria-hidden="true"
>
<span className="gu-bento__speed-value">0.4s</span>
<span className="gu-bento__speed-bar" />
</div>
<h3>Loads before you blink</h3>
<p>
Static pages on a global edge network. Every visit feels instant.
</p>
</article>
{/* Map */}
<article className="gu-bento__tile">
<div className="gu-bento__visual gu-bento__map" aria-hidden="true">
{[
[14, 30],
[32, 62],
[52, 24],
[70, 55],
[86, 34],
].map(([x, y], i) => (
<span
key={i}
style={{ left: `${x}%`, top: `${y}%`, ["--i" as string]: i }}
/>
))}
</div>
<h3>Everywhere at once</h3>
<p>Served from 300+ cities.</p>
</article>
{/* Typing */}
<article className="gu-bento__tile">
<div className="gu-bento__visual gu-bento__type" aria-hidden="true">
<span>ship it</span>
</div>
<h3>Edit in plain text</h3>
<p>Change a word, publish in seconds.</p>
</article>
{/* Bars */}
<article className="gu-bento__tile">
<div className="gu-bento__visual gu-bento__bars" aria-hidden="true">
{[40, 65, 50, 85, 100].map((h, i) => (
<span
key={i}
style={{ ["--h" as string]: `${h}%`, ["--i" as string]: i }}
/>
))}
</div>
<h3>Growth you can see</h3>
<p>Simple charts, no setup.</p>
</article>
{/* Lock, wide */}
<article className="gu-bento__tile gu-bento__tile--wide gu-bento__tile--accent">
<div className="gu-bento__visual gu-bento__lock" aria-hidden="true">
<span className="gu-bento__lock-shackle" />
<span className="gu-bento__lock-body" />
</div>
<h3>Private by default</h3>
<p>
No trackers, no cookies, no surprises. Your visitors stay yours.
</p>
</article>
</div>
</div>
</section>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: Bento features grid
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A dark feature section laid out as a "bento box": a big two-line heading, then a grid of five tiles. Each tile has a small looping CSS-only visual on top, then a title and one line of text. One wide tile is solid orange.
## Layout and look
- Section: background #0e0e10, text #f3eee3, muted #aea89c, inner max-width 1100px, padding 72px 20px. container-type: inline-size.
- Heading: weight 900, clamp(2.2rem, 7cqi, 4.6rem), line-height 0.95, letter-spacing -0.045em; second line in the muted color.
- Grid: gap 12px; one column on small containers; at ≥720px four columns, with tiles 1 and 5 spanning two.
- Tile: 22px radius, 22px padding, 1px border rgba(243,238,227,0.08), background #18181b; 130px visual area, 22px gap, then h3 (19px) and muted paragraph (15px).
- Accent tile: background #ff5a1f, text #0e0e10, muted text 72% ink.
- Hover (mouse only): border turns rgba(255,90,31,0.5), tile lifts 4px.
## The five visuals (all CSS)
1. Speed: a huge "0.4s" (64px, weight 900) above an 8px bar that fills with a lime→orange gradient (#d7ff3a → #ff5a1f) over 2.8s, looping.
2. Map: a 12px dot-grid background with five orange dots; each sends out an expanding ring (scale 3.5, fading) every 2s, staggered 0.35s.
3. Typing: monospace "ship it" types out with steps(7) over 3.2s and a blinking 3px lime caret.
4. Bars: five bars (40/65/50/85/100% tall) grow from scaleY(0.1) to 1, staggered 80ms; the last bar is orange.
5. Lock (on the orange tile): an ink lock body with a shackle that drops shut with an overshoot every 2.4s.
## Accessibility
- Visuals are aria-hidden; tiles are <article> with <h3>. Section labelled by its heading.
- prefers-reduced-motion: all loops stop and show their finished state (full bar, full text, closed lock); no hover lift.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### BentoFeatures.tsx
```tsx
import "./bento-features.css";
/**
* BentoFeatures
* A 4-column bento grid (stacks on small containers). Each tile pairs a short
* title + text with a tiny CSS-only visual: a speed meter, a pulsing map,
* a typing cursor, bars that grow, and a lock that clicks shut.
* Edit the text right in the JSX below.
*/
export function BentoFeatures() {
return (
<section className="gu-bento" aria-labelledby="gu-bento-title">
<div className="gu-bento__inner">
<h2 id="gu-bento-title" className="gu-bento__title">
Everything you need.
<br />
<span>Nothing you don't.</span>
</h2>
<div className="gu-bento__grid">
{/* Big tile: speed */}
<article className="gu-bento__tile gu-bento__tile--wide">
<div
className="gu-bento__visual gu-bento__speed"
aria-hidden="true"
>
<span className="gu-bento__speed-value">0.4s</span>
<span className="gu-bento__speed-bar" />
</div>
<h3>Loads before you blink</h3>
<p>
Static pages on a global edge network. Every visit feels instant.
</p>
</article>
{/* Map */}
<article className="gu-bento__tile">
<div className="gu-bento__visual gu-bento__map" aria-hidden="true">
{[
[14, 30],
[32, 62],
[52, 24],
[70, 55],
[86, 34],
].map(([x, y], i) => (
<span
key={i}
style={{ left: `${x}%`, top: `${y}%`, ["--i" as string]: i }}
/>
))}
</div>
<h3>Everywhere at once</h3>
<p>Served from 300+ cities.</p>
</article>
{/* Typing */}
<article className="gu-bento__tile">
<div className="gu-bento__visual gu-bento__type" aria-hidden="true">
<span>ship it</span>
</div>
<h3>Edit in plain text</h3>
<p>Change a word, publish in seconds.</p>
</article>
{/* Bars */}
<article className="gu-bento__tile">
<div className="gu-bento__visual gu-bento__bars" aria-hidden="true">
{[40, 65, 50, 85, 100].map((h, i) => (
<span
key={i}
style={{ ["--h" as string]: `${h}%`, ["--i" as string]: i }}
/>
))}
</div>
<h3>Growth you can see</h3>
<p>Simple charts, no setup.</p>
</article>
{/* Lock, wide */}
<article className="gu-bento__tile gu-bento__tile--wide gu-bento__tile--accent">
<div className="gu-bento__visual gu-bento__lock" aria-hidden="true">
<span className="gu-bento__lock-shackle" />
<span className="gu-bento__lock-body" />
</div>
<h3>Private by default</h3>
<p>
No trackers, no cookies, no surprises. Your visitors stay yours.
</p>
</article>
</div>
</div>
</section>
);
}
```
### bento-features.css
```css
.gu-bento {
--bg: #0e0e10;
--tile: #18181b;
--text: #f3eee3;
--muted: #aea89c;
--line: rgb(243 238 227 / 0.08);
--accent: #ff5a1f;
--volt: #d7ff3a;
container-type: inline-size;
background: var(--bg);
color: var(--text);
font-family: system-ui, sans-serif;
}
.gu-bento__inner {
max-width: 1100px;
margin: 0 auto;
padding: 72px 20px;
}
.gu-bento__title {
margin: 0 0 40px;
font-size: clamp(2.2rem, 7cqi, 4.6rem);
font-weight: 900;
line-height: 0.95;
letter-spacing: -0.045em;
}
.gu-bento__title span {
color: var(--muted);
}
.gu-bento__grid {
display: grid;
gap: 12px;
}
@container (min-width: 720px) {
.gu-bento__grid {
grid-template-columns: repeat(4, 1fr);
}
.gu-bento__tile--wide {
grid-column: span 2;
}
}
.gu-bento__tile {
display: flex;
flex-direction: column;
padding: 22px;
border: 1px solid var(--line);
border-radius: 22px;
background: var(--tile);
transition:
border-color 0.3s,
transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
.gu-bento__tile:hover {
border-color: rgb(255 90 31 / 0.5);
transform: translateY(-4px);
}
}
.gu-bento__tile--accent {
background: var(--accent);
color: #0e0e10;
--muted: rgb(14 14 16 / 0.72);
}
.gu-bento__tile h3 {
margin: 0 0 6px;
font-size: 1.2rem;
letter-spacing: -0.02em;
}
.gu-bento__tile p {
margin: 0;
color: var(--muted);
font-size: 0.95rem;
line-height: 1.45;
}
.gu-bento__visual {
position: relative;
height: 130px;
margin-bottom: 22px;
}
/* Speed meter */
.gu-bento__speed {
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 12px;
}
.gu-bento__speed-value {
font-size: 4rem;
font-weight: 900;
letter-spacing: -0.05em;
line-height: 1;
}
.gu-bento__speed-bar {
height: 8px;
border-radius: 99px;
background:
linear-gradient(90deg, var(--volt), var(--accent)) left / 0% 100% no-repeat,
rgb(243 238 227 / 0.08);
animation: gu-bento-fill 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes gu-bento-fill {
0% {
background-size:
0% 100%,
auto;
}
50%,
100% {
background-size:
100% 100%,
auto;
}
}
/* Map: dots that ping */
.gu-bento__map {
background-image: radial-gradient(
rgb(243 238 227 / 0.14) 1.2px,
transparent 1.2px
);
background-size: 12px 12px;
border-radius: 14px;
}
.gu-bento__map span {
position: absolute;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--accent);
}
.gu-bento__map span::after {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
border: 2px solid var(--accent);
animation: gu-bento-ping 2s ease-out infinite;
animation-delay: calc(var(--i) * 0.35s);
}
@keyframes gu-bento-ping {
to {
transform: scale(3.5);
opacity: 0;
}
}
/* Typing cursor */
.gu-bento__type {
display: flex;
align-items: center;
font:
700 2rem ui-monospace,
Menlo,
monospace;
}
.gu-bento__type span {
overflow: hidden;
white-space: nowrap;
border-right: 3px solid var(--volt);
width: 7ch;
animation:
gu-bento-type 3.2s steps(7) infinite,
gu-bento-caret 0.8s step-end infinite;
}
@keyframes gu-bento-type {
0% {
width: 0;
}
50%,
100% {
width: 7.2ch;
}
}
@keyframes gu-bento-caret {
50% {
border-color: transparent;
}
}
/* Bars */
.gu-bento__bars {
display: flex;
align-items: flex-end;
gap: 8px;
}
.gu-bento__bars span {
flex: 1;
height: var(--h);
border-radius: 8px 8px 3px 3px;
background: rgb(243 238 227 / 0.14);
transform-origin: bottom;
animation: gu-bento-grow 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
animation-delay: calc(var(--i) * 0.08s);
}
.gu-bento__bars span:last-child {
background: var(--accent);
}
@keyframes gu-bento-grow {
0% {
transform: scaleY(0.1);
}
40%,
100% {
transform: scaleY(1);
}
}
/* Lock */
.gu-bento__lock {
display: grid;
place-items: end start;
}
.gu-bento__lock-body {
width: 76px;
height: 58px;
border-radius: 12px;
background: #0e0e10;
}
.gu-bento__lock-shackle {
position: absolute;
bottom: 50px;
left: 14px;
width: 48px;
height: 52px;
border: 9px solid #0e0e10;
border-bottom: 0;
border-radius: 26px 26px 0 0;
animation: gu-bento-lock 2.4s cubic-bezier(0.34, 1.4, 0.5, 1) infinite;
}
@keyframes gu-bento-lock {
0%,
20% {
transform: translateY(-14px);
}
45%,
100% {
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.gu-bento *,
.gu-bento *::after {
animation: none !important;
}
.gu-bento__speed-bar {
background-size:
100% 100%,
auto;
}
.gu-bento__tile:hover {
transform: none;
}
}
```
You might also want
Next piece: Pricing sectionIntegrations orbit
Templates, intermediate
Pricing section
Templates, intermediate
404 page section
Templates, intermediate