challenge-vtex-io-wellingto.../store/blocks/contact.jsonc

86 lines
1.5 KiB
Plaintext

{
"store.custom#contact-us": {
"children": [
"flex-layout.row#contact-us"
]
},
"flex-layout.row#contact-us": {
"props": {
"blockClass": "contact"
},
"children": [
"flex-layout.col#contact-us"
]
},
"flex-layout.col#contact-us": {
"children": [
"rich-text#contact-us",
"form#contact-us"
]
},
"rich-text#contact-us": {
"props": {
"text": "## Contact Us"
}
},
"form#contact-us": {
"props": {
"entity": "contact",
"schema": "site-contact"
},
"blocks": [
"form-success#contact-us"
],
"children": [
"form-input.text#title",
"form-input.text#name",
"form-input.text#email",
"form-input.textarea#message",
"form-submit#contact"
]
},
"form-success#contact-us": {
"children": [
"rich-text#success-submit"
]
},
"rich-text#success-submit": {
"props": {
"text": "Thanks for reaching out! We will come back shortly.",
"textAlignment": "CENTER",
"textPosition": "CENTER"
}
},
"form-input.text#title": {
"props": {
"pointer": "#/properties/title"
}
},
"form-input.text#name": {
"props": {
"pointer": "#/properties/name"
}
},
"form-input.text#email": {
"props": {
"pointer": "#/properties/email"
}
},
"form-input.textarea#message": {
"props": {
"pointer": "#/properties/message"
}
},
"form-submit#contact": {
"props": {
"label": "Submit"
}
}
}