s-platform-landing-section 0.1.32 → 0.1.33

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
@@ -21,8 +21,8 @@ require('slick-carousel/slick/slick.css');
21
21
  require('slick-carousel/slick/slick-theme.css');
22
22
  var ai = require('react-icons/ai');
23
23
  var go = require('react-icons/go');
24
- var hi = require('react-icons/hi');
25
24
  var ri = require('react-icons/ri');
25
+ var hi = require('react-icons/hi');
26
26
  var gi = require('react-icons/gi');
27
27
 
28
28
  var Button = function Button(props) {
@@ -10154,7 +10154,7 @@ var ProductList7 = function ProductList7(props) {
10154
10154
  }, /*#__PURE__*/React__default.createElement(SectionTitle, {
10155
10155
  data: data,
10156
10156
  shopConfigStyle: shopConfigStyle
10157
- }), /*#__PURE__*/React__default.createElement("div", {
10157
+ }), (products === null || products === void 0 ? void 0 : products.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
10158
10158
  className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-10 mt-12"
10159
10159
  }, products === null || products === void 0 ? void 0 : (_products$slice = products.slice(0, 4)) === null || _products$slice === void 0 ? void 0 : _products$slice.map(function (product, index) {
10160
10160
  return /*#__PURE__*/React__default.createElement(ProductItem, {
@@ -10163,14 +10163,14 @@ var ProductList7 = function ProductList7(props) {
10163
10163
  key: index,
10164
10164
  product: product === null || product === void 0 ? void 0 : product.productInfo
10165
10165
  });
10166
- })), (products === null || products === void 0 ? void 0 : products.length) > 4 ? /*#__PURE__*/React__default.createElement(LinkToPage, {
10166
+ })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null), (products === null || products === void 0 ? void 0 : products.length) > 4 ? /*#__PURE__*/React__default.createElement(LinkToPage, {
10167
10167
  href: "/san-pham",
10168
10168
  Link: Link
10169
10169
  }, /*#__PURE__*/React__default.createElement(Button, {
10170
10170
  label: "Xem tất cả",
10171
10171
  shopConfigStyle: shopConfigStyle,
10172
10172
  className: "mt-12"
10173
- })) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null)), /*#__PURE__*/React__default.createElement(Dash, {
10173
+ })) : null), /*#__PURE__*/React__default.createElement(Dash, {
10174
10174
  color: secondary
10175
10175
  }));
10176
10176
  };
@@ -10433,7 +10433,7 @@ var Products3 = function Products3(props) {
10433
10433
  }, /*#__PURE__*/React__default.createElement("div", {
10434
10434
  className: "text-xl"
10435
10435
  }, "Danh m\u1EE5c s\u1EA3n ph\u1EA9m"), /*#__PURE__*/React__default.createElement("div", {
10436
- className: "overflow-y-auto max-h-96"
10436
+ className: "overflow-y-auto max-h-96 scroll-container pr-3"
10437
10437
  }, /*#__PURE__*/React__default.createElement("div", {
10438
10438
  className: "flex gap-2 py-4 border-b border-stroke cursor-pointer hover:text-primary " + (!(categorySelected !== null && categorySelected !== void 0 && categorySelected.categoryId) ? "text-primary" : "text-textSecondary"),
10439
10439
  onClick: function onClick() {
@@ -12154,6 +12154,101 @@ function SvgVnpay(props) {
12154
12154
  }))));
12155
12155
  }
12156
12156
 
12157
+ var dataFake = [{
12158
+ title: "Đa dạng thanh toán",
12159
+ data: [{
12160
+ svgImage: "",
12161
+ srcImage: /*#__PURE__*/React__default.createElement(fa6.FaArrowsRotate, null),
12162
+ label: "Chuyển khoản",
12163
+ link: ""
12164
+ }, {
12165
+ svgImage: "",
12166
+ srcImage: /*#__PURE__*/React__default.createElement(bs.BsCurrencyDollar, null),
12167
+ label: "Tiền mặt",
12168
+ link: ""
12169
+ }, {
12170
+ srcImage: /*#__PURE__*/React__default.createElement(SvgVnpay, null),
12171
+ svgImage: "",
12172
+ label: "VNPay",
12173
+ link: ""
12174
+ }, {
12175
+ srcImage: /*#__PURE__*/React__default.createElement(SvgVietQr, null),
12176
+ svgImage: "",
12177
+ label: "VietQR",
12178
+ link: ""
12179
+ }, {
12180
+ srcImage: /*#__PURE__*/React__default.createElement(go.GoCreditCard, null),
12181
+ svgImage: "",
12182
+ label: "Thẻ ATM",
12183
+ link: ""
12184
+ }, {
12185
+ srcImage: /*#__PURE__*/React__default.createElement(fa.FaCcVisa, null),
12186
+ svgImage: "",
12187
+ label: "Thẻ Quốc tế",
12188
+ link: ""
12189
+ }]
12190
+ }, {
12191
+ title: "Thông tin hữu ích",
12192
+ data: [{
12193
+ srcImage: /*#__PURE__*/React__default.createElement(io.IoMdCheckmarkCircleOutline, null),
12194
+ svgImage: "",
12195
+ label: "Chính sách bảo hành",
12196
+ link: ""
12197
+ }, {
12198
+ srcImage: /*#__PURE__*/React__default.createElement(fa6.FaArrowsRotate, null),
12199
+ svgImage: "",
12200
+ label: "Chính sách đổi trả",
12201
+ link: ""
12202
+ }, {
12203
+ srcImage: /*#__PURE__*/React__default.createElement(lu.LuShoppingBag, null),
12204
+ svgImage: "",
12205
+ label: "Hướng dẫn mua hàng online",
12206
+ link: ""
12207
+ }, {
12208
+ srcImage: /*#__PURE__*/React__default.createElement(ai.AiOutlineInfoCircle, null),
12209
+ svgImage: "",
12210
+ label: "Giới thiệu về chúng tôi",
12211
+ link: ""
12212
+ }]
12213
+ }, {
12214
+ title: "Mạng xã hội",
12215
+ data: [{
12216
+ srcImage: /*#__PURE__*/React__default.createElement(fa.FaFacebookF, {
12217
+ className: "p-1 rounded bg-primary text-white"
12218
+ }),
12219
+ svgImage: "",
12220
+ label: "Facebook",
12221
+ link: ""
12222
+ }, {
12223
+ srcImage: /*#__PURE__*/React__default.createElement(fa.FaYoutube, {
12224
+ className: "p-1 rounded bg-primary text-white"
12225
+ }),
12226
+ svgImage: "",
12227
+ label: "Youtube",
12228
+ link: ""
12229
+ }, {
12230
+ srcImage: /*#__PURE__*/React__default.createElement(fa.FaTiktok, {
12231
+ className: "p-1 rounded bg-primary text-white"
12232
+ }),
12233
+ svgImage: "",
12234
+ label: "Tiktok",
12235
+ link: ""
12236
+ }, {
12237
+ srcImage: /*#__PURE__*/React__default.createElement(ri.RiMessengerFill, {
12238
+ className: "p-1 rounded bg-primary text-white"
12239
+ }),
12240
+ svgImage: "",
12241
+ label: "Messenger",
12242
+ link: ""
12243
+ }, {
12244
+ srcImage: /*#__PURE__*/React__default.createElement(si.SiZalo, {
12245
+ className: "p-1 rounded bg-primary text-white"
12246
+ }),
12247
+ svgImage: "",
12248
+ label: "Zalo",
12249
+ link: ""
12250
+ }]
12251
+ }];
12157
12252
  var Links1 = function Links1(props) {
12158
12253
  var data = props.data,
12159
12254
  _props$SectionTitle = props.SectionTitle,
@@ -12167,26 +12262,23 @@ var Links1 = function Links1(props) {
12167
12262
  shopConfigStyle: shopConfigStyle
12168
12263
  }), /*#__PURE__*/React__default.createElement("div", {
12169
12264
  className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6 lg:gap-8 w-full bg-background"
12170
- }, [1, 2, 3].map(function (item, index) {
12265
+ }, dataFake === null || dataFake === void 0 ? void 0 : dataFake.map(function (item, index) {
12266
+ var _item$data;
12171
12267
  return /*#__PURE__*/React__default.createElement("div", {
12172
- key: "qwikf-" + index + " "
12268
+ key: "qwikf-" + index + " ",
12269
+ className: "h-full overflow-hidden rounded-b-xl"
12173
12270
  }, /*#__PURE__*/React__default.createElement("h3", {
12174
12271
  className: "text-lg md:text-2xl font-semibold mb-4"
12175
- }, "\u0110a d\u1EA1ng thanh to\xE1n"), /*#__PURE__*/React__default.createElement("div", {
12176
- className: "leading-10 flex flex-col bg-background2 p-4 rounded-xl bg-bgSecondary "
12177
- }, /*#__PURE__*/React__default.createElement("label", null, /*#__PURE__*/React__default.createElement(fa6.FaArrowsRotate, {
12178
- className: "inline-block\t text-primary text-2xl mb-1 me-3"
12179
- }), " Chuy\u1EC3n kho\u1EA3n"), /*#__PURE__*/React__default.createElement("label", null, /*#__PURE__*/React__default.createElement(bs.BsCurrencyDollar, {
12180
- className: "inline-block\t text-primary text-2xl mb-1 me-3"
12181
- }), " Ti\u1EC1n m\u1EB7t"), /*#__PURE__*/React__default.createElement("label", {
12182
- className: "flex items-center gap-[18px]"
12183
- }, /*#__PURE__*/React__default.createElement(SvgVietQr, null), "VietQR"), /*#__PURE__*/React__default.createElement("label", {
12184
- className: "flex items-center gap-[18px]"
12185
- }, /*#__PURE__*/React__default.createElement(SvgVnpay, null), "VNPay"), /*#__PURE__*/React__default.createElement("label", null, /*#__PURE__*/React__default.createElement(go.GoCreditCard, {
12186
- className: "inline-block\t text-primary text-2xl mb-1 me-3"
12187
- }), " Th\u1EBB ATM"), /*#__PURE__*/React__default.createElement("label", null, /*#__PURE__*/React__default.createElement(si.SiVisa, {
12188
- className: "inline-block\t text-primary text-2xl mb-1 me-3"
12189
- }), " Th\u1EBB Qu\u1ED1c t\u1EBF")));
12272
+ }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", {
12273
+ className: "leading-10 flex flex-col bg-background2 p-4 rounded-xl bg-bgSecondary h-full"
12274
+ }, item === null || item === void 0 ? void 0 : (_item$data = item.data) === null || _item$data === void 0 ? void 0 : _item$data.map(function (it, idx) {
12275
+ return /*#__PURE__*/React__default.createElement("label", {
12276
+ className: "flex gap-4 items-center",
12277
+ key: "ikgf-" + idx
12278
+ }, /*#__PURE__*/React__default.createElement("div", {
12279
+ className: "text-primary text-2xl"
12280
+ }, it === null || it === void 0 ? void 0 : it.srcImage), it === null || it === void 0 ? void 0 : it.label);
12281
+ })));
12190
12282
  })));
12191
12283
  };
12192
12284