zz-shopify-components 0.36.1-beta.2 → 0.36.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zz-shopify-components",
3
- "version": "0.36.1-beta.2",
3
+ "version": "0.36.1-beta.3",
4
4
  "description": "Reusable Shopify components for theme projects",
5
5
  "keywords": [
6
6
  "shopify",
@@ -915,7 +915,7 @@
915
915
  {% render 'zz-img',
916
916
  pc_image: banner.settings.banner,
917
917
  mb_image: banner.settings.banner_mb,
918
- image_alt: banner.settings.title | escape,
918
+ image_alt: banner.settings.title,
919
919
  class_name: "zz-swiper-banner-img-video",
920
920
  %}
921
921
 
@@ -960,14 +960,14 @@
960
960
  <div
961
961
  class='center-content tw-absolute lg:tw-left-[50%] lg:tw-top-[50%] lg:tw-translate-x-[-50%] lg:tw-translate-y-[-50%] tw-z-10 max-lg:tw-h-full max-lg:tw-top-0 max-lg:tw-left-0 max-lg:tw-w-full max-lg:tw-pt-[90px] tw-box-border max-lg:tw-flex max-lg:tw-flex-col max-lg:tw-items-center'
962
962
  >
963
- <div class='swiper-content-text {% if banner.settings.banner_type == 'image_type' or banner.settings.banner_type == 'title_description_type' %} lg:tw-w-[560px] {% else %} lg:tw-w-[784px] {% endif %}'>
963
+ <div class='swiper-content-text {% if banner.settings.banner_type == 'image_type' %} lg:tw-w-[560px] {% else %} lg:tw-w-[784px] {% endif %}'>
964
964
  {%- if banner.settings.banner_type == 'product_type' or banner.settings.banner_type == 'title_description_type' or banner.settings.banner_type == 'discount_sale_type' -%}
965
965
  {% if banner.settings.banner_type == 'product_type' and banner.settings.product_logo != blank %}
966
966
  <div class="zz-swiper-banner-img-logo max-lg:tw-mb-[1.8rem] lg:tw-mb-[30px] max-lg:tw-w-[33.5rem] lg:tw-mb-[20px] lg:tw-h-[52px]">
967
967
  {% render 'zz-img',
968
968
  pc_image: banner.settings.product_logo,
969
969
  mb_image: banner.settings.product_logo_mb,
970
- image_alt: banner.settings.banner_name | escape,
970
+ image_alt: banner.settings.banner_name,
971
971
  class_name: "lg:!tw-h-full lg:!tw-w-auto max-lg:!tw-w-full max-lg:!tw-h-auto",
972
972
  %}
973
973
  </div>
@@ -1116,8 +1116,18 @@
1116
1116
  {% endif %}
1117
1117
  }
1118
1118
  if(bannerlink) {
1119
- {% if banner.settings.linksbanner != blank %}
1120
- bindSiteJump(bannerlink, {{ banner.settings.linksbanner | json }})
1119
+ {% if banner.settings.btn_type == 'none' %}
1120
+ {% if banner.settings.linksbanner != blank %}
1121
+ bindSiteJump(bannerlink, {{ banner.settings.linksbanner | json }})
1122
+ {% endif %}
1123
+ {% else %}
1124
+ {% if banner.settings.function_type == 'link' and banner.settings.link != blank %}
1125
+ bannerlink.addEventListener('click', () => {
1126
+ window.location.href = "{{ banner.settings.link }}";
1127
+ })
1128
+ {% elsif banner.settings.function_type == 'link_map' and banner.settings.links != blank %}
1129
+ bindSiteJump(bannerlink, {{ banner.settings.links | json }})
1130
+ {% endif %}
1121
1131
  {% endif %}
1122
1132
  }
1123
1133
  if(buttonTwo) {
@@ -228,6 +228,8 @@
228
228
  text: block.settings.pc_text,
229
229
  mb_text: block.settings.mb_text,
230
230
  text_color: block.settings.text_color,
231
+ mobile_font_size: 14,
232
+ pc_font_size: 16,
231
233
  class_name: 'tab-content-text tw-text-center max-lg:tw-text-left'
232
234
  %}
233
235
  <style>