Marketing sectionsBentoCards

Open in Create
Search
astronomic.dev

BentoCards

Pro

To show several strengths at once in tiles of different sizes, each with an icon, the most important one largest, and any tile able to link to more.

File
BentoCards.astro
Group
Marketing sections
Kind
Static: no JavaScript
Examples
3
import BentoCards from "@astronomic/ui-pro/components/BentoCards.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

Studio strengths

Seven text tiles: a large highlighted tile first, a tall one, a wide one and four normal ones. One column on a phone, two from a 32rem section, four from 48rem. Dense packing fills the gaps the big tiles leave, so the two normal tiles after the wide one show above it; the keyboard and screen readers keep the source order. Each tile has a Lucide icon above its title.

main.astro

Four tiles, each a link to an Astronomic page, with a viewText cue at the foot. The whole tile is the target and one tab stop, named by its title. With a link in the grid, BentoCards packs sparsely, so the visual order and the tab order stay the source order; the tiles are ordered (large, tall, two normal) to leave no hole at two or four columns.

An inverse tile, without a heading

A large tile with tone="inverse" and an icon leads seven text tiles. There is no section heading: the page has its own h1, so itemHeadingTag="h2" puts each tile title one level under it.

inverse.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.