Layout tree (as in design/layout.json)
{
"pattern": "faq.bauhaus-square-index",
"kind": "faq",
"grid": {
"title": "1-4",
"questions": "5-12"
},
"slots": [
"title",
"faqs[4..8]"
],
"tree": {
"el": "grid",
"gap": 4,
"align": "start",
"children": [
{
"el": "box",
"span": "1-4",
"gap": 4,
"children": [
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 5,
"transform": "lowercase",
"weight": 700
},
{
"el": "shape",
"mobile": "hide",
"kind": "square",
"size": "md",
"fill": "accent2"
}
]
},
{
"el": "repeat",
"span": "5-12",
"slot": "faqs",
"min": 4,
"max": 8,
"layout": "list",
"gap": 3,
"divider": true,
"of": {
"el": "grid",
"mobile": "keep",
"cols": 8,
"gap": 2,
"children": [
{
"el": "shape",
"span": "1-1",
"kind": "circle",
"size": "sm",
"fill": "accent"
},
{
"el": "box",
"span": "2-8",
"gap": 1,
"children": [
{
"el": "text",
"slot": "title",
"role": "h4",
"step": 2,
"transform": "lowercase"
},
{
"el": "text",
"slot": "body",
"role": "body",
"maxCh": 60
}
]
}
]
}
}
]
}
}