nvis-fe-cms-libs 1.0.9 → 1.1.1

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.
@@ -1392,23 +1392,25 @@ const PartnerListCard = ({ partner, idx = 0, t, isDarkMode, getLogoUrl }) => {
1392
1392
  "div",
1393
1393
  {
1394
1394
  ref: itemRef,
1395
- className: `relative flex flex-col items-center justify-center p-4 rounded-xl shadow-sm transition-all duration-700 ease-out cursor-pointer overflow-hidden min-h-[180px]
1395
+ className: `relative flex flex-col items-center justify-center p-4 rounded-xl shadow-sm transition-all duration-700 ease-out cursor-pointer overflow-hidden min-h-[180px] w-full
1396
1396
  ${isDarkMode ? "bg-gradient-to-br from-slate-900 via-blue-900 to-indigo-900 border border-blue-800" : "bg-white border border-gray-200"}
1397
- ${visible ? "opacity-100 scale-100" : "opacity-0 scale-75"}
1398
- ${isHovered ? isDarkMode ? "border-blue-500 shadow-lg shadow-blue-500/20 -translate-y-1" : "border-blue-300 shadow-lg shadow-blue-500/20 -translate-y-1" : ""}`,
1397
+ ${visible ? "opacity-100" : "opacity-0"}
1398
+ ${isHovered ? isDarkMode ? "border-blue-500 shadow-lg shadow-blue-500/20" : "border-blue-300 shadow-lg shadow-blue-500/20" : ""}`,
1399
1399
  style: {
1400
1400
  transitionDelay: `${idx * 150}ms`,
1401
- transform: `translateY(${isHovered ? "-4px" : "0px"}) scale(${visible ? "1" : "0.75"})`
1401
+ transform: `translateY(${isHovered ? "-4px" : "0px"}) scale(${visible ? "1" : "0.75"})`,
1402
+ position: "relative",
1403
+ zIndex: isHovered ? 10 : 1
1402
1404
  },
1403
1405
  onMouseEnter: () => setIsHovered(true),
1404
1406
  onMouseLeave: () => setIsHovered(false),
1405
1407
  onClick: handleClick,
1406
1408
  children: [
1407
1409
  isDarkMode && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1408
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute w-12 h-12 bg-white/5 rounded-full", style: { left: "10%", top: "20%" } }),
1409
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute w-10 h-10 bg-white/5 rounded-full", style: { right: "30%", bottom: "10%" } }),
1410
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute w-14 h-14 bg-white/5 rounded-md", style: { left: "20%", bottom: "30%" } }),
1411
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute inset-0 opacity-20", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1410
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute w-12 h-12 bg-white/5 rounded-full pointer-events-none", style: { left: "10%", top: "20%", zIndex: -1 } }),
1411
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute w-10 h-10 bg-white/5 rounded-full pointer-events-none", style: { right: "30%", bottom: "10%", zIndex: -1 } }),
1412
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute w-14 h-14 bg-white/5 rounded-md pointer-events-none", style: { left: "20%", bottom: "30%", zIndex: -1 } }),
1413
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute inset-0 opacity-20 pointer-events-none", style: { zIndex: -1 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1412
1414
  "div",
1413
1415
  {
1414
1416
  style: {
@@ -1422,7 +1424,7 @@ const PartnerListCard = ({ partner, idx = 0, t, isDarkMode, getLogoUrl }) => {
1422
1424
  /* @__PURE__ */ jsxRuntimeExports.jsx(
1423
1425
  "div",
1424
1426
  {
1425
- className: `w-20 h-14 flex items-center justify-center mb-4 rounded-lg overflow-hidden border transition-all duration-300
1427
+ className: `relative w-20 h-14 flex items-center justify-center mb-4 rounded-lg overflow-hidden border transition-all duration-300
1426
1428
  ${isDarkMode ? "border-gray-600" : "border-gray-200"}
1427
1429
  ${isHovered ? "border-blue-500" : ""}
1428
1430
  `,
@@ -1434,7 +1436,7 @@ const PartnerListCard = ({ partner, idx = 0, t, isDarkMode, getLogoUrl }) => {
1434
1436
  "img",
1435
1437
  {
1436
1438
  src: logoSrc,
1437
- alt: partner.name || t("partners.logoAlt") || "Partner logo",
1439
+ alt: partner.name || (t == null ? void 0 : t("partners.logoAlt")) || "Partner logo",
1438
1440
  className: "max-w-full max-h-full object-contain transition-all duration-300",
1439
1441
  style: {
1440
1442
  filter: isDarkMode ? isHovered ? "grayscale(0) opacity(1)" : "grayscale(0.3) opacity(0.8)" : isHovered ? "grayscale(0) opacity(1)" : "grayscale(0.2) opacity(0.9)",
@@ -1444,7 +1446,7 @@ const PartnerListCard = ({ partner, idx = 0, t, isDarkMode, getLogoUrl }) => {
1444
1446
  loading: "lazy"
1445
1447
  }
1446
1448
  ),
1447
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full h-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center", style: { display: "none" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-white font-bold text-center text-sm px-1", children: partner.name }) })
1449
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute inset-0 bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center", style: { display: "none" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-white font-bold text-center text-sm px-1", children: partner.name }) })
1448
1450
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full h-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-white font-bold text-center text-sm px-1", children: partner.name }) })
1449
1451
  }
1450
1452
  ),
@@ -1453,13 +1455,13 @@ const PartnerListCard = ({ partner, idx = 0, t, isDarkMode, getLogoUrl }) => {
1453
1455
  partner.websiteUrl && /* @__PURE__ */ jsxRuntimeExports.jsx(
1454
1456
  "div",
1455
1457
  {
1456
- className: "transition-all duration-300",
1458
+ className: "transition-all duration-300 absolute bottom-4",
1457
1459
  style: {
1458
1460
  opacity: isHovered ? 1 : 0,
1459
1461
  transform: `translateY(${isHovered ? "0px" : "4px"})`
1460
1462
  },
1461
1463
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-xs text-blue-600 font-medium", children: [
1462
- t("partners.viewDetails") || "Xem chi tiết",
1464
+ (t == null ? void 0 : t("partners.viewDetails")) || "Xem chi tiết",
1463
1465
  " →"
1464
1466
  ] })
1465
1467
  }