{% layout "auth" %} {% if section.settings.show_image %}
{% endif %}

{{ section.settings.login_text }}

{% form 'new_member_session', current_site_user %} {% if form.notice %}
{{ form.notice }}
{% endif %} {% if form.errors.messages['form'] %}
{{ form.errors.messages['form'] }}
{% endif %}
{% assign btnText = section.settings.btn_text %} {% assign btnColor = section.settings.btn_background_color | default: settings.color_primary %} {% assign btnTextColor = section.settings.btn_text_color | default: settings.text_color_light %} {% assign btnStyle = section.settings.btn_style %} {% assign btnWidth = section.settings.btn_width %} {% assign btnSize = section.settings.btn_size %} {% endform %}
{% schema %} { "name": "Login", "elements": [ { "type": "checkbox", "id": "show_image", "label": "Show Image", "default": "false" }, { "type": "image_picker", "id": "image", "label": "Image", "width": 720, "height": 410, "info": "Suggested dimensions: 720 × 410" }, { "type": "text", "label": "Login Text", "id": "login_text", "default": "Sign in to your account" }, { "type": "text", "label": "Email Text", "id": "email", "default": "Email" }, { "type": "text", "label": "Password Text", "id": "password", "default": "Password" }, { "type": "text", "label": "Remember Me Text", "id": "remember_me", "default": "Remember Me" }, { "type": "text", "label": "Forgot Password Text", "id": "forgot_password", "default": "Forgot Password" }, { "type": "text", "id": "btn_text", "label": "Button Text", "default": "Sign In" }, { "type": "radio", "id": "btn_style", "label": "Button Style", "default": "solid", "options": [ { "label": "Solid", "value": "solid" }, { "label": "Outline", "value": "outline" } ] }, { "type": "radio", "id": "btn_size", "label": "Button Size", "default": "med", "options": [ { "label": "Small", "value": "small" }, { "label": "Medium", "value": "med" }, { "label": "Large", "value": "large" } ] }, { "type": "radio", "id": "btn_width", "label": "Button Width", "default": "block", "options": [ { "label": "Auto", "value": "auto" }, { "label": "Full Width", "value": "block" } ] }, { "type": "color", "id": "btn_background_color", "label": "Button Color", "allow_blank": true }, { "type": "color", "id": "btn_text_color", "label": "Button Text Color", "allow_blank": true, "info": "For solid buttons only" } ] } {% endschema %}