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 +114 -22
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +119 -27
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useEffect, forwardRef, useImperativeHandle, createElement, memo } from 'react';
|
|
2
2
|
import { IoCartOutline, IoChevronDownOutline, IoPersonCircleOutline, IoLogOutOutline, IoInformationCircleOutline, IoBagOutline, IoSearchOutline, IoChevronBackOutline, IoChevronForwardOutline } from 'react-icons/io5';
|
|
3
|
-
import { FaUserCircle, FaRegNewspaper, FaFacebookF, FaFacebookMessenger, FaBoxOpen, FaAngleUp, FaAngleDown, FaCheckCircle, FaArrowRight, FaArrowLeft, FaPhoneAlt } from 'react-icons/fa';
|
|
3
|
+
import { FaUserCircle, FaRegNewspaper, FaFacebookF, FaFacebookMessenger, FaBoxOpen, FaAngleUp, FaAngleDown, FaCheckCircle, FaArrowRight, FaArrowLeft, FaCcVisa, FaYoutube, FaTiktok, FaPhoneAlt } from 'react-icons/fa';
|
|
4
4
|
import { FiMenu, FiLogIn, FiHome, FiBox, FiPhoneCall, FiShoppingCart, FiSearch } from 'react-icons/fi';
|
|
5
5
|
import { RxCross2 } from 'react-icons/rx';
|
|
6
6
|
import { PiHandHeartBold } from 'react-icons/pi';
|
|
7
7
|
import { TbCategory } from 'react-icons/tb';
|
|
8
|
-
import { SiZalo
|
|
9
|
-
import { IoIosStar, IoIosArrowBack, IoIosArrowForward, IoMdCheckmark, IoIosHeartEmpty } from 'react-icons/io';
|
|
8
|
+
import { SiZalo } from 'react-icons/si';
|
|
9
|
+
import { IoIosStar, IoIosArrowBack, IoIosArrowForward, IoMdCheckmark, IoIosHeartEmpty, IoMdCheckmarkCircleOutline } from 'react-icons/io';
|
|
10
10
|
import { FaMinus, FaRegEyeSlash, FaPlus, FaArrowsRotate, FaStar, FaRegStarHalfStroke, FaRegStar } from 'react-icons/fa6';
|
|
11
11
|
import 'react-icons/ci';
|
|
12
12
|
import { BsCurrencyDollar } from 'react-icons/bs';
|
|
13
|
-
import { LuSearch, LuShoppingCart } from 'react-icons/lu';
|
|
13
|
+
import { LuSearch, LuShoppingCart, LuShoppingBag } from 'react-icons/lu';
|
|
14
14
|
import DatePicker from 'react-datepicker';
|
|
15
15
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
16
16
|
import Slider from 'react-slick';
|
|
17
17
|
import 'slick-carousel/slick/slick.css';
|
|
18
18
|
import 'slick-carousel/slick/slick-theme.css';
|
|
19
|
-
import { AiOutlineShoppingCart, AiOutlinePhone } from 'react-icons/ai';
|
|
19
|
+
import { AiOutlineShoppingCart, AiOutlineInfoCircle, AiOutlinePhone } from 'react-icons/ai';
|
|
20
20
|
import { GoCreditCard, GoClock } from 'react-icons/go';
|
|
21
|
+
import { RiMessengerFill, RiDeleteBin7Line } from 'react-icons/ri';
|
|
21
22
|
import { HiOutlineLocationMarker, HiOutlineArrowNarrowLeft, HiOutlineArrowNarrowRight } from 'react-icons/hi';
|
|
22
|
-
import { RiDeleteBin7Line } from 'react-icons/ri';
|
|
23
23
|
import { GiNewspaper } from 'react-icons/gi';
|
|
24
24
|
|
|
25
25
|
var Button = function Button(props) {
|
|
@@ -10151,7 +10151,7 @@ var ProductList7 = function ProductList7(props) {
|
|
|
10151
10151
|
}, /*#__PURE__*/React__default.createElement(SectionTitle, {
|
|
10152
10152
|
data: data,
|
|
10153
10153
|
shopConfigStyle: shopConfigStyle
|
|
10154
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
10154
|
+
}), (products === null || products === void 0 ? void 0 : products.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
|
|
10155
10155
|
className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-10 mt-12"
|
|
10156
10156
|
}, 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) {
|
|
10157
10157
|
return /*#__PURE__*/React__default.createElement(ProductItem, {
|
|
@@ -10160,14 +10160,14 @@ var ProductList7 = function ProductList7(props) {
|
|
|
10160
10160
|
key: index,
|
|
10161
10161
|
product: product === null || product === void 0 ? void 0 : product.productInfo
|
|
10162
10162
|
});
|
|
10163
|
-
})), (products === null || products === void 0 ? void 0 : products.length) > 4 ? /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10163
|
+
})) : /*#__PURE__*/React__default.createElement(NotFoundProduct, null), (products === null || products === void 0 ? void 0 : products.length) > 4 ? /*#__PURE__*/React__default.createElement(LinkToPage, {
|
|
10164
10164
|
href: "/san-pham",
|
|
10165
10165
|
Link: Link
|
|
10166
10166
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
10167
10167
|
label: "Xem tất cả",
|
|
10168
10168
|
shopConfigStyle: shopConfigStyle,
|
|
10169
10169
|
className: "mt-12"
|
|
10170
|
-
})) :
|
|
10170
|
+
})) : null), /*#__PURE__*/React__default.createElement(Dash, {
|
|
10171
10171
|
color: secondary
|
|
10172
10172
|
}));
|
|
10173
10173
|
};
|
|
@@ -10430,7 +10430,7 @@ var Products3 = function Products3(props) {
|
|
|
10430
10430
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10431
10431
|
className: "text-xl"
|
|
10432
10432
|
}, "Danh m\u1EE5c s\u1EA3n ph\u1EA9m"), /*#__PURE__*/React__default.createElement("div", {
|
|
10433
|
-
className: "overflow-y-auto max-h-96"
|
|
10433
|
+
className: "overflow-y-auto max-h-96 scroll-container pr-3"
|
|
10434
10434
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10435
10435
|
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"),
|
|
10436
10436
|
onClick: function onClick() {
|
|
@@ -12151,6 +12151,101 @@ function SvgVnpay(props) {
|
|
|
12151
12151
|
}))));
|
|
12152
12152
|
}
|
|
12153
12153
|
|
|
12154
|
+
var dataFake = [{
|
|
12155
|
+
title: "Đa dạng thanh toán",
|
|
12156
|
+
data: [{
|
|
12157
|
+
svgImage: "",
|
|
12158
|
+
srcImage: /*#__PURE__*/React__default.createElement(FaArrowsRotate, null),
|
|
12159
|
+
label: "Chuyển khoản",
|
|
12160
|
+
link: ""
|
|
12161
|
+
}, {
|
|
12162
|
+
svgImage: "",
|
|
12163
|
+
srcImage: /*#__PURE__*/React__default.createElement(BsCurrencyDollar, null),
|
|
12164
|
+
label: "Tiền mặt",
|
|
12165
|
+
link: ""
|
|
12166
|
+
}, {
|
|
12167
|
+
srcImage: /*#__PURE__*/React__default.createElement(SvgVnpay, null),
|
|
12168
|
+
svgImage: "",
|
|
12169
|
+
label: "VNPay",
|
|
12170
|
+
link: ""
|
|
12171
|
+
}, {
|
|
12172
|
+
srcImage: /*#__PURE__*/React__default.createElement(SvgVietQr, null),
|
|
12173
|
+
svgImage: "",
|
|
12174
|
+
label: "VietQR",
|
|
12175
|
+
link: ""
|
|
12176
|
+
}, {
|
|
12177
|
+
srcImage: /*#__PURE__*/React__default.createElement(GoCreditCard, null),
|
|
12178
|
+
svgImage: "",
|
|
12179
|
+
label: "Thẻ ATM",
|
|
12180
|
+
link: ""
|
|
12181
|
+
}, {
|
|
12182
|
+
srcImage: /*#__PURE__*/React__default.createElement(FaCcVisa, null),
|
|
12183
|
+
svgImage: "",
|
|
12184
|
+
label: "Thẻ Quốc tế",
|
|
12185
|
+
link: ""
|
|
12186
|
+
}]
|
|
12187
|
+
}, {
|
|
12188
|
+
title: "Thông tin hữu ích",
|
|
12189
|
+
data: [{
|
|
12190
|
+
srcImage: /*#__PURE__*/React__default.createElement(IoMdCheckmarkCircleOutline, null),
|
|
12191
|
+
svgImage: "",
|
|
12192
|
+
label: "Chính sách bảo hành",
|
|
12193
|
+
link: ""
|
|
12194
|
+
}, {
|
|
12195
|
+
srcImage: /*#__PURE__*/React__default.createElement(FaArrowsRotate, null),
|
|
12196
|
+
svgImage: "",
|
|
12197
|
+
label: "Chính sách đổi trả",
|
|
12198
|
+
link: ""
|
|
12199
|
+
}, {
|
|
12200
|
+
srcImage: /*#__PURE__*/React__default.createElement(LuShoppingBag, null),
|
|
12201
|
+
svgImage: "",
|
|
12202
|
+
label: "Hướng dẫn mua hàng online",
|
|
12203
|
+
link: ""
|
|
12204
|
+
}, {
|
|
12205
|
+
srcImage: /*#__PURE__*/React__default.createElement(AiOutlineInfoCircle, null),
|
|
12206
|
+
svgImage: "",
|
|
12207
|
+
label: "Giới thiệu về chúng tôi",
|
|
12208
|
+
link: ""
|
|
12209
|
+
}]
|
|
12210
|
+
}, {
|
|
12211
|
+
title: "Mạng xã hội",
|
|
12212
|
+
data: [{
|
|
12213
|
+
srcImage: /*#__PURE__*/React__default.createElement(FaFacebookF, {
|
|
12214
|
+
className: "p-1 rounded bg-primary text-white"
|
|
12215
|
+
}),
|
|
12216
|
+
svgImage: "",
|
|
12217
|
+
label: "Facebook",
|
|
12218
|
+
link: ""
|
|
12219
|
+
}, {
|
|
12220
|
+
srcImage: /*#__PURE__*/React__default.createElement(FaYoutube, {
|
|
12221
|
+
className: "p-1 rounded bg-primary text-white"
|
|
12222
|
+
}),
|
|
12223
|
+
svgImage: "",
|
|
12224
|
+
label: "Youtube",
|
|
12225
|
+
link: ""
|
|
12226
|
+
}, {
|
|
12227
|
+
srcImage: /*#__PURE__*/React__default.createElement(FaTiktok, {
|
|
12228
|
+
className: "p-1 rounded bg-primary text-white"
|
|
12229
|
+
}),
|
|
12230
|
+
svgImage: "",
|
|
12231
|
+
label: "Tiktok",
|
|
12232
|
+
link: ""
|
|
12233
|
+
}, {
|
|
12234
|
+
srcImage: /*#__PURE__*/React__default.createElement(RiMessengerFill, {
|
|
12235
|
+
className: "p-1 rounded bg-primary text-white"
|
|
12236
|
+
}),
|
|
12237
|
+
svgImage: "",
|
|
12238
|
+
label: "Messenger",
|
|
12239
|
+
link: ""
|
|
12240
|
+
}, {
|
|
12241
|
+
srcImage: /*#__PURE__*/React__default.createElement(SiZalo, {
|
|
12242
|
+
className: "p-1 rounded bg-primary text-white"
|
|
12243
|
+
}),
|
|
12244
|
+
svgImage: "",
|
|
12245
|
+
label: "Zalo",
|
|
12246
|
+
link: ""
|
|
12247
|
+
}]
|
|
12248
|
+
}];
|
|
12154
12249
|
var Links1 = function Links1(props) {
|
|
12155
12250
|
var data = props.data,
|
|
12156
12251
|
_props$SectionTitle = props.SectionTitle,
|
|
@@ -12164,26 +12259,23 @@ var Links1 = function Links1(props) {
|
|
|
12164
12259
|
shopConfigStyle: shopConfigStyle
|
|
12165
12260
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
12166
12261
|
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"
|
|
12167
|
-
},
|
|
12262
|
+
}, dataFake === null || dataFake === void 0 ? void 0 : dataFake.map(function (item, index) {
|
|
12263
|
+
var _item$data;
|
|
12168
12264
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12169
|
-
key: "qwikf-" + index + " "
|
|
12265
|
+
key: "qwikf-" + index + " ",
|
|
12266
|
+
className: "h-full overflow-hidden rounded-b-xl"
|
|
12170
12267
|
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
12171
12268
|
className: "text-lg md:text-2xl font-semibold mb-4"
|
|
12172
|
-
},
|
|
12173
|
-
className: "leading-10 flex flex-col bg-background2 p-4 rounded-xl bg-bgSecondary "
|
|
12174
|
-
},
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12182
|
-
}, /*#__PURE__*/React__default.createElement(SvgVnpay, null), "VNPay"), /*#__PURE__*/React__default.createElement("label", null, /*#__PURE__*/React__default.createElement(GoCreditCard, {
|
|
12183
|
-
className: "inline-block\t text-primary text-2xl mb-1 me-3"
|
|
12184
|
-
}), " Th\u1EBB ATM"), /*#__PURE__*/React__default.createElement("label", null, /*#__PURE__*/React__default.createElement(SiVisa, {
|
|
12185
|
-
className: "inline-block\t text-primary text-2xl mb-1 me-3"
|
|
12186
|
-
}), " Th\u1EBB Qu\u1ED1c t\u1EBF")));
|
|
12269
|
+
}, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("div", {
|
|
12270
|
+
className: "leading-10 flex flex-col bg-background2 p-4 rounded-xl bg-bgSecondary h-full"
|
|
12271
|
+
}, item === null || item === void 0 ? void 0 : (_item$data = item.data) === null || _item$data === void 0 ? void 0 : _item$data.map(function (it, idx) {
|
|
12272
|
+
return /*#__PURE__*/React__default.createElement("label", {
|
|
12273
|
+
className: "flex gap-4 items-center",
|
|
12274
|
+
key: "ikgf-" + idx
|
|
12275
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12276
|
+
className: "text-primary text-2xl"
|
|
12277
|
+
}, it === null || it === void 0 ? void 0 : it.srcImage), it === null || it === void 0 ? void 0 : it.label);
|
|
12278
|
+
})));
|
|
12187
12279
|
})));
|
|
12188
12280
|
};
|
|
12189
12281
|
|