[
{
"handle" => "hero", "label" => "Hero",
"fields" => [
{ "handle" => "heading", "type" => "text", "label" => "Heading" },
{ "handle" => "subheading", "type" => "textarea", "label" => "Subheading" },
{ "handle" => "image", "type" => "image", "label" => "Image" },
{ "handle" => "button_label", "type" => "text", "label" => "Button Label" },
{ "handle" => "button_url", "type" => "text", "label" => "Button URL" }
]
},
{
"handle" => "rich_text", "label" => "Rich Text",
"fields" => [
{ "handle" => "body", "type" => "rich_text", "label" => "Body" }
]
},
{
"handle" => "image", "label" => "Image",
"fields" => [
{ "handle" => "image", "type" => "image", "label" => "Image" },
{ "handle" => "caption", "type" => "text", "label" => "Caption" }
]
},
{
"handle" => "image_text", "label" => "Image + Text",
"fields" => [
{ "handle" => "heading", "type" => "text", "label" => "Heading" },
{ "handle" => "body", "type" => "rich_text", "label" => "Body" },
{ "handle" => "image", "type" => "image", "label" => "Image" },
{ "handle" => "image_position", "type" => "select", "label" => "Image Position",
"options" => [ { "label" => "Left", "value" => "left" }, { "label" => "Right", "value" => "right" } ] }
]
},
{
"handle" => "gallery", "label" => "Gallery",
"fields" => [
{ "handle" => "heading", "type" => "text", "label" => "Heading" },
{ "handle" => "image_one", "type" => "image", "label" => "Image One" },
{ "handle" => "image_two", "type" => "image", "label" => "Image Two" },
{ "handle" => "image_three", "type" => "image", "label" => "Image Three" }
]
},
{
"handle" => "cta", "label" => "Call to Action",
"fields" => [
{ "handle" => "heading", "type" => "text", "label" => "Heading" },
{ "handle" => "text", "type" => "textarea", "label" => "Text" },
{ "handle" => "button_label", "type" => "text", "label" => "Button Label" },
{ "handle" => "button_url", "type" => "text", "label" => "Button URL" }
]
},
{
"handle" => "button", "label" => "Button",
"fields" => [
{ "handle" => "label", "type" => "text", "label" => "Label" },
{ "handle" => "url", "type" => "text", "label" => "URL" }
]
},
{
"handle" => "spacer", "label" => "Spacer",
"fields" => [
{ "handle" => "size", "type" => "select", "label" => "Size",
"options" => [ { "label" => "Small", "value" => "small" }, { "label" => "Medium", "value" => "medium" }, { "label" => "Large", "value" => "large" } ] }
]
}
].freeze