v1.1.0
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
{% liquid
|
||||
if section.settings.heading != blank
|
||||
assign heading = section.settings.heading
|
||||
else
|
||||
assign heading = 'stores_nearby.heading' | t
|
||||
endif
|
||||
|
||||
if section.settings.text != blank
|
||||
assign text = section.settings.text
|
||||
else
|
||||
assign text = 'stores_nearby.text' | t
|
||||
endif
|
||||
|
||||
if section.settings.button_label != blank
|
||||
assign button_label = section.settings.button_label
|
||||
else
|
||||
assign button_label = 'stores_nearby.button' | t
|
||||
endif
|
||||
|
||||
if section.settings.button_link != blank
|
||||
assign button_link = section.settings.button_link
|
||||
else
|
||||
assign button_link = '/pages/donde-encontrarnos'
|
||||
endif
|
||||
%}
|
||||
|
||||
<section class="stores-nearby full-width bg-[#f9f9fa] font-sans text-[#1a1b18]" id="StoresNearby-{{ section.id }}">
|
||||
<div class="mx-auto grid w-full max-w-[1180px] grid-cols-2 items-center gap-8 px-10 py-12 xl:px-8 lg:grid-cols-1 lg:px-6 md:px-5 md:py-10">
|
||||
<div class="max-w-[460px] lg:max-w-[560px]">
|
||||
<h2 class="m-0 text-[42px] font-medium leading-[1.12] xl:text-[34px] md:text-[30px]">
|
||||
{{ heading | escape | newline_to_br }}
|
||||
</h2>
|
||||
{% if text != blank %}
|
||||
<p class="mb-0 mt-5 text-[16px] font-normal leading-[1.5] text-[#1a1b18]">
|
||||
{{ text | escape }}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if button_label != blank %}
|
||||
<a
|
||||
class="mt-8 inline-flex items-center justify-center rounded-full border border-solid border-brand-mint bg-brand-mint px-8 py-3 text-[13px] font-medium uppercase leading-none tracking-[0.04em] text-[#212326] no-underline hover:opacity-80"
|
||||
href="{{ button_link }}"
|
||||
>
|
||||
{{ button_label | escape }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<img
|
||||
class="aspect-[16/9] w-full rounded-[18px] object-cover object-center"
|
||||
src="{{ 'find-distributor.jpg' | asset_url }}"
|
||||
alt="{{ 'stores_nearby.photo_alt' | t | escape }}"
|
||||
width="1400"
|
||||
height="1400"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:stores_nearby.name",
|
||||
"tag": "section",
|
||||
"class": "stores-nearby-section",
|
||||
"disabled_on": {
|
||||
"groups": ["header", "footer"]
|
||||
},
|
||||
"settings": [
|
||||
{
|
||||
"type": "textarea",
|
||||
"id": "heading",
|
||||
"label": "t:stores_nearby.heading",
|
||||
"default": "Encuentra\nSeasons cerca\nde ti"
|
||||
},
|
||||
{
|
||||
"type": "textarea",
|
||||
"id": "text",
|
||||
"label": "t:stores_nearby.text",
|
||||
"default": "Descubre dónde más encontrar tus productos favoritos."
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "button_label",
|
||||
"label": "t:stores_nearby.button_label",
|
||||
"default": "Ver más tiendas"
|
||||
},
|
||||
{
|
||||
"type": "url",
|
||||
"id": "button_link",
|
||||
"label": "t:stores_nearby.button_link"
|
||||
}
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
"name": "t:stores_nearby.name"
|
||||
}
|
||||
]
|
||||
}
|
||||
{% endschema %}
|
||||
Reference in New Issue
Block a user