nvis-fe-cms-libs 1.1.27 → 1.1.28
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.
|
@@ -3406,39 +3406,40 @@ const ImageSingleSection = ({ data, t, isDarkMode, getObjectUrl: getObjectUrl2 }
|
|
|
3406
3406
|
)) }) });
|
|
3407
3407
|
};
|
|
3408
3408
|
const TextWithTitleSection = ({ section, data, isDarkMode }) => {
|
|
3409
|
+
var _a;
|
|
3409
3410
|
const textItems = (data == null ? void 0 : data.sectionDataBindingItems) || [];
|
|
3411
|
+
const title = ((_a = textItems[0]) == null ? void 0 : _a.value) || "";
|
|
3412
|
+
const descriptions = textItems.slice(1);
|
|
3410
3413
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: {
|
|
3411
3414
|
padding: "40px 20px",
|
|
3412
|
-
backgroundColor: isDarkMode ? "#
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
fontWeight: "bold",
|
|
3428
|
-
color: isDarkMode ? "#f9fafb" : "#1f2937",
|
|
3429
|
-
marginBottom: "16px",
|
|
3430
|
-
lineHeight: "1.3"
|
|
3431
|
-
}, children: item.title }),
|
|
3432
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: {
|
|
3415
|
+
backgroundColor: isDarkMode ? "#111827" : "#ffffff"
|
|
3416
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { maxWidth: "1200px", margin: "0 auto" }, children: [
|
|
3417
|
+
title && /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { style: {
|
|
3418
|
+
fontSize: "36px",
|
|
3419
|
+
fontWeight: "700",
|
|
3420
|
+
color: isDarkMode ? "#ffffff" : "#000000",
|
|
3421
|
+
marginBottom: "16px",
|
|
3422
|
+
lineHeight: "1.2",
|
|
3423
|
+
textAlign: "left",
|
|
3424
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'
|
|
3425
|
+
}, children: title }),
|
|
3426
|
+
descriptions.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3427
|
+
"div",
|
|
3428
|
+
{
|
|
3429
|
+
style: {
|
|
3433
3430
|
fontSize: "16px",
|
|
3434
3431
|
lineHeight: "1.6",
|
|
3435
|
-
color: isDarkMode ? "#
|
|
3436
|
-
textAlign: "left"
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3432
|
+
color: isDarkMode ? "#9ca3af" : "#6b7280",
|
|
3433
|
+
textAlign: "left",
|
|
3434
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
|
3435
|
+
fontWeight: "400",
|
|
3436
|
+
marginBottom: index2 < descriptions.length - 1 ? "16px" : "0"
|
|
3437
|
+
},
|
|
3438
|
+
children: item.value
|
|
3439
|
+
},
|
|
3440
|
+
item.id || index2
|
|
3441
|
+
))
|
|
3442
|
+
] }) });
|
|
3442
3443
|
};
|
|
3443
3444
|
const TextSection = ({ data, isDarkMode }) => {
|
|
3444
3445
|
const textItems = (data == null ? void 0 : data.sectionDataBindingItems) || [];
|
|
@@ -3447,25 +3448,20 @@ const TextSection = ({ data, isDarkMode }) => {
|
|
|
3447
3448
|
{
|
|
3448
3449
|
style: {
|
|
3449
3450
|
padding: "40px 20px",
|
|
3450
|
-
backgroundColor: isDarkMode ? "#
|
|
3451
|
-
// Dark: slate-800, Light: gray-100
|
|
3452
|
-
textAlign: "center"
|
|
3451
|
+
backgroundColor: isDarkMode ? "#111827" : "#ffffff"
|
|
3453
3452
|
},
|
|
3454
3453
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { maxWidth: "800px", margin: "0 auto" }, children: textItems.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3455
3454
|
"div",
|
|
3456
3455
|
{
|
|
3457
3456
|
style: {
|
|
3458
|
-
|
|
3459
|
-
// Dark: slate-700, Light: white
|
|
3460
|
-
padding: "20px",
|
|
3457
|
+
padding: "0",
|
|
3461
3458
|
marginBottom: "20px",
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
textAlign: "left"
|
|
3459
|
+
fontSize: "28px",
|
|
3460
|
+
fontWeight: "700",
|
|
3461
|
+
lineHeight: "1.3",
|
|
3462
|
+
color: isDarkMode ? "#f9fafb" : "#111827",
|
|
3463
|
+
textAlign: "left",
|
|
3464
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'
|
|
3469
3465
|
},
|
|
3470
3466
|
children: item.value
|
|
3471
3467
|
},
|