diff --git a/assets/output.css b/assets/output.css index e75d7cdd..33b46440 100644 --- a/assets/output.css +++ b/assets/output.css @@ -588,6 +588,10 @@ video { position: sticky; } +.isolate { + isolation: isolate; +} + .mx-auto { margin-left: auto; margin-right: auto; diff --git a/sections/custom-liquid.liquid b/sections/custom-liquid.liquid new file mode 100644 index 00000000..291fb913 --- /dev/null +++ b/sections/custom-liquid.liquid @@ -0,0 +1,31 @@ +
+ {{ section.settings.custom_liquid }} +
+ +{% schema %} +{ + "name": "Custom Liquid", + "tag": "section", + "class": "section", + "settings": [ + { + "type": "liquid", + "id": "custom_liquid", + "label": "Custom Liquid", + "info": "Add app snippets or other code to create advanced customizations. [Learn more](https://shopify.dev/docs/api/liquid)" + }, + { + "type": "color", + "id": "background_color", + "label": "Background Color", + "info": "Choose a background color for the section." + } + ], + "presets": [ + { + "name": "Custom Liquid" + } + ] + } + +{% endschema %} diff --git a/sections/dev__featured-blogs.liquid b/sections/dev__featured-blogs.liquid index 302879bf..7ce318d3 100644 --- a/sections/dev__featured-blogs.liquid +++ b/sections/dev__featured-blogs.liquid @@ -2,7 +2,7 @@ {% assign blog = blogs[blog_handle] %} {% if section.settings.show_view_all %} - {{ section.settings.view_all_text }} + {{ section.settings.view_all_text }} {% endif %} @@ -194,4 +198,3 @@ ] } {% endschema %} - diff --git a/sections/dev_collage.liquid b/sections/dev_collage.liquid new file mode 100644 index 00000000..db54da0c --- /dev/null +++ b/sections/dev_collage.liquid @@ -0,0 +1,223 @@ +{% assign section_id = section.id %} +{% assign section_classes = 'section-' | append: section_id | append: '-padding' %} + +
+
+ {% if section.settings.heading != blank %} +

+ {{ section.settings.heading }} +

+ {% endif %} +
+ {% for block in section.blocks %} +
+ {% case block.type %} + {% when 'image' %} +
+
+ {{ block.settings.image | img_url: 'master' | img_tag: 'collage-image' }} +
+
+ {% when 'product' %} +
+ {% if block.settings.second_image %} + {{ block.settings.second_image | img_url: 'master' | img_tag: 'second-image' }} + {% else %} +
+

{{ block.settings.product.title }}

+

{{ block.settings.product.description }}

+

Price: {{ block.settings.product.price | money }}

+

SKU: {{ block.settings.product.sku }}

+ + Shop Now +
+ {% endif %} +
+ {% when 'collection' %} +
+
+

{{ block.settings.collection.title }}

+

{{ block.settings.collection.description }}

+ + {{ block.settings.collection_text | default: block.settings.collection.title }} +
+
+ {% when 'video' %} +
+
+ {{ block.settings.cover_image | img_url: 'master' | img_tag: 'video-cover' }} +
+ +
+ {% endcase %} +
+ {% endfor %} +
+
+
+ +{% schema %} +{ + "name": "Custom Collage", + "tag": "section", + "class": "section", + "settings": [ + { + "type": "inline_richtext", + "id": "heading", + "default": "Multimedia Collage", + "label": "Heading" + }, + { + "type": "select", + "id": "heading_size", + "options": [ + { "value": "h2", "label": "H2" }, + { "value": "h1", "label": "H1" }, + { "value": "h0", "label": "H0" } + ], + "default": "h1", + "label": "Heading Size" + }, + { + "type": "select", + "id": "desktop_layout", + "options": [ + { "value": "left", "label": "Left" }, + { "value": "right", "label": "Right" } + ], + "default": "left", + "label": "Desktop Layout" + }, + { + "type": "select", + "id": "mobile_layout", + "options": [ + { "value": "collage", "label": "Collage" }, + { "value": "column", "label": "Column" } + ], + "default": "column", + "label": "Mobile Layout" + }, + { + "type": "select", + "id": "card_styles", + "options": [ + { "value": "none", "label": "None" }, + { "value": "product-card-wrapper", "label": "Product Card Wrapper" } + ], + "default": "product-card-wrapper", + "label": "Card Styles" + }, + { + "type": "color_scheme", + "id": "color_scheme", + "label": "Color Scheme", + "default": "scheme-1" + }, + { + "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": "image", + "name": "Image", + "settings": [ + { + "type": "image_picker", + "id": "image", + "label": "Image" + } + ] + }, + { + "type": "product", + "name": "Product", + "settings": [ + { + "type": "product", + "id": "product", + "label": "Product" + }, + { + "type": "checkbox", + "id": "second_image", + "default": false, + "label": "Second Image" + } + ] + }, + { + "type": "collection", + "name": "Collection", + "settings": [ + { + "type": "collection", + "id": "collection", + "label": "Collection" + }, + { + "type": "text", + "id": "collection_text", + "label": "Collection Display Text", + "info": "Defaults to collection name if empty" + } + ] + }, + { + "type": "video", + "name": "Video", + "settings": [ + { + "type": "image_picker", + "id": "cover_image", + "label": "Video Cover Image" + }, + { + "type": "video_url", + "id": "video_url", + "accept": ["youtube", "vimeo"], + "default": "https://www.youtube.com/watch?v=_9VUPq3SxOc", + "label": "Video URL", + "info": "Enter the video URL" + } + ] + } + ], + "max_blocks": 3, + "presets": [ + { + "name": "Custom Collage", + "blocks": [ + { + "type": "image" + }, + { + "type": "product" + }, + { + "type": "collection" + } + ] + } + ] +} +{% endschema %} diff --git a/sections/featured-collection.liquid b/sections/featured-collection.liquid index d4b36122..09b34609 100644 --- a/sections/featured-collection.liquid +++ b/sections/featured-collection.liquid @@ -1,156 +1,156 @@ - - - - -{% schema %} -{ - "name": "Featured Collection", - "settings": [ - { - "type": "text", - "label": "Heading 1", - "id": "heading1", - "default": "YUMMYGUMS" - }, - { - "type": "text", - "label": "Heading 2", - "id": "heading2", - "default": "FOR ANY PURPOSE" - }, - { - "type": "url", - "label": "Link URL", - "id": "linkUrl" - }, - { - "type": "text", - "label": "Tags (Comma Separated)", - "id": "tags", - "default": "all,multivitamin,wellness_beauty,single_support,kids" - } - ], - "blocks": [ - { - "type": "product", - "name": "Product", - "settings": [ - { - "type": "text", - "id": "category", - "label": "Category" - }, - { - "type": "text", - "id": "title", - "label": "Title" - }, - { - "type": "textarea", - "id": "description", - "label": "Description" - }, - { - "type": "text", - "id": "price", - "label": "Price" - }, - { - "type": "text", - "id": "strikeThroughPrice", - "label": "Original Price" - }, - { - "type": "image_picker", - "id": "image", - "label": "Image" - }, - { - "type": "text", - "id": "deal", - "label": "Deal" - } - ] - } - ], - "presets": [ - { - "name": "Featured Collection" - } - ] -} -{% endschema %} + + + + +{% schema %} +{ + "name": "Featured Collection", + "settings": [ + { + "type": "text", + "label": "Heading 1", + "id": "heading1", + "default": "YUMMYGUMS" + }, + { + "type": "text", + "label": "Heading 2", + "id": "heading2", + "default": "FOR ANY PURPOSE" + }, + { + "type": "url", + "label": "Link URL", + "id": "linkUrl" + }, + { + "type": "text", + "label": "Tags (Comma Separated)", + "id": "tags", + "default": "all,multivitamin,wellness_beauty,single_support,kids" + } + ], + "blocks": [ + { + "type": "product", + "name": "Product", + "settings": [ + { + "type": "text", + "id": "category", + "label": "Category" + }, + { + "type": "text", + "id": "title", + "label": "Title" + }, + { + "type": "textarea", + "id": "description", + "label": "Description" + }, + { + "type": "text", + "id": "price", + "label": "Price" + }, + { + "type": "text", + "id": "strikeThroughPrice", + "label": "Original Price" + }, + { + "type": "image_picker", + "id": "image", + "label": "Image" + }, + { + "type": "text", + "id": "deal", + "label": "Deal" + } + ] + } + ], + "presets": [ + { + "name": "Featured Collection" + } + ] +} +{% endschema %}