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.
package/dist/index.js CHANGED
@@ -436,7 +436,7 @@ var NavBar7 = function NavBar7(props) {
436
436
  href: "/",
437
437
  className: "flex items-center gap-2"
438
438
  }, /*#__PURE__*/React__default.createElement("img", {
439
- className: "object-cover w-12 max-h-12",
439
+ className: "object-contain w-12 h-12",
440
440
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
441
441
  }), /*#__PURE__*/React__default.createElement("h3", {
442
442
  className: "text-xl md:text-2xl text-primary font-headingFont text-wrap line-clamp-2 leading-tight"
@@ -499,7 +499,7 @@ var NavBar7 = function NavBar7(props) {
499
499
  href: "/",
500
500
  className: "flex flex-1 gap-2 items-center"
501
501
  }, /*#__PURE__*/React__default.createElement("img", {
502
- className: "object-cover w-12 max-h-12",
502
+ className: "object-contain w-12 h-12",
503
503
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
504
504
  }), /*#__PURE__*/React__default.createElement("h3", {
505
505
  className: "text-xl md:text-2xl font-headingFont text-wrap text-primary line-clamp-2"
@@ -533,7 +533,7 @@ var NavBar7 = function NavBar7(props) {
533
533
  className: "flex gap-2 items-center mb-2"
534
534
  }, /*#__PURE__*/React__default.createElement("img", {
535
535
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
536
- className: "max-h-14 w-14 object-cover"
536
+ className: "h-14 w-14 object-contain"
537
537
  }), /*#__PURE__*/React__default.createElement("h3", {
538
538
  className: "text-xl font-headingFont text-primary line-clamp-1"
539
539
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName))), /*#__PURE__*/React__default.createElement("button", {
@@ -729,7 +729,7 @@ var NavBar1 = function NavBar1(props) {
729
729
  href: "/",
730
730
  className: "flex items-center gap-2"
731
731
  }, /*#__PURE__*/React__default.createElement("img", {
732
- className: "object-cover w-12 max-h-12",
732
+ className: "object-contain w-12 h-12",
733
733
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
734
734
  alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
735
735
  }), /*#__PURE__*/React__default.createElement("h3", {
@@ -791,7 +791,7 @@ var NavBar1 = function NavBar1(props) {
791
791
  href: "/",
792
792
  className: "flex flex-1 gap-2 items-center"
793
793
  }, /*#__PURE__*/React__default.createElement("img", {
794
- className: "object-cover w-12 max-h-12",
794
+ className: "object-contain w-12 h-12",
795
795
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
796
796
  alt: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName
797
797
  }), /*#__PURE__*/React__default.createElement("h3", {
@@ -826,7 +826,7 @@ var NavBar1 = function NavBar1(props) {
826
826
  className: "flex gap-2 items-center mb-2"
827
827
  }, /*#__PURE__*/React__default.createElement("img", {
828
828
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
829
- className: "max-h-14 w-14 bg-cover bg-no-repeat"
829
+ className: "h-14 w-14 object-contain"
830
830
  }), /*#__PURE__*/React__default.createElement("div", {
831
831
  className: "text-xl font-headingFont text-primary line-clamp-1"
832
832
  }, shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.shopName))), /*#__PURE__*/React__default.createElement("button", {
@@ -1236,7 +1236,7 @@ var Hero2 = function Hero2(props) {
1236
1236
  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"
1237
1237
  }, shopConfig !== null && shopConfig !== void 0 && shopConfig.logoUrl ? /*#__PURE__*/React__default.createElement("img", {
1238
1238
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl,
1239
- 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"
1239
+ 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"
1240
1240
  }) : null, /*#__PURE__*/React__default.createElement("div", {
1241
1241
  className: "font-medium line-clamp-2 lg:line-clamp-1 text-2xl md:text-3xl lg:text-4xl xl:text-6xl",
1242
1242
  style: {
@@ -7774,19 +7774,19 @@ var Hero16 = function Hero16(props) {
7774
7774
  className: "min-h-[480px] w-full h-full relative"
7775
7775
  }, /*#__PURE__*/React__default.createElement("img", {
7776
7776
  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],
7777
- className: "object-cover max-w-full h-auto"
7777
+ className: "object-cover w-full h-full min-h-[480px]"
7778
7778
  }), /*#__PURE__*/React__default.createElement("div", {
7779
7779
  className: "absolute top-0 left-0 z-0 bg-secondary opacity-80 w-full h-full"
7780
7780
  }), /*#__PURE__*/React__default.createElement("div", {
7781
- 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"
7781
+ 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"
7782
7782
  }, /*#__PURE__*/React__default.createElement("h2", {
7783
7783
  className: "font-medium text-2xl lg:text-4xl"
7784
7784
  }, 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", {
7785
7785
  className: " text-lg lg:text-2xl"
7786
7786
  }, 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", {
7787
- className: "flex flex-col md:flex-row gap-4 w-full"
7787
+ className: "flex flex-col sm:flex-row gap-4 w-full"
7788
7788
  }, /*#__PURE__*/React__default.createElement(Input, {
7789
- wrapClassName: "w-full md:w-2/3 xl:w-[85%]",
7789
+ wrapClassName: "w-2/3 sm:w-[80%] xl:w-[85%]",
7790
7790
  icons: /*#__PURE__*/React__default.createElement(lu.LuSearch, {
7791
7791
  className: "text-gray3",
7792
7792
  size: 18
@@ -7820,31 +7820,36 @@ var Hero16 = function Hero16(props) {
7820
7820
  fill: "currentColor"
7821
7821
  }))), /*#__PURE__*/React__default.createElement("img", {
7822
7822
  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],
7823
- className: "object-cover w-[28%] h-auto absolute right-10 opacity-100 bottom-0 z-10"
7823
+ className: "object-cover w-[25%] h-auto max-h-full absolute right-10 opacity-100 bottom-0 z-10"
7824
7824
  }));
7825
7825
  };
7826
7826
 
7827
7827
  var Features2 = function Features2(props) {
7828
- var data = props.data;
7828
+ var data = props.data,
7829
+ _props$Link = props.Link,
7830
+ Link = _props$Link === void 0 ? null : _props$Link;
7829
7831
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
7830
7832
  return /*#__PURE__*/React__default.createElement("div", {
7831
7833
  className: "" + SECTION_DEFAULT_CLASS
7832
7834
  }, /*#__PURE__*/React__default.createElement("div", {
7833
7835
  className: "p-6 grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6 lg:gap-8 rounded-xl bg-bgSecondary"
7834
7836
  }, sectionData && sectionData.length > 0 && sectionData.map(function (item, index) {
7835
- return /*#__PURE__*/React__default.createElement("div", {
7837
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
7838
+ Link: Link,
7839
+ href: convertURL(item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#"
7840
+ }, /*#__PURE__*/React__default.createElement("div", {
7836
7841
  className: "flex flex-col gap-2 items-center text-sm lg:text-lg font-semibold text-center",
7837
7842
  key: "dfgg-" + index
7838
7843
  }, item !== null && item !== void 0 && item.svgImage ? /*#__PURE__*/React__default.createElement("div", {
7839
- className: "w-12 text-primary md:w-16 lg:w-20 xl:w-24 h-24",
7844
+ className: "w-12 text-primary md:w-16 lg:w-20 xl:w-24 aspect-square",
7840
7845
  dangerouslySetInnerHTML: {
7841
7846
  __html: configSvg(item === null || item === void 0 ? void 0 : item.svgImage)
7842
7847
  }
7843
7848
  }) : /*#__PURE__*/React__default.createElement("img", {
7844
7849
  src: item === null || item === void 0 ? void 0 : item.srcImage,
7845
- className: "w-12 md:w-16 lg:w-20 xl:w-24 text-primary",
7850
+ className: "w-12 md:w-16 lg:w-20 object-contain xl:w-24 aspect-square text-primary",
7846
7851
  alt: "logo"
7847
- }), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.title));
7852
+ }), /*#__PURE__*/React__default.createElement("div", null, item === null || item === void 0 ? void 0 : item.title)));
7848
7853
  })));
7849
7854
  };
7850
7855
 
@@ -13009,7 +13014,9 @@ var Banner1 = function Banner1(props) {
13009
13014
  var data = props.data,
13010
13015
  shopConfigStyle = props.shopConfigStyle,
13011
13016
  _props$SectionTitle = props.SectionTitle,
13012
- SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
13017
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle,
13018
+ _props$Link = props.Link,
13019
+ Link = _props$Link === void 0 ? null : _props$Link;
13013
13020
  var sectionData = data === null || data === void 0 ? void 0 : data.data;
13014
13021
  return /*#__PURE__*/React__default.createElement("div", {
13015
13022
  className: "" + SECTION_DEFAULT_CLASS
@@ -13019,12 +13026,15 @@ var Banner1 = function Banner1(props) {
13019
13026
  }), /*#__PURE__*/React__default.createElement("div", {
13020
13027
  className: "grid grid-cols-1 sm:grid-cols-3 gap-4 lg:gap-6 mt-6"
13021
13028
  }, sectionData && sectionData.length > 0 && sectionData.map(function (item, index) {
13022
- return /*#__PURE__*/React__default.createElement("img", {
13029
+ return /*#__PURE__*/React__default.createElement(LinkToPage, {
13030
+ Link: Link,
13031
+ href: convertURL(item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#"
13032
+ }, /*#__PURE__*/React__default.createElement("img", {
13023
13033
  src: item === null || item === void 0 ? void 0 : item.srcImage,
13024
13034
  alt: "",
13025
13035
  className: "rounded-2xl",
13026
13036
  key: "hnfhn-" + index
13027
- });
13037
+ }));
13028
13038
  })));
13029
13039
  };
13030
13040
 
@@ -13114,25 +13124,30 @@ var Banner3 = function Banner3(props) {
13114
13124
  };
13115
13125
 
13116
13126
  var Banner4 = function Banner4(props) {
13117
- var _data$data, _data$data$, _data$data2, _data$data2$slice;
13127
+ var _data$data, _data$data$, _data$data2, _data$data2$, _data$data3, _data$data3$, _data$data4, _data$data4$slice;
13118
13128
  var data = props.data,
13119
13129
  _props$Link = props.Link,
13120
13130
  Link = _props$Link === void 0 ? null : _props$Link;
13121
13131
  return /*#__PURE__*/React__default.createElement("div", {
13122
13132
  className: SECTION_CLASS_PADDING + " grid grid-cols-1 bg-bgSecondary md:grid-cols-3 gap-6"
13133
+ }, /*#__PURE__*/React__default.createElement(LinkToPage, {
13134
+ className: "md:col-span-2",
13135
+ Link: Link,
13136
+ 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) || "#"
13123
13137
  }, /*#__PURE__*/React__default.createElement("img", {
13124
- 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,
13125
- className: "md:col-span-2 object-cover w-full h-full rounded-[10px]"
13126
- }), /*#__PURE__*/React__default.createElement("div", {
13127
- className: "flex flex-col gap-6"
13128
- }, 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) {
13138
+ 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,
13139
+ className: " object-cover w-full h-full rounded-[10px]"
13140
+ })), /*#__PURE__*/React__default.createElement("div", {
13141
+ className: "flex flex-col gap-6 h-full"
13142
+ }, 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) {
13129
13143
  return /*#__PURE__*/React__default.createElement(LinkToPage, {
13130
13144
  Link: Link,
13131
13145
  href: convertURL(item === null || item === void 0 ? void 0 : item.route) || (item === null || item === void 0 ? void 0 : item.link) || "#",
13146
+ className: "flex-1 min-h-0",
13132
13147
  key: "djsd-" + index
13133
13148
  }, /*#__PURE__*/React__default.createElement("img", {
13134
13149
  src: item === null || item === void 0 ? void 0 : item.srcImage,
13135
- className: "object-cover w-full h-full rounded-xl"
13150
+ className: "object-cover w-full h-full rounded-[10px]"
13136
13151
  }));
13137
13152
  })));
13138
13153
  };
@@ -13539,7 +13554,7 @@ var Footer1 = function Footer1(props) {
13539
13554
  href: "/",
13540
13555
  className: "flex items-center"
13541
13556
  }, /*#__PURE__*/React__default.createElement("img", {
13542
- className: "object-cover w-14 max-h-14",
13557
+ className: "object-contain w-14 h-14",
13543
13558
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
13544
13559
  }), /*#__PURE__*/React__default.createElement("h3", {
13545
13560
  className: "text-2xl md:text-3xl ms-2 font-headingFont ",
@@ -13682,7 +13697,7 @@ var Footer7 = function Footer7(props) {
13682
13697
  href: "/",
13683
13698
  className: "flex items-center gap-2"
13684
13699
  }, /*#__PURE__*/React__default.createElement("img", {
13685
- className: "object-cover w-14 max-h-14",
13700
+ className: "object-contain w-14 h-14",
13686
13701
  src: shopConfig === null || shopConfig === void 0 ? void 0 : shopConfig.logoUrl
13687
13702
  }), /*#__PURE__*/React__default.createElement("h3", {
13688
13703
  className: " text-2xl md:text-3xl ms-2 font-headingFont ",
@@ -15603,7 +15618,7 @@ var ShopHighlights2 = function ShopHighlights2(props) {
15603
15618
  }) : /*#__PURE__*/React__default.createElement("img", {
15604
15619
  src: item === null || item === void 0 ? void 0 : item.srcImage,
15605
15620
  alt: "logo",
15606
- className: "w-16 h-16 p-3 rounded-full bg-primary"
15621
+ className: "w-16 h-16 p-3 rounded-full object-cover bg-primary"
15607
15622
  }), /*#__PURE__*/React__default.createElement("div", {
15608
15623
  className: "font-medium text-lg"
15609
15624
  }, 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", {
@@ -15635,7 +15650,7 @@ var ShopHighlights5 = function ShopHighlights5(props) {
15635
15650
  }) : /*#__PURE__*/React__default.createElement("img", {
15636
15651
  src: item === null || item === void 0 ? void 0 : item.srcImage,
15637
15652
  alt: "logo",
15638
- className: "w-16 h-16 rounded-full bg-primary"
15653
+ className: "w-16 h-16 rounded-full object-cover bg-primary"
15639
15654
  }), /*#__PURE__*/React__default.createElement("div", {
15640
15655
  className: "font-semibold text-xl text-textHeading pt-2 border-t border-textHeading"
15641
15656
  }, 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", {
@@ -15665,7 +15680,7 @@ var ShopHighlights6 = function ShopHighlights6(props) {
15665
15680
  }) : /*#__PURE__*/React__default.createElement("img", {
15666
15681
  src: item === null || item === void 0 ? void 0 : item.srcImage,
15667
15682
  alt: "logo",
15668
- className: "w-16 h-16"
15683
+ className: "w-16 h-16 object-cover"
15669
15684
  }), /*#__PURE__*/React__default.createElement("div", {
15670
15685
  className: " w-44 h-0.5 rounded-full bg-primary"
15671
15686
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -15844,7 +15859,7 @@ var ShopHighlights10 = function ShopHighlights10(props) {
15844
15859
  className: "flex-grow text-lg leading-relaxed text-center text-textSecondary"
15845
15860
  }, item === null || item === void 0 ? void 0 : item.description)), /*#__PURE__*/React__default.createElement("img", {
15846
15861
  src: item === null || item === void 0 ? void 0 : item.srcImage,
15847
- className: "h-56 lg:h-72 object-cover mt-auto border-4 border-secondary"
15862
+ className: "aspect-video object-cover mt-auto border-4 border-secondary"
15848
15863
  })));
15849
15864
  })));
15850
15865
  };