Files
training/.codex/skills/hallmark/references/macrostructures/01-bento-grid.md
2026-07-28 19:31:07 +08:00

36 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 01 · Bento Grid
Modular blocks of varying sizes laid out as an irregular grid. Each block is a feature, a quote, an image, a stat. Visual rhythm comes from size variation, not card uniformity.
- **Heading:** centered display in a fixed-height hero (not full viewport).
- **Body:** asymmetric grid — 815 blocks of mixed spans (1×1, 2×1, 1×2, 2×2).
- **Divider:** consistent 1224 px gap; no rules; the grid itself is the rhythm.
- **Button:** outlined chip on the hero; tile-internal CTAs as typographic links.
- **Image:** tightly cropped inside individual blocks; never full-bleed.
- **Reveal:** none, or a subtle one-shot fade on grid-tile entry.
Reach for it when the brief is "many small things to show", a feature page, a SaaS landing, or anywhere users have multiple equally-valid entry points.
Avoid when the message is a single hero idea — Bento spreads attention; one-idea pages need Marquee or Stat-Led.
Reference: Apple in-page sections, Framer feature pages, Tailwind UI templates.
**Sample opening lines** (imitate the *specificity*, not the wording):
> *"Tracejam · v0.4 · for SREs. Distributed tracing that explains itself."* — paraphrased from real observability tools
> *"Resend is the email API for developers. Send transactional and marketing emails at scale."* — resend.com
> *"The product development system for teams and agents."* — linear.app
```html
<header class="hero-fixed"></header>
<section class="bento">
<article class="cell span-2x2"></article> <!-- hero feature -->
<article class="cell span-1x1"></article>
<article class="cell span-2x1"></article> <!-- wide stat -->
<article class="cell span-1x2"></article> <!-- tall image -->
<article class="cell span-1x1"></article>
<article class="cell span-1x1"></article>
</section>
```
---