s-platform-landing-section 0.1.36-beta.7 → 0.1.36-beta.8

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.
@@ -433,7 +433,7 @@ var NavBar7 = function NavBar7(props) {
433
433
  href: "/",
434
434
  className: "flex items-center gap-2"
435
435
  }, /*#__PURE__*/React__default.createElement("img", {
436
- className: "object-cover w-12 max-h-12",
436
+ className: "object-contain w-12 h-12",
437
437
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
438
438
  }), /*#__PURE__*/React__default.createElement("h3", {
439
439
  className: "text-xl md:text-2xl text-primary font-headingFont text-wrap line-clamp-2 leading-tight"
@@ -496,7 +496,7 @@ var NavBar7 = function NavBar7(props) {
496
496
  href: "/",
497
497
  className: "flex flex-1 gap-2 items-center"
498
498
  }, /*#__PURE__*/React__default.createElement("img", {
499
- className: "object-cover w-12 max-h-12",
499
+ className: "object-contain w-12 h-12",
500
500
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
501
501
  }), /*#__PURE__*/React__default.createElement("h3", {
502
502
  className: "text-xl md:text-2xl font-headingFont text-wrap text-primary line-clamp-2"
@@ -530,7 +530,7 @@ var NavBar7 = function NavBar7(props) {
530
530
  className: "flex gap-2 items-center mb-2"
531
531
  }, /*#__PURE__*/React__default.createElement("img", {
532
532
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
533
- className: "max-h-14 w-14 object-cover"
533
+ className: "h-14 w-14 object-contain"
534
534
  }), /*#__PURE__*/React__default.createElement("h3", {
535
535
  className: "text-xl font-headingFont text-primary line-clamp-1"
536
536
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName))), /*#__PURE__*/React__default.createElement("button", {
@@ -726,7 +726,7 @@ var NavBar1 = function NavBar1(props) {
726
726
  href: "/",
727
727
  className: "flex items-center gap-2"
728
728
  }, /*#__PURE__*/React__default.createElement("img", {
729
- className: "object-cover w-12 max-h-12",
729
+ className: "object-contain w-12 h-12",
730
730
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
731
731
  alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
732
732
  }), /*#__PURE__*/React__default.createElement("h3", {
@@ -788,7 +788,7 @@ var NavBar1 = function NavBar1(props) {
788
788
  href: "/",
789
789
  className: "flex flex-1 gap-2 items-center"
790
790
  }, /*#__PURE__*/React__default.createElement("img", {
791
- className: "object-cover w-12 max-h-12",
791
+ className: "object-contain w-12 h-12",
792
792
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
793
793
  alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
794
794
  }), /*#__PURE__*/React__default.createElement("h3", {
@@ -823,7 +823,7 @@ var NavBar1 = function NavBar1(props) {
823
823
  className: "flex gap-2 items-center mb-2"
824
824
  }, /*#__PURE__*/React__default.createElement("img", {
825
825
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
826
- className: "max-h-14 w-14 bg-cover bg-no-repeat"
826
+ className: "h-14 w-14 object-contain"
827
827
  }), /*#__PURE__*/React__default.createElement("div", {
828
828
  className: "text-xl font-headingFont text-primary line-clamp-1"
829
829
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName))), /*#__PURE__*/React__default.createElement("button", {
@@ -1233,7 +1233,7 @@ var Hero2 = function Hero2(props) {
1233
1233
  className: "absolute inset-y-0 right-[2%] md:right-[4%] w-[58%] md:w-[54%] flex flex-col gap-2 md:gap-4 xl:gap-6 justify-center items-start px-4 pt-4 pb-2 md:px-8 md:pt-8 md:pb-6 xl:p-8"
1234
1234
  }, shopConfig !== null && shopConfig !== void 0 && shopConfig.logoUrl ? /*#__PURE__*/React__default.createElement("img", {
1235
1235
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
1236
- className: "h-6 w-6 sm:h-10 sm:w-10 md:h-12 md:w-12 lg:w-14 lg:h-14 xl:h-20 xl:w-20"
1236
+ className: "h-6 w-6 object-contain sm:h-10 sm:w-10 md:h-12 md:w-12 lg:w-14 lg:h-14 xl:h-20 xl:w-20"
1237
1237
  }) : null, /*#__PURE__*/React__default.createElement("div", {
1238
1238
  className: "font-medium line-clamp-2 lg:line-clamp-1 text-2xl md:text-3xl lg:text-4xl xl:text-6xl",
1239
1239
  style: {
@@ -7771,19 +7771,19 @@ var Hero16 = function Hero16(props) {
7771
7771
  className: "min-h-[480px] w-full h-full relative"
7772
7772
  }, /*#__PURE__*/React__default.createElement("img", {
7773
7773
  src: data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$ = _data$data[0]) === null || _data$data$ === void 0 ? void 0 : (_data$data$$srcImages = _data$data$.srcImages) === null || _data$data$$srcImages === void 0 ? void 0 : _data$data$$srcImages[0],
7774
- className: "object-cover max-w-full h-auto"
7774
+ className: "object-cover w-full h-full min-h-[480px]"
7775
7775
  }), /*#__PURE__*/React__default.createElement("div", {
7776
7776
  className: "absolute top-0 left-0 z-0 bg-secondary opacity-80 w-full h-full"
7777
7777
  }), /*#__PURE__*/React__default.createElement("div", {
7778
- className: "w-full md:w-2/3 absolute top-[10%] md:top-1/3 left-0 z-10 px-4 xl:px-20 flex flex-col gap-6 text-textButton my-auto"
7778
+ className: "w-full sm:w-2/3 absolute z-20 top-[15%] md:top-1/3 left-0 z-10 px-4 xl:px-20 flex flex-col gap-6 text-textButton my-auto"
7779
7779
  }, /*#__PURE__*/React__default.createElement("h2", {
7780
7780
  className: "font-medium text-2xl lg:text-4xl"
7781
7781
  }, data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$ = _data$data2[0]) === null || _data$data2$ === void 0 ? void 0 : _data$data2$.title), /*#__PURE__*/React__default.createElement("div", {
7782
7782
  className: " text-lg lg:text-2xl"
7783
7783
  }, data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : (_data$data3$ = _data$data3[0]) === null || _data$data3$ === void 0 ? void 0 : _data$data3$.description), /*#__PURE__*/React__default.createElement("div", {
7784
- className: "flex flex-col md:flex-row gap-4 w-full"
7784
+ className: "flex flex-col sm:flex-row gap-4 w-full"
7785
7785
  }, /*#__PURE__*/React__default.createElement(Input, {
7786
- wrapClassName: "w-full md:w-2/3 xl:w-[85%]",
7786
+ wrapClassName: "w-2/3 sm:w-[80%] xl:w-[85%]",
7787
7787
  icons: /*#__PURE__*/React__default.createElement(LuSearch, {
7788
7788
  className: "text-gray3",
7789
7789
  size: 18
@@ -7817,31 +7817,36 @@ var Hero16 = function Hero16(props) {
7817
7817
  fill: "currentColor"
7818
7818
  }))), /*#__PURE__*/React__default.createElement("img", {
7819
7819
  src: data === null || data === void 0 ? void 0 : (_data$data4 = data.data) === null || _data$data4 === void 0 ? void 0 : (_data$data4$ = _data$data4[0]) === null || _data$data4$ === void 0 ? void 0 : (_data$data4$$srcImage = _data$data4$.srcImages) === null || _data$data4$$srcImage === void 0 ? void 0 : _data$data4$$srcImage[1],
7820
- className: "object-cover w-[28%] h-auto absolute right-10 opacity-100 bottom-0 z-10"
7820
+ className: "object-cover w-[25%] h-auto max-h-full absolute right-10 opacity-100 bottom-0 z-10"
7821
7821
  }));
7822
7822
  };
7823
7823
 
7824
7824
  var Features2 = function Features2(props) {
7825
- var data = props.data;
7825
+ var data = props.data,
7826
+ _props$Link = props.Link,
7827
+ Link = _props$Link === void 0 ? null : _props$Link;
7826
7828
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
7827
7829
  return /*#__PURE__*/React__default.createElement("div", {
7828
7830
  className: "" + SECTION_DEFAULT_CLASS
7829
7831
  }, /*#__PURE__*/React__default.createElement("div", {
7830
7832
  className: "p-6 grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6 lg:gap-8 rounded-xl bg-bgSecondary"
7831
7833
  }, sectionData && sectionData.length > 0 && sectionData.map(function (item, index) {
7832
- return /*#__PURE__*/React__default.createElement("div", {
7834
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
7835
+ Link: Link,
7836
+ href: convertURL(item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#"
7837
+ }, /*#__PURE__*/React__default.createElement("div", {
7833
7838
  className: "flex flex-col gap-2 items-center text-sm lg:text-lg font-semibold text-center",
7834
7839
  key: "dfgg-" + index
7835
7840
  }, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
7836
- className: "w-12 text-primary md:w-16 lg:w-20 xl:w-24 h-24",
7841
+ className: "w-12 text-primary md:w-16 lg:w-20 xl:w-24 aspect-square",
7837
7842
  dangerouslySetInnerHTML: {
7838
7843
  __html: configSvg(item === null || item === void 0 ? void 0 : item.svgImage)
7839
7844
  }
7840
7845
  }) : /*#__PURE__*/React__default.createElement("img", {
7841
7846
  src: item === null || item === void 0 ? void 0 : item.srcImage,
7842
- className: "w-12 md:w-16 lg:w-20 xl:w-24 text-primary",
7847
+ className: "w-12 md:w-16 lg:w-20 object-contain xl:w-24 aspect-square text-primary",
7843
7848
  alt: "logo"
7844
- }), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.title));
7849
+ }), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.title)));
7845
7850
  })));
7846
7851
  };
7847
7852
 
@@ -13006,7 +13011,9 @@ var Banner1 = function Banner1(props) {
13006
13011
  var data = props.data,
13007
13012
  shopConfigStyle = props.shopConfigStyle,
13008
13013
  _props$SectionTitle = props.SectionTitle,
13009
- SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
13014
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
13015
+ _props$Link = props.Link,
13016
+ Link = _props$Link === void 0 ? null : _props$Link;
13010
13017
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
13011
13018
  return /*#__PURE__*/React__default.createElement("div", {
13012
13019
  className: "" + SECTION_DEFAULT_CLASS
@@ -13016,12 +13023,15 @@ var Banner1 = function Banner1(props) {
13016
13023
  }), /*#__PURE__*/React__default.createElement("div", {
13017
13024
  className: "grid grid-cols-1 sm:grid-cols-3 gap-4 lg:gap-6 mt-6"
13018
13025
  }, sectionData && sectionData.length > 0 && sectionData.map(function (item, index) {
13019
- return /*#__PURE__*/React__default.createElement("img", {
13026
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
13027
+ Link: Link,
13028
+ href: convertURL(item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#"
13029
+ }, /*#__PURE__*/React__default.createElement("img", {
13020
13030
  src: item === null || item === void 0 ? void 0 : item.srcImage,
13021
13031
  alt: "",
13022
13032
  className: "rounded-2xl",
13023
13033
  key: "hnfhn-" + index
13024
- });
13034
+ }));
13025
13035
  })));
13026
13036
  };
13027
13037
 
@@ -13111,25 +13121,30 @@ var Banner3 = function Banner3(props) {
13111
13121
  };
13112
13122
 
13113
13123
  var Banner4 = function Banner4(props) {
13114
- var _data$data, _data$data$, _data$data2, _data$data2$slice;
13124
+ var _data$data, _data$data$, _data$data2, _data$data2$, _data$data3, _data$data3$, _data$data4, _data$data4$slice;
13115
13125
  var data = props.data,
13116
13126
  _props$Link = props.Link,
13117
13127
  Link = _props$Link === void 0 ? null : _props$Link;
13118
13128
  return /*#__PURE__*/React__default.createElement("div", {
13119
13129
  className: SECTION_CLASS_PADDING + " grid grid-cols-1 bg-bgSecondary md:grid-cols-3 gap-6"
13130
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
13131
+ className: "md:col-span-2",
13132
+ Link: Link,
13133
+ href: convertURL(data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$ = _data$data[0]) === null || _data$data$ === void 0 ? void 0 : _data$data$.route) || (data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$ = _data$data2[0]) === null || _data$data2$ === void 0 ? void 0 : _data$data2$.link) || "#"
13120
13134
  }, /*#__PURE__*/React__default.createElement("img", {
13121
- src: data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$ = _data$data[0]) === null || _data$data$ === void 0 ? void 0 : _data$data$.srcImage,
13122
- className: "md:col-span-2 object-cover w-full h-full rounded-[10px]"
13123
- }), /*#__PURE__*/React__default.createElement("div", {
13124
- className: "flex flex-col gap-6"
13125
- }, data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$slice = _data$data2.slice(1, 3)) === null || _data$data2$slice === void 0 ? void 0 : _data$data2$slice.map(function (item, index) {
13135
+ src: data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : (_data$data3$ = _data$data3[0]) === null || _data$data3$ === void 0 ? void 0 : _data$data3$.srcImage,
13136
+ className: " object-cover w-full h-full rounded-[10px]"
13137
+ })), /*#__PURE__*/React__default.createElement("div", {
13138
+ className: "flex flex-col gap-6 h-full"
13139
+ }, data === null || data === void 0 ? void 0 : (_data$data4 = data.data) === null || _data$data4 === void 0 ? void 0 : (_data$data4$slice = _data$data4.slice(1, 3)) === null || _data$data4$slice === void 0 ? void 0 : _data$data4$slice.map(function (item, index) {
13126
13140
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
13127
13141
  Link: Link,
13128
13142
  href: convertURL(item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#",
13143
+ className: "flex-1 min-h-0",
13129
13144
  key: "djsd-" + index
13130
13145
  }, /*#__PURE__*/React__default.createElement("img", {
13131
13146
  src: item === null || item === void 0 ? void 0 : item.srcImage,
13132
- className: "object-cover w-full h-full rounded-xl"
13147
+ className: "object-cover w-full h-full rounded-[10px]"
13133
13148
  }));
13134
13149
  })));
13135
13150
  };
@@ -13536,7 +13551,7 @@ var Footer1 = function Footer1(props) {
13536
13551
  href: "/",
13537
13552
  className: "flex items-center"
13538
13553
  }, /*#__PURE__*/React__default.createElement("img", {
13539
- className: "object-cover w-14 max-h-14",
13554
+ className: "object-contain w-14 h-14",
13540
13555
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
13541
13556
  }), /*#__PURE__*/React__default.createElement("h3", {
13542
13557
  className: "text-2xl md:text-3xl ms-2 font-headingFont ",
@@ -13679,7 +13694,7 @@ var Footer7 = function Footer7(props) {
13679
13694
  href: "/",
13680
13695
  className: "flex items-center gap-2"
13681
13696
  }, /*#__PURE__*/React__default.createElement("img", {
13682
- className: "object-cover w-14 max-h-14",
13697
+ className: "object-contain w-14 h-14",
13683
13698
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
13684
13699
  }), /*#__PURE__*/React__default.createElement("h3", {
13685
13700
  className: " text-2xl md:text-3xl ms-2 font-headingFont ",
@@ -15600,7 +15615,7 @@ var ShopHighlights2 = function ShopHighlights2(props) {
15600
15615
  }) : /*#__PURE__*/React__default.createElement("img", {
15601
15616
  src: item === null || item === void 0 ? void 0 : item.srcImage,
15602
15617
  alt: "logo",
15603
- className: "w-16 h-16 p-3 rounded-full bg-primary"
15618
+ className: "w-16 h-16 p-3 rounded-full object-cover bg-primary"
15604
15619
  }), /*#__PURE__*/React__default.createElement("div", {
15605
15620
  className: "font-medium text-lg"
15606
15621
  }, item === null || item === void 0 ? void 0 : (_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.toUpperCase()), /*#__PURE__*/React__default.createElement("div", {
@@ -15632,7 +15647,7 @@ var ShopHighlights5 = function ShopHighlights5(props) {
15632
15647
  }) : /*#__PURE__*/React__default.createElement("img", {
15633
15648
  src: item === null || item === void 0 ? void 0 : item.srcImage,
15634
15649
  alt: "logo",
15635
- className: "w-16 h-16 rounded-full bg-primary"
15650
+ className: "w-16 h-16 rounded-full object-cover bg-primary"
15636
15651
  }), /*#__PURE__*/React__default.createElement("div", {
15637
15652
  className: "font-semibold text-xl text-textHeading pt-2 border-t border-textHeading"
15638
15653
  }, item === null || item === void 0 ? void 0 : (_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.toUpperCase()), /*#__PURE__*/React__default.createElement("div", {
@@ -15662,7 +15677,7 @@ var ShopHighlights6 = function ShopHighlights6(props) {
15662
15677
  }) : /*#__PURE__*/React__default.createElement("img", {
15663
15678
  src: item === null || item === void 0 ? void 0 : item.srcImage,
15664
15679
  alt: "logo",
15665
- className: "w-16 h-16"
15680
+ className: "w-16 h-16 object-cover"
15666
15681
  }), /*#__PURE__*/React__default.createElement("div", {
15667
15682
  className: " w-44 h-0.5 rounded-full bg-primary"
15668
15683
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -15841,7 +15856,7 @@ var ShopHighlights10 = function ShopHighlights10(props) {
15841
15856
  className: "flex-grow text-lg leading-relaxed text-center text-textSecondary"
15842
15857
  }, item === null || item === void 0 ? void 0 : item.description)), /*#__PURE__*/React__default.createElement("img", {
15843
15858
  src: item === null || item === void 0 ? void 0 : item.srcImage,
15844
- className: "h-56 lg:h-72 object-cover mt-auto border-4 border-secondary"
15859
+ className: "aspect-video object-cover mt-auto border-4 border-secondary"
15845
15860
  })));
15846
15861
  })));
15847
15862
  };