curtaincraft-vanguard / sections /quick-access.liquid
SpectrumInfinite's picture
You are a Shopify theme developer. Build a custom homepage for Pardaonline.com using Online Store 2.0 conventions. The output must be production-ready Liquid section files and a homepage template JSON. The design is mobile-first, responsive, and conversion-optimized.
ab3ae96 verified
Raw History Blame Contribute Delete
4.12 kB
```liquid
{%- style -%}
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;
padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | 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;
}
}
{%- endstyle -%}
<section class="section-quick-access section-{{ section.id }}-padding">
<div class="page-width">
{%- if section.settings.heading != blank -%}
<h2 class="section-heading">{{ section.settings.heading | escape }}</h2>
{%- endif -%}
<div class="quick-access__grid grid grid--2-col grid--4-col-desktop">
{%- for block in section.blocks -%}
<div class="grid__item" {{ block.shopify_attributes }}>
<a href="{{ block.settings.link }}" class="quick-access-card card">
{%- if block.settings.icon != blank -%}
<div class="quick-access-card__icon">
{{ block.settings.icon | image_url: width: 80 | image_tag:
loading: 'lazy',
widths: '40, 80, 120',
alt: block.settings.title | escape,
class: 'quick-access-card__icon-image'
}}
</div>
{%- endif -%}
<div class="quick-access-card__content">
<h3 class="quick-access-card__title">{{ block.settings.title | escape }}</h3>
{%- if block.settings.description != blank -%}
<p class="quick-access-card__description">{{ block.settings.description | escape }}</p>
{%- endif -%}
</div>
</a>
</div>
{%- endfor -%}
</div>
</div>
</section>
{% schema %}
{
"name": "Quick Access Tiles",
"tag": "section",
"class": "section",
"settings": [
{
"type": "text",
"id": "heading",
"default": "Find Your Perfect Window Solution",
"label": "Heading"
},
{
"type": "header",
"content": "Section padding"
},
{
"type": "range",
"id": "padding_top",
"min": 0,
"max": 100,
"step": 4,
"unit": "px",
"label": "Padding top",
"default": 36
},
{
"type": "range",
"id": "padding_bottom",
"min": 0,
"max": 100,
"step": 4,
"unit": "px",
"label": "Padding bottom",
"default": 36
}
],
"blocks": [
{
"type": "tile",
"name": "Tile",
"settings": [
{
"type": "image_picker",
"id": "icon",
"label": "Icon image"
},
{
"type": "text",
"id": "title",
"default": "Tile title",
"label": "Title"
},
{
"type": "text",
"id": "description",
"default": "Tile description",
"label": "Description"
},
{
"type": "url",
"id": "link",
"label": "Link"
}
]
}
],
"presets": [
{
"name": "Quick Access Tiles",
"blocks": [
{
"type": "tile",
"settings": {
"title": "Shop by Need",
"description": "Find curtains based on your specific requirements",
"link": "#"
}
},
{
"type": "tile",
"settings": {
"title": "Curtain Rods",
"description": "Complete your look with matching rods",
"link": "#"
}
},
{
"type": "tile",
"settings": {
"title": "Custom Solutions",
"description": "Tailored window treatments for unique spaces",
"link": "#"
}
},
{
"type": "tile",
"settings": {
"title": "Size Guide",
"description": "Step-by-step instructions for perfect fitting",
"link": "#"
}
}
]
}
]
}
{% endschema %}
```