<section {% render 'section-attr' %}>
  {% render 'section-bg-image' %}
  <xo-container>
    <xo-animate xo-cascade>
      {%
        render 'page-heading',
        title_tag: section.settings.title_tag,
        title: section.settings.title,
        description: section.settings.description,
        align: section.settings.align,
      %}
    </xo-animate>
  </xo-container>
</section>

{% schema %}
{
  "name": "t:sections.main_page_heading.name",
  "settings": [
    {
      "type": "select",
      "id": "title_tag",
      "label": "t:sections.main_page_heading.settings.title_tag.label",
      "options": [
        {
          "value": "h1",
          "label": "h1"
        },
        {
          "value": "h2",
          "label": "h2"
        },
        {
          "value": "h3",
          "label": "h3"
        },
        {
          "value": "h4",
          "label": "h4"
        },
        {
          "value": "h5",
          "label": "h5"
        },
        {
          "value": "h6",
          "label": "h6"
        }
      ],
      "default": "h1"
    },
    {
      "type": "text",
      "id": "title",
      "label": "t:sections.main_page_heading.settings.title.label"
    },
    {
      "type": "richtext",
      "id": "description",
      "label": "t:sections.main_page_heading.settings.description.label"
    },
    {
      "type": "select",
      "id": "align",
      "label": "t:sections.main_page_heading.settings.align.label",
      "options": [
        {
          "value": "left",
          "label": "t:sections.main_page_heading.settings.value_left.label"
        },
        {
          "value": "center",
          "label": "t:sections.main_page_heading.settings.value_center.label"
        },
        {
          "value": "right",
          "label": "t:sections.main_page_heading.settings.value_right.label"
        }
      ],
      "default": "center"
    },
    {
      "type": "header",
      "content": "t:sections.all.heading.content"
    },
    {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.color_scheme.label"
    },
    {
      "type": "color",
      "id": "background_color",
      "label": "t:sections.all.bg_color.label"
    },
    {
      "type": "color_background",
      "id": "background_gradient",
      "label": "t:sections.all.bg_gradient.label"
    },
    {
      "type": "image_picker",
      "id": "background_image_desktop",
      "label": "t:sections.all.background_image_desktop.label"
    },
    {
      "type": "image_picker",
      "id": "background_image_mobile",
      "label": "t:sections.all.background_image_mobile.label"
    },
    {
      "type": "checkbox",
      "id": "use_parallax",
      "label": "t:sections.all.use_parallax.label",
      "default": true
    },
    {
      "type": "number",
      "id": "padding_top",
      "label": "t:sections.all.padding_top.label",
      "default": 50
    },
    {
      "type": "number",
      "id": "padding_bottom",
      "label": "t:sections.all.padding_bottom.label",
      "default": 50
    }
  ],
  "presets": [
    {
      "name": "t:sections.main_page_heading.presets.name"
    }
  ]
}
{% endschema %}
