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

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
@@ -120,28 +120,28 @@ var genProductSlugVi = function genProductSlugVi(productName, id) {
120
120
  };
121
121
  var getLinkProductDetail = function getLinkProductDetail(product) {
122
122
  var slug = genProductSlugVi(product === null || product === void 0 ? void 0 : product.productName, product === null || product === void 0 ? void 0 : product.productId);
123
- return "/san-pham/" + slug;
123
+ return "/san-pham/" + encodeURIComponent(slug);
124
124
  };
125
125
  var getLinkServiceDetail = function getLinkServiceDetail(product) {
126
126
  var slug = genProductSlugVi(product === null || product === void 0 ? void 0 : product.productName, product === null || product === void 0 ? void 0 : product.productId);
127
- return "/dich-vu/" + slug;
127
+ return "/dich-vu/" + encodeURIComponent(slug);
128
128
  };
129
129
  var getLinkNewsDetail = function getLinkNewsDetail(news) {
130
130
  var slug = genProductSlugVi(news === null || news === void 0 ? void 0 : news.title, news === null || news === void 0 ? void 0 : news.articleId);
131
131
  var category = genProductSlugVi(news === null || news === void 0 ? void 0 : news.catName, news === null || news === void 0 ? void 0 : news.catId);
132
- return "/tin-tuc/" + category + "/" + slug;
132
+ return "/tin-tuc/" + encodeURIComponent(category) + "/" + encodeURIComponent(slug);
133
133
  };
134
134
  var getLinkNewsByCategory = function getLinkNewsByCategory(news) {
135
135
  var slug = genProductSlugVi(news === null || news === void 0 ? void 0 : news.catName, news === null || news === void 0 ? void 0 : news.catId);
136
- return "/tin-tuc-theo-danh-muc/" + slug;
136
+ return "/tin-tuc-theo-danh-muc/" + encodeURIComponent(slug);
137
137
  };
138
138
  var getLinkProductsByCategory = function getLinkProductsByCategory(product) {
139
139
  if (product !== null && product !== void 0 && product.categoryName) {
140
140
  var slug = genProductSlugVi(product === null || product === void 0 ? void 0 : product.categoryName, product === null || product === void 0 ? void 0 : product.categoryId);
141
- return "/danh-muc/" + slug;
141
+ return "/danh-muc/" + encodeURIComponent(slug);
142
142
  } else {
143
143
  var _slug12 = genProductSlugVi(product === null || product === void 0 ? void 0 : product.cateName, product === null || product === void 0 ? void 0 : product.categoryId);
144
- return "/danh-muc/" + _slug12;
144
+ return "/danh-muc/" + encodeURIComponent(_slug12);
145
145
  }
146
146
  };
147
147
  var LinkToPage = function LinkToPage(props) {
@@ -1262,7 +1262,7 @@ var Hero5 = function Hero5(props) {
1262
1262
  }), /*#__PURE__*/React__default.createElement("div", {
1263
1263
  className: "absolute inset-0 flex flex-col top-[8%] md:top-[10%] gap-1 md:gap-4 p-4 lg:p-10 w-3/5 md:w-1/2 max-w-[90%] left-1 lg:left-10 xl:left-20"
1264
1264
  }, /*#__PURE__*/React__default.createElement("div", {
1265
- className: "text-xl sm:text-2xl md:text-3xl lg:text-4xl text-textHeading overflow-hidden text-ellipsis font-medium line-clamp-2 xl:line-clamp-1",
1265
+ className: "text-xl sm:text-2xl md:text-3xl lg:text-4xl text-textHeading overflow-hidden text-ellipsis font-medium line-clamp-2",
1266
1266
  style: {
1267
1267
  lineHeight: 1.5
1268
1268
  }
@@ -1285,14 +1285,14 @@ var Hero6 = function Hero6(props) {
1285
1285
  alt: 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,
1286
1286
  className: "object-cover w-full min-h-[30vh] max-h-[100vh]"
1287
1287
  }), /*#__PURE__*/React__default.createElement("div", {
1288
- className: "absolute inset-0 flex flex-col items-center justify-center md:gap-1 lg:gap-2 text-center py-1 md:py-4 px-10 md:px-20 "
1288
+ className: "absolute w-full md:w-2/3 mx-auto inset-0 flex flex-col items-center justify-center md:gap-1 lg:gap-2 text-center py-1 md:py-4 px-10"
1289
1289
  }, data !== null && data !== void 0 && (_data$data3 = data.data) !== null && _data$data3 !== void 0 && (_data$data3$ = _data$data3[0]) !== null && _data$data3$ !== void 0 && _data$data3$.title ? /*#__PURE__*/React__default.createElement("div", {
1290
1290
  className: "text-primary font-headingFont text-center line-clamp-1 text-2xl md:text-4xl xl:text-6xl text-ellipsis",
1291
1291
  style: {
1292
1292
  lineHeight: "2"
1293
1293
  }
1294
1294
  }, 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$.title) : null, /*#__PURE__*/React__default.createElement("div", {
1295
- className: "flex flex-col gap-2 md:gap-4 lg:gap-6 "
1295
+ className: "flex flex-col gap-4 lg:gap-6 "
1296
1296
  }, data !== null && data !== void 0 && (_data$data5 = data.data) !== null && _data$data5 !== void 0 && (_data$data5$ = _data$data5[0]) !== null && _data$data5$ !== void 0 && _data$data5$.description ? /*#__PURE__*/React__default.createElement("div", {
1297
1297
  className: "line-clamp-2 lg:line-clamp-3 md:text-xl xl:text-2xl",
1298
1298
  style: {