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