Layout tree (as in design/layout.json)
{
"pattern": "hero.asymmetric-blocks",
"kind": "hero",
"grid": {
"headline": "1-7",
"subhead": "8-12",
"photo": "8-10",
"cta": "11-12",
"note": "1-4",
"caption": "5-7"
},
"slots": [
"eyebrow",
"headline",
"subhead",
"heroImage",
"cta",
"meta",
"caption"
],
"notes": "Like a Mondrian or a Bauhaus poster: blocks touch (gap 0) and differ in size and colour. Text on accent uses onAccent, on accent2 uses onAccent2.",
"tree": {
"el": "grid",
"gap": 0,
"minVh": 0.95,
"children": [
{
"el": "box",
"span": "1-7",
"rowSpan": "1-2",
"bg": "accent",
"gap": 4,
"pad": [
8,
5
],
"justify": "end",
"children": [
{
"el": "text",
"color": "onAccent",
"slot": "eyebrow",
"role": "eyebrow"
},
{
"el": "text",
"color": "onAccent",
"slot": "headline",
"role": "display",
"step": 7,
"leading": "tight",
"maxCh": 12
}
]
},
{
"el": "box",
"span": "8-12",
"rowSpan": "1-1",
"bg": "surface",
"gap": 3,
"pad": [
5,
4
],
"children": [
{
"el": "text",
"slot": "subhead",
"role": "lead",
"maxCh": 30
}
]
},
{
"el": "media",
"span": "8-10",
"rowSpan": "2-3",
"slot": "heroImage",
"treatment": "photo",
"fill": true
},
{
"el": "box",
"span": "11-12",
"rowSpan": "2-2",
"bg": "accent2",
"pad": [
4,
3
],
"justify": "end",
"children": [
{
"el": "button",
"color": "onAccent2",
"slot": "cta",
"variant": "link",
"arrow": true
}
]
},
{
"el": "box",
"span": "1-4",
"rowSpan": "3-3",
"bg": "surfaceAlt",
"pad": [
4,
4
],
"children": [
{
"el": "text",
"color": "text",
"slot": "meta",
"role": "small"
}
]
},
{
"el": "box",
"span": "5-7",
"rowSpan": "3-3",
"pad": [
4,
4
],
"border": "all",
"children": [
{
"el": "text",
"color": "textMuted",
"slot": "caption",
"role": "small"
}
]
}
]
}
}