Contact Us
{{ 'section-contact-form.css' | asset_url | stylesheet_tag }}
{%- style -%}
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top | times: 0.30 | round: 0 }}px;
padding-bottom: {{ section.settings.padding_bottom | times: 0.40 | round: 0 }}px;
}
@media screen and (min-width: 750px) {
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top }}px;
padding-bottom: {{ section.settings.padding_bottom }}px;
}
}
@media only screen and (min-width:768px) and (max-width:989px) {
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top | times: 0.40 | round: 0 }}px;
padding-bottom: {{ section.settings.padding_bottom | times: 0.40 | round: 0 }}px;
}
}
@media only screen and (min-width:990px) and (max-width:1199px) {
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top | times: 0.50 | round: 0 }}px;
padding-bottom: {{ section.settings.padding_bottom | times: 0.50 | round: 0 }}px;
}
}
@media only screen and (min-width:1200px) and (max-width:1367px) {
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top | times: 0.70 | round: 0 }}px;
padding-bottom: {{ section.settings.padding_bottom | times: 0.70 | round: 0 }}px;
}
}
@media only screen and (min-width:1368px) and (max-width:1500px) {
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top | times: 0.70 | round: 0 }}px;
padding-bottom: {{ section.settings.padding_bottom | times: 0.70 | round: 0 }}px;
}
}
{%- endstyle -%}
{% schema %}
{
"name": "t:sections.contact-form.name",
"tag": "section",
"class": "section",
"settings": [
{
"type": "text",
"id": "heading",
"default": "Contact form",
"label": "Heading"
},
{
"type": "select",
"id": "heading_size",
"options": [
{
"value": "h2",
"label": "t:sections.all.heading_size.options__1.label"
},
{
"value": "h1",
"label": "t:sections.all.heading_size.options__2.label"
},
{
"value": "h0",
"label": "t:sections.all.heading_size.options__3.label"
}
],
"default": "h1",
"label": "t:sections.all.heading_size.label"
},
{
"type": "textarea",
"id": "content",
"label": "Contact Content"
},
{
"type": "select",
"id": "color_scheme",
"options": [
{
"value": "accent-1",
"label": "t:sections.all.colors.accent_1.label"
},
{
"value": "accent-2",
"label": "t:sections.all.colors.accent_2.label"
},
{
"value": "background-1",
"label": "t:sections.all.colors.background_1.label"
},
{
"value": "background-2",
"label": "t:sections.all.colors.background_2.label"
},
{
"value": "inverse",
"label": "t:sections.all.colors.inverse.label"
}
],
"default": "background-1",
"label": "t:sections.all.colors.label"
},
{
"type": "header",
"content": "t:sections.all.padding.section_padding_heading"
},
{
"type": "range",
"id": "padding_top",
"min": 0,
"max": 100,
"step": 4,
"unit": "px",
"label": "t:sections.all.padding.padding_top",
"default": 36
},
{
"type": "range",
"id": "padding_bottom",
"min": 0,
"max": 100,
"step": 4,
"unit": "px",
"label": "t:sections.all.padding.padding_bottom",
"default": 36
}
],
"presets": [
{
"name": "t:sections.contact-form.presets.name"
}
]
}
{% endschema %}
{%- if section.settings.heading != blank -%}
{%- endform -%}
{{ section.settings.heading | escape }}
{%- else -%}{{ 'templates.contact.form.title' | t }}
{%- endif -%} {%- if section.settings.content != blank -%}{{ section.settings.content }}
{%- endif -%} {%- form 'contact', id: 'ContactForm', class: 'isolate' -%} {%- if form.posted_successfully? -%}{% render 'icon-success' %} {{ 'templates.contact.form.post_success' | t }}
{%- elsif form.errors -%} {%- endif -%}
{%- if form.errors contains 'email' -%}
{{ 'accessibility.error' | t }}
{%- endif -%}