426 lines
9.0 KiB
Plaintext
426 lines
9.0 KiB
Plaintext
{% liquid
|
|
if section.settings.line_1 != blank
|
|
assign line_1 = section.settings.line_1
|
|
else
|
|
assign line_1 = 'signup.line_1' | t
|
|
endif
|
|
|
|
if section.settings.line_2 != blank
|
|
assign line_2 = section.settings.line_2
|
|
else
|
|
assign line_2 = 'signup.line_2' | t
|
|
endif
|
|
|
|
if section.settings.line_3 != blank
|
|
assign line_3 = section.settings.line_3
|
|
else
|
|
assign line_3 = 'signup.line_3' | t
|
|
endif
|
|
|
|
if section.settings.line_4 != blank
|
|
assign line_4 = section.settings.line_4
|
|
else
|
|
assign line_4 = 'signup.line_4' | t
|
|
endif
|
|
|
|
if section.settings.text != blank
|
|
assign text = section.settings.text
|
|
else
|
|
assign text = 'signup.text' | t
|
|
endif
|
|
|
|
if section.settings.placeholder != blank
|
|
assign placeholder = section.settings.placeholder
|
|
else
|
|
assign placeholder = 'signup.placeholder' | t
|
|
endif
|
|
|
|
assign form_id = 'SignupForm-' | append: section.id
|
|
assign email_id = 'SignupEmail-' | append: section.id
|
|
assign message_id = 'SignupMessage-' | append: section.id
|
|
%}
|
|
|
|
<section class="signup full-width" id="Signup-{{ section.id }}">
|
|
<div class="signup__panel">
|
|
<div class="signup__art" aria-hidden="true">
|
|
<img
|
|
src="{{ 'Capa_1.avif' | asset_url }}"
|
|
alt=""
|
|
width="317"
|
|
height="360"
|
|
loading="lazy"
|
|
decoding="async"
|
|
>
|
|
</div>
|
|
|
|
<div class="signup__copy">
|
|
<h2 class="signup__title">
|
|
<span class="signup__line signup__line--medium">{{ line_1 | escape }}</span>
|
|
<span class="signup__line signup__line--light">{{ line_2 | escape }}</span>
|
|
<span class="signup__line">
|
|
<span class="signup__line--medium">{{ line_3 | escape }}</span>
|
|
<span class="signup__line--light"> {{ line_4 | escape }}</span>
|
|
</span>
|
|
</h2>
|
|
|
|
{% if text != blank %}
|
|
<p class="signup__text">{{ text | escape | newline_to_br }}</p>
|
|
{% endif %}
|
|
|
|
{% form 'customer', id: form_id, class: 'signup__form' %}
|
|
<input type="hidden" name="contact[tags]" value="newsletter">
|
|
|
|
<div class="signup__field">
|
|
<label class="signup__label" for="{{ email_id }}">{{ 'signup.email_label' | t }}</label>
|
|
<input
|
|
id="{{ email_id }}"
|
|
class="signup__input"
|
|
type="email"
|
|
name="contact[email]"
|
|
value="{{ form.email }}"
|
|
placeholder="{{ placeholder | escape }}"
|
|
autocomplete="email"
|
|
autocapitalize="off"
|
|
autocorrect="off"
|
|
spellcheck="false"
|
|
required
|
|
aria-required="true"
|
|
{% if form.errors %}
|
|
aria-invalid="true"
|
|
aria-describedby="{{ message_id }}"
|
|
{% elsif form.posted_successfully? %}
|
|
aria-describedby="{{ message_id }}"
|
|
{% endif %}
|
|
>
|
|
<button class="signup__submit" type="submit" aria-label="{{ 'signup.submit' | t }}">
|
|
<span class="signup__arrow">
|
|
<img src="{{ 'signup-arrow.svg' | asset_url }}" alt="" width="20" height="20"
|
|
loading="lazy"
|
|
decoding="async"
|
|
>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
|
|
{% if form.posted_successfully? %}
|
|
<p id="{{ message_id }}" class="signup__message" role="status" tabindex="-1" autofocus>
|
|
{{ 'signup.success' | t }}
|
|
</p>
|
|
{% elsif form.errors %}
|
|
<p id="{{ message_id }}" class="signup__message signup__message--error" role="alert">
|
|
{% if form.errors.messages.email != blank %}
|
|
{{ form.errors.messages.email | escape }}
|
|
{% else %}
|
|
{{ 'signup.error' | t }}
|
|
{% endif %}
|
|
</p>
|
|
{% endif %}
|
|
{% endform %}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{% stylesheet %}
|
|
.signup {
|
|
padding: 50px 100px 63px;
|
|
background: #fff;
|
|
color: #000;
|
|
font-family: Archivo, sans-serif;
|
|
}
|
|
|
|
.signup__panel {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 450px;
|
|
overflow: hidden;
|
|
border-radius: 10px;
|
|
background: linear-gradient(128.45deg, #7dcaaf 0%, #a9ddfa 114.42%, #d2ebf9 133.7%);
|
|
}
|
|
|
|
.signup__art {
|
|
position: absolute;
|
|
top: 40.9px;
|
|
left: 82px;
|
|
width: 317px;
|
|
height: 360.19px;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.signup__art img {
|
|
display: block;
|
|
width: 317px;
|
|
height: 360.19px;
|
|
max-width: none;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.signup__copy {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 20px;
|
|
width: min(100%, 804px);
|
|
padding: 82px 24px;
|
|
}
|
|
|
|
.signup__title {
|
|
width: 100%;
|
|
margin: 0;
|
|
color: #000;
|
|
font-family: "Roc Grotesk", Archivo, sans-serif;
|
|
font-size: 40px;
|
|
font-weight: 500;
|
|
line-height: 45px;
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.signup__line {
|
|
display: block;
|
|
}
|
|
|
|
.signup__line--medium {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.signup__line--light {
|
|
font-weight: 300;
|
|
}
|
|
|
|
.signup__text {
|
|
width: 100%;
|
|
max-width: 804px;
|
|
margin: 0;
|
|
color: #000;
|
|
font-family: Archivo, sans-serif;
|
|
font-size: 20px;
|
|
font-weight: 300;
|
|
line-height: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.signup__form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin: 0;
|
|
}
|
|
|
|
.signup__field {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 400px;
|
|
max-width: 100%;
|
|
height: 50px;
|
|
padding: 0 30px;
|
|
border-radius: 100px;
|
|
background: #fff;
|
|
}
|
|
|
|
.signup__field:focus-within {
|
|
outline: 2px solid #000;
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.signup__label {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.signup__input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: #000;
|
|
font-family: Archivo, sans-serif;
|
|
font-size: 16px;
|
|
font-weight: 300;
|
|
line-height: normal;
|
|
outline: none;
|
|
}
|
|
|
|
.signup__input::placeholder {
|
|
color: #808181;
|
|
opacity: 1;
|
|
}
|
|
|
|
.signup__submit {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-left: 12px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: #000;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.signup__arrow {
|
|
display: block;
|
|
width: 20px;
|
|
height: 20px;
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.signup__arrow img {
|
|
display: block;
|
|
width: 20px;
|
|
height: 20px;
|
|
max-width: none;
|
|
}
|
|
|
|
.signup__message {
|
|
margin: 12px 0 0;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 1.35;
|
|
text-align: center;
|
|
}
|
|
|
|
.signup__message--error {
|
|
color: #9b1c1c;
|
|
}
|
|
|
|
@media (max-width: 1439px) {
|
|
.signup {
|
|
padding-inline: 40px;
|
|
}
|
|
|
|
.signup__panel {
|
|
min-height: 380px;
|
|
}
|
|
|
|
.signup__art {
|
|
left: 24px;
|
|
transform: scale(0.72);
|
|
transform-origin: left center;
|
|
}
|
|
|
|
.signup__copy {
|
|
width: min(100%, 640px);
|
|
padding-block: 48px;
|
|
}
|
|
|
|
.signup__title {
|
|
font-size: 32px;
|
|
line-height: 36px;
|
|
}
|
|
|
|
.signup__text {
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.signup {
|
|
padding: 24px 15px 32px;
|
|
}
|
|
|
|
.signup__panel {
|
|
min-height: 0;
|
|
padding-top: 28px;
|
|
}
|
|
|
|
.signup__art {
|
|
top: 12px;
|
|
left: 8px;
|
|
transform: scale(0.42);
|
|
transform-origin: left top;
|
|
}
|
|
|
|
.signup__copy {
|
|
width: min(100%, 520px);
|
|
padding: 88px 16px 32px;
|
|
}
|
|
|
|
.signup__title {
|
|
font-size: 24px;
|
|
line-height: 28px;
|
|
}
|
|
|
|
.signup__field {
|
|
width: min(100%, 400px);
|
|
}
|
|
}
|
|
{% endstylesheet %}
|
|
|
|
{% schema %}
|
|
{
|
|
"name": "t:signup.name",
|
|
"tag": "section",
|
|
"class": "signup-section",
|
|
"disabled_on": {
|
|
"groups": ["header", "footer"]
|
|
},
|
|
"settings": [
|
|
{
|
|
"type": "paragraph",
|
|
"content": "t:signup.form_info"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "line_1",
|
|
"label": "t:signup.line_1",
|
|
"default": "Regístrate"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "line_2",
|
|
"label": "t:signup.line_2",
|
|
"default": "hoy mismo y disfruta de un"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "line_3",
|
|
"label": "t:signup.line_3",
|
|
"default": "10 % de descuento"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "line_4",
|
|
"label": "t:signup.line_4",
|
|
"default": "en tu primer pedido"
|
|
},
|
|
{
|
|
"type": "textarea",
|
|
"id": "text",
|
|
"label": "t:signup.text",
|
|
"default": "Accede a beneficios exclusivos para miembros, acceso anticipado a los nuevos lanzamientos y recompensas exclusivas, solo para ti."
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "placeholder",
|
|
"label": "t:signup.placeholder",
|
|
"default": "Tu email"
|
|
}
|
|
],
|
|
"presets": [
|
|
{
|
|
"name": "t:signup.name"
|
|
}
|
|
]
|
|
}
|
|
{% endschema %}
|