nvis-fe-cms-libs 2.0.1 → 2.0.3
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.
|
@@ -371,6 +371,21 @@ function requireJsxRuntime() {
|
|
|
371
371
|
return jsxRuntime.exports;
|
|
372
372
|
}
|
|
373
373
|
var jsxRuntimeExports = requireJsxRuntime();
|
|
374
|
+
function ThemeIcon({ name, className = "" }) {
|
|
375
|
+
if (!name) return null;
|
|
376
|
+
const iconUrl = `/icons/${name}.svg`;
|
|
377
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
378
|
+
"img",
|
|
379
|
+
{
|
|
380
|
+
src: iconUrl,
|
|
381
|
+
alt: name,
|
|
382
|
+
className: `icon ${className}`,
|
|
383
|
+
onError: (e) => {
|
|
384
|
+
e.target.style.display = "none";
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
);
|
|
388
|
+
}
|
|
374
389
|
const CompanyValues = ({ companyData, t, isDarkMode }) => {
|
|
375
390
|
const cleanHtmlContent = (html) => {
|
|
376
391
|
if (!html) return "";
|
|
@@ -390,19 +405,19 @@ const CompanyValues = ({ companyData, t, isDarkMode }) => {
|
|
|
390
405
|
};
|
|
391
406
|
const items = [
|
|
392
407
|
{
|
|
393
|
-
icon: "
|
|
408
|
+
icon: "light_bulb",
|
|
394
409
|
title: t("about.companyValues.vision") || "Tầm nhìn",
|
|
395
410
|
text: cleanHtmlContent(safeCompanyData.vision) || "Tầm nhìn của chúng tôi sẽ được cập nhật trong thời gian tới.",
|
|
396
411
|
bgClass: "bg-gradient-brand"
|
|
397
412
|
},
|
|
398
413
|
{
|
|
399
|
-
icon: "
|
|
414
|
+
icon: "rocket",
|
|
400
415
|
title: t("about.companyValues.mission") || "Sứ mệnh",
|
|
401
416
|
text: cleanHtmlContent(safeCompanyData.mission) || "Sứ mệnh của chúng tôi sẽ được cập nhật trong thời gian tới.",
|
|
402
417
|
bgClass: "bg-gradient-accent"
|
|
403
418
|
},
|
|
404
419
|
{
|
|
405
|
-
icon: "
|
|
420
|
+
icon: "diamond",
|
|
406
421
|
title: t("about.companyValues.coreValues") || "Giá trị cốt lõi",
|
|
407
422
|
text: cleanHtmlContent(safeCompanyData.coreValues) || "Giá trị cốt lõi của chúng tôi sẽ được cập nhật trong thời gian tới.",
|
|
408
423
|
bgClass: "bg-gradient-brand"
|
|
@@ -452,7 +467,7 @@ const CompanyValues = ({ companyData, t, isDarkMode }) => {
|
|
|
452
467
|
"div",
|
|
453
468
|
{
|
|
454
469
|
className: `w-10 h-10 rounded-lg flex items-center justify-center text-white text-xl flex-shrink-0 ${item.bgClass}`,
|
|
455
|
-
children: item.icon
|
|
470
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeIcon, { name: item.icon, className: "w-6 h-6" })
|
|
456
471
|
}
|
|
457
472
|
),
|
|
458
473
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
@@ -567,7 +582,6 @@ const AboutCompanySection = ({ data, t, isDarkMode, imageBaseUrl = "" }) => {
|
|
|
567
582
|
}
|
|
568
583
|
),
|
|
569
584
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "inline-flex items-center px-4 py-2 rounded-full border bg-white/20 border-white/40 text-inverse text-small font-medium", children: [
|
|
570
|
-
"🚀 ",
|
|
571
585
|
safeT("aboutCompany.hero.establishedYear", { year: establishedYear }),
|
|
572
586
|
" - ",
|
|
573
587
|
safeT("aboutCompany.hero.experience", { years: experienceYears })
|