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.
@@ -117,28 +117,28 @@ var genProductSlugVi = function genProductSlugVi(productName, id) {
117
117
  };
118
118
  var getLinkProductDetail = function getLinkProductDetail(product) {
119
119
  var slug = genProductSlugVi(product === null || product === void 0 ? void 0 : product.productName, product === null || product === void 0 ? void 0 : product.productId);
120
- return "/san-pham/" + slug;
120
+ return "/san-pham/" + encodeURIComponent(slug);
121
121
  };
122
122
  var getLinkServiceDetail = function getLinkServiceDetail(product) {
123
123
  var slug = genProductSlugVi(product === null || product === void 0 ? void 0 : product.productName, product === null || product === void 0 ? void 0 : product.productId);
124
- return "/dich-vu/" + slug;
124
+ return "/dich-vu/" + encodeURIComponent(slug);
125
125
  };
126
126
  var getLinkNewsDetail = function getLinkNewsDetail(news) {
127
127
  var slug = genProductSlugVi(news === null || news === void 0 ? void 0 : news.title, news === null || news === void 0 ? void 0 : news.articleId);
128
128
  var category = genProductSlugVi(news === null || news === void 0 ? void 0 : news.catName, news === null || news === void 0 ? void 0 : news.catId);
129
- return "/tin-tuc/" + category + "/" + slug;
129
+ return "/tin-tuc/" + encodeURIComponent(category) + "/" + encodeURIComponent(slug);
130
130
  };
131
131
  var getLinkNewsByCategory = function getLinkNewsByCategory(news) {
132
132
  var slug = genProductSlugVi(news === null || news === void 0 ? void 0 : news.catName, news === null || news === void 0 ? void 0 : news.catId);
133
- return "/tin-tuc-theo-danh-muc/" + slug;
133
+ return "/tin-tuc-theo-danh-muc/" + encodeURIComponent(slug);
134
134
  };
135
135
  var getLinkProductsByCategory = function getLinkProductsByCategory(product) {
136
136
  if (product !== null && product !== void 0 && product.categoryName) {
137
137
  var slug = genProductSlugVi(product === null || product === void 0 ? void 0 : product.categoryName, product === null || product === void 0 ? void 0 : product.categoryId);
138
- return "/danh-muc/" + slug;
138
+ return "/danh-muc/" + encodeURIComponent(slug);
139
139
  } else {
140
140
  var _slug12 = genProductSlugVi(product === null || product === void 0 ? void 0 : product.cateName, product === null || product === void 0 ? void 0 : product.categoryId);
141
- return "/danh-muc/" + _slug12;
141
+ return "/danh-muc/" + encodeURIComponent(_slug12);
142
142
  }
143
143
  };
144
144
  var LinkToPage = function LinkToPage(props) {
@@ -1259,7 +1259,7 @@ var Hero5 = function Hero5(props) {
1259
1259
  }), /*#__PURE__*/React__default.createElement("div", {
1260
1260
  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"
1261
1261
  }, /*#__PURE__*/React__default.createElement("div", {
1262
- 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",
1262
+ className: "text-xl sm:text-2xl md:text-3xl lg:text-4xl text-textHeading overflow-hidden text-ellipsis font-medium line-clamp-2",
1263
1263
  style: {
1264
1264
  lineHeight: 1.5
1265
1265
  }
@@ -1282,14 +1282,14 @@ var Hero6 = function Hero6(props) {
1282
1282
  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,
1283
1283
  className: "object-cover w-full min-h-[30vh] max-h-[100vh]"
1284
1284
  }), /*#__PURE__*/React__default.createElement("div", {
1285
- 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 "
1285
+ 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"
1286
1286
  }, 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", {
1287
1287
  className: "text-primary font-headingFont text-center line-clamp-1 text-2xl md:text-4xl xl:text-6xl text-ellipsis",
1288
1288
  style: {
1289
1289
  lineHeight: "2"
1290
1290
  }
1291
1291
  }, 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", {
1292
- className: "flex flex-col gap-2 md:gap-4 lg:gap-6 "
1292
+ className: "flex flex-col gap-4 lg:gap-6 "
1293
1293
  }, 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", {
1294
1294
  className: "line-clamp-2 lg:line-clamp-3 md:text-xl xl:text-2xl",
1295
1295
  style: {