Layout tree (as in design/layout.json)
{
"pattern": "contact.terminal-mail-prompt",
"kind": "contact",
"slots": [
"title",
"body",
"contact",
"email",
"meta"
],
"notes": "Fields are bare lines with a prompt label (\"from:\", \"subject:\", \"body:\"), no boxes; submit is \"[ send ]\".",
"tree": {
"el": "grid",
"gap": 4,
"align": "stretch",
"children": [
{
"el": "box",
"span": "1-5",
"gap": 4,
"justify": "between",
"children": [
{
"el": "box",
"gap": 3,
"children": [
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 5,
"maxCh": 16
},
{
"el": "text",
"color": "textMuted",
"slot": "body",
"role": "lead",
"maxCh": 48
}
]
},
{
"el": "text",
"color": "link",
"slot": "email",
"role": "h3",
"step": 2
}
]
},
{
"el": "box",
"span": "6-12",
"border": "all",
"children": [
{
"el": "box",
"mobile": "keep",
"dir": "row",
"gap": 2,
"pad": [
1,
3
],
"align": "center",
"justify": "between",
"wrap": true,
"border": "bottom",
"children": [
{
"el": "text",
"color": "textMuted",
"slot": "meta",
"role": "small"
}
]
},
{
"el": "box",
"gap": 3,
"pad": [
5,
5
],
"children": [
{
"el": "form",
"slot": "contact",
"fields": [
"name",
"email",
"message"
]
}
]
}
]
}
]
}
}