nvis-fe-cms-libs 1.1.37 → 1.1.39

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.
@@ -2476,7 +2476,7 @@ var __async = (__this, __arguments, generator) => {
2476
2476
  value: formData.businessType || "",
2477
2477
  onChange: handleInputChange,
2478
2478
  className: inputBaseClasses,
2479
- placeholder: "Công nghệ thông tin"
2479
+ placeholder: t("form.fields.businessType")
2480
2480
  }
2481
2481
  )
2482
2482
  ] })
@@ -4258,11 +4258,6 @@ var __async = (__this, __arguments, generator) => {
4258
4258
  }, 5e3);
4259
4259
  return () => clearInterval(interval);
4260
4260
  }, [highlightData.length]);
4261
- const handleNavigate = (slug) => {
4262
- if (slug) {
4263
- window.location.href = slug;
4264
- }
4265
- };
4266
4261
  const gradientColors = [
4267
4262
  "from-blue-600 to-purple-600",
4268
4263
  "from-purple-600 to-pink-600",
@@ -4321,8 +4316,7 @@ var __async = (__this, __arguments, generator) => {
4321
4316
  }
4322
4317
  ),
4323
4318
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `absolute inset-0 bg-gradient-to-br ${color} opacity-20` }),
4324
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent" }),
4325
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute top-8 left-8", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `inline-block bg-gradient-to-r ${color} text-white px-6 py-3 rounded-full text-sm font-bold shadow-xl`, children: item.tag }) })
4319
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent" })
4326
4320
  ] }),
4327
4321
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-5 lg:p-8 flex flex-col justify-center", children: [
4328
4322
  /* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: `text-3xl lg:text-4xl font-black mb-3 bg-gradient-to-r ${color} bg-clip-text text-transparent`, children: item.title }),
@@ -4331,25 +4325,41 @@ var __async = (__this, __arguments, generator) => {
4331
4325
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `mt-0.5 w-4 h-4 rounded-full bg-gradient-to-r ${color} flex items-center justify-center flex-shrink-0`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { className: "w-2.5 h-2.5 text-white", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M5 13l4 4L19 7" }) }) }),
4332
4326
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${isDarkMode ? "text-gray-300 group-hover:text-white" : "text-gray-700 group-hover:text-gray-900"} font-medium text-xs transition-colors`, children: feature })
4333
4327
  ] }, idx)) }),
4334
- item.tagKeys.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mb-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-wrap gap-2", children: item.tagKeys.map((tag, idx) => /* @__PURE__ */ jsxRuntimeExports.jsx(
4335
- "span",
4336
- {
4337
- className: `px-3 py-1 rounded-lg text-xs font-semibold transition-all duration-300 ${isDarkMode ? "bg-gray-700/50 text-gray-300 hover:bg-gray-700" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}`,
4338
- children: tag.key
4339
- },
4340
- idx
4341
- )) }) }),
4342
4328
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
4343
- "button",
4329
+ "a",
4344
4330
  {
4345
- onClick: () => handleNavigate(item.slug),
4346
- className: `group relative px-6 py-3 rounded-xl font-bold text-sm transition-all duration-300 transform hover:scale-105 hover:shadow-2xl overflow-hidden bg-gradient-to-r ${color} text-white shadow-xl w-full`,
4331
+ href: item.slug,
4332
+ rel: "noopener noreferrer",
4333
+ className: `group relative px-6 py-3 rounded-xl font-bold text-sm transition-all duration-300 transform hover:scale-105 hover:shadow-2xl overflow-hidden bg-gradient-to-r ${color} text-white shadow-xl w-full text-center`,
4334
+ onClick: (e) => {
4335
+ if (!e.ctrlKey && !e.metaKey && e.button !== 1) {
4336
+ e.preventDefault();
4337
+ window.location.href = item.slug;
4338
+ }
4339
+ },
4347
4340
  children: [
4348
4341
  /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "relative z-10 flex items-center justify-center gap-2", children: [
4349
4342
  t("highlight.cta") || "Khám phá",
4350
4343
  " ",
4351
4344
  item.title,
4352
- /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { className: "w-5 h-5 group-hover:translate-x-1 transition-transform", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M17 8l4 4m0 0l-4 4m4-4H3" }) })
4345
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
4346
+ "svg",
4347
+ {
4348
+ className: "w-5 h-5 group-hover:translate-x-1 transition-transform",
4349
+ fill: "none",
4350
+ viewBox: "0 0 24 24",
4351
+ stroke: "currentColor",
4352
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
4353
+ "path",
4354
+ {
4355
+ strokeLinecap: "round",
4356
+ strokeLinejoin: "round",
4357
+ strokeWidth: 2,
4358
+ d: "M17 8l4 4m0 0l-4 4m4-4H3"
4359
+ }
4360
+ )
4361
+ }
4362
+ )
4353
4363
  ] }),
4354
4364
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute inset-0 bg-white/20 transform scale-x-0 group-hover:scale-x-100 transition-transform origin-left" })
4355
4365
  ]