|
| 1 | +--- |
| 2 | +title: Bento |
| 3 | +description: Use the river component to introduce a feature using a type and media pairing. |
| 4 | +--- |
| 5 | + |
| 6 | +import ComponentLayout from '../../../src/layouts/component-layout' |
| 7 | +export default ComponentLayout |
| 8 | + |
| 9 | +As its name suggest this component is inspired by the Japanese bento lunch boxes. Bentos are an assortment of boxes arranged in a neat grid that forms a delightful unit. The intricate and harmonious pairing of contents makes a successful bento. The idea is to provide the most compelling picture of the product/feature we are presenting by allowing a rich variety of media type to tell and mini story. |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +## Usage |
| 15 | + |
| 16 | +Use bentos to present complex feature sets that require the presentation of various types of content. Each bento is composed of a minimum of 3 boxes and a maximum of 7-8. Each box should feature a small amount of content to create focus at the box level. |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +### Boxes |
| 21 | + |
| 22 | +Boxes are the constituent of the bento. Each should focus a clear point by featuring only the relevant content. |
| 23 | +Each box should not be narrower than 4 col. We allow full row width boxes as a breakout. |
| 24 | + |
| 25 | +<DoDontContainer> |
| 26 | + <Do> |
| 27 | + <img |
| 28 | + alt="" |
| 29 | + src="https://github.com/primer/brand/assets/10632534/40ecee93-7236-4c61-bc2a-f594d6879857" |
| 30 | + /> |
| 31 | + <Caption>Boxes should be presenting a single piece of information</Caption> |
| 32 | + </Do> |
| 33 | + <Dont> |
| 34 | + <img |
| 35 | + alt="" |
| 36 | + src="https://github.com/primer/brand/assets/10632534/1ee3ed94-1050-4cd5-97d0-d2b158e7e5fc" |
| 37 | + /> |
| 38 | + <Caption>Don’t fit too much information in one box</Caption> |
| 39 | + </Dont> |
| 40 | +</DoDontContainer> |
| 41 | + |
| 42 | +### Grid |
| 43 | + |
| 44 | +Each bento assortment should fit within the grid system. The grid determine the size of each box and the density of each collage. The grid layout allows to articulate the composition by adjusting how each box fit with one another. |
| 45 | + |
| 46 | +<DoDontContainer> |
| 47 | + <Do> |
| 48 | + <img |
| 49 | + alt="" |
| 50 | + src="https://github.com/primer/brand/assets/10632534/58ce10d5-8292-4aff-bcfa-f0ba653fa115" |
| 51 | + /> |
| 52 | + <Caption>The grid should flex to accommodate the boxes content and size</Caption> |
| 53 | + </Do> |
| 54 | + <Dont> |
| 55 | + <img |
| 56 | + alt="" |
| 57 | + src="https://github.com/primer/brand/assets/10632534/89650e43-8c76-4557-a2ab-d09cf41b42f0" |
| 58 | + /> |
| 59 | + <Caption>Don’t create high density, unstructured grid with offsets</Caption> |
| 60 | + </Dont> |
| 61 | +</DoDontContainer> |
| 62 | + |
0 commit comments