nvis-fe-cms-libs 2.0.7 → 2.0.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/README.md
CHANGED
|
@@ -238,3 +238,5 @@ const SectionRenderer = ({ section }) => {
|
|
|
238
238
|
|
|
239
239
|
Thư viện **nvis-fe-cms-libs** giúp tách rời các section thành module độc lập, dễ tái sử dụng và bảo trì.
|
|
240
240
|
Bạn có thể mở rộng bằng cách thêm component mới và publish phiên bản tiếp theo lên npm.
|
|
241
|
+
|
|
242
|
+
# Web lấy icon svg https://www.svgrepo.com
|
|
@@ -938,7 +938,7 @@ const PartnersSection = ({ data, t, imageBaseUrl = "", section }) => {
|
|
|
938
938
|
"button",
|
|
939
939
|
{
|
|
940
940
|
onClick: () => setCurrentPartnerSlide(index2),
|
|
941
|
-
className: `w-3 h-3 rounded-full transition-all duration-300 ${index2 === currentPartnerSlide ? "bg-brand-primary scale-125 shadow-lg" : "bg-
|
|
941
|
+
className: `w-3 h-3 rounded-full transition-all duration-300 ${index2 === currentPartnerSlide ? "bg-brand-primary scale-125 shadow-lg" : "bg-surface hover:bg-brand-primary/70"}`,
|
|
942
942
|
"aria-label": `Slide ${index2 + 1}`
|
|
943
943
|
},
|
|
944
944
|
index2
|
|
@@ -1341,17 +1341,17 @@ const PartnerListSection = ({ t, getPartnerList, imageBaseUrl = "", section }) =
|
|
|
1341
1341
|
border: "none",
|
|
1342
1342
|
cursor: "pointer",
|
|
1343
1343
|
transition: "all 0.3s ease",
|
|
1344
|
-
backgroundColor: index2 === currentPartnerSlide ? "var(--brand-primary)" : "rgba(
|
|
1344
|
+
backgroundColor: index2 === currentPartnerSlide ? "var(--brand-primary)" : "rgba(151, 151, 151, 0.8)",
|
|
1345
1345
|
transform: index2 === currentPartnerSlide ? "scale(1.3)" : "scale(1)"
|
|
1346
1346
|
},
|
|
1347
1347
|
onMouseEnter: (e) => {
|
|
1348
1348
|
if (index2 !== currentPartnerSlide) {
|
|
1349
|
-
e.currentTarget.style.backgroundColor = "rgba(
|
|
1349
|
+
e.currentTarget.style.backgroundColor = "rgba(151, 151, 151, 0.8)";
|
|
1350
1350
|
}
|
|
1351
1351
|
},
|
|
1352
1352
|
onMouseLeave: (e) => {
|
|
1353
1353
|
if (index2 !== currentPartnerSlide) {
|
|
1354
|
-
e.currentTarget.style.backgroundColor = "rgba(
|
|
1354
|
+
e.currentTarget.style.backgroundColor = "rgba(151, 151, 151, 0.8)";
|
|
1355
1355
|
}
|
|
1356
1356
|
},
|
|
1357
1357
|
"aria-label": `Slide ${index2 + 1}`
|
|
@@ -2953,10 +2953,10 @@ const DiagramSection = ({ data, t, isDarkMode }) => {
|
|
|
2953
2953
|
};
|
|
2954
2954
|
}
|
|
2955
2955
|
return {
|
|
2956
|
-
gradient: "linear-gradient(to right, var(--gradient-
|
|
2957
|
-
border: "var(--gradient-
|
|
2958
|
-
line: "var(--gradient-
|
|
2959
|
-
iconBg: "var(--gradient-
|
|
2956
|
+
gradient: "linear-gradient(to right, var(--gradient-brand-strong-start), var(--gradient-brand-strong-end))",
|
|
2957
|
+
border: "var(--gradient-brand-strong-start)",
|
|
2958
|
+
line: "var(--gradient-brand-strong-start)",
|
|
2959
|
+
iconBg: "var(--gradient-brand-strong-start)",
|
|
2960
2960
|
shadow: "rgba(139, 92, 246, 0.2)"
|
|
2961
2961
|
};
|
|
2962
2962
|
};
|
|
@@ -3525,8 +3525,8 @@ const MindMapNode = ({ id, icon: Icon2, text, color, position, delay = 0, onDrag
|
|
|
3525
3525
|
className: "backdrop-blur-md px-4 py-2.5 rounded-2xl shadow-2xl border-2 flex items-center gap-2.5 cursor-pointer transform transition-all duration-300",
|
|
3526
3526
|
style: {
|
|
3527
3527
|
background: isHovered || isDragging ? colorStyle.gradientHover : colorStyle.gradient,
|
|
3528
|
-
borderColor: colorStyle.border
|
|
3529
|
-
boxShadow: `0 10px 40px ${colorStyle.shadowColor}
|
|
3528
|
+
borderColor: colorStyle.border,
|
|
3529
|
+
boxShadow: `0 10px 40px ${colorStyle.shadowColor}`,
|
|
3530
3530
|
transform: isHovered || isDragging ? "scale(1.1)" : "scale(1)",
|
|
3531
3531
|
filter: isHovered || isDragging ? "brightness(1.1)" : "brightness(1)",
|
|
3532
3532
|
rotate: isDragging ? "2deg" : "0deg"
|