@zoyth/simple-site-framework 1.0.0 → 1.0.2

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.
@@ -33976,6 +33976,7 @@ function Header({ locale, config }) {
33976
33976
  import_link.default,
33977
33977
  {
33978
33978
  href: buildHref(getHref(child.href), child.external),
33979
+ prefetch: false,
33979
33980
  ...child.external && {
33980
33981
  target: "_blank",
33981
33982
  rel: "noopener noreferrer"
@@ -33999,6 +34000,7 @@ function Header({ locale, config }) {
33999
34000
  import_link.default,
34000
34001
  {
34001
34002
  href: buildHref(getHref(child.href), child.external),
34003
+ prefetch: false,
34002
34004
  ...child.external && {
34003
34005
  target: "_blank",
34004
34006
  rel: "noopener noreferrer"
@@ -34128,6 +34130,7 @@ function Header({ locale, config }) {
34128
34130
  import_link.default,
34129
34131
  {
34130
34132
  href: buildHref(getHref(child.href), child.external),
34133
+ prefetch: false,
34131
34134
  ...child.external && {
34132
34135
  target: "_blank",
34133
34136
  rel: "noopener noreferrer"
@@ -34148,6 +34151,7 @@ function Header({ locale, config }) {
34148
34151
  import_link.default,
34149
34152
  {
34150
34153
  href: buildHref(item.cta.href, item.cta.external),
34154
+ prefetch: false,
34151
34155
  ...item.cta.external && {
34152
34156
  target: "_blank",
34153
34157
  rel: "noopener noreferrer"
@@ -34165,6 +34169,7 @@ function Header({ locale, config }) {
34165
34169
  import_link.default,
34166
34170
  {
34167
34171
  href: buildHref(getHref(link.href), link.external),
34172
+ prefetch: false,
34168
34173
  className: "text-sm font-medium text-gray-600 hover:text-gray-900",
34169
34174
  onClick: () => setMobileMenuOpen(false),
34170
34175
  children: getLabel(link)
@@ -34196,6 +34201,32 @@ function Header({ locale, config }) {
34196
34201
  // src/components/layout/Footer.tsx
34197
34202
  var import_image3 = __toESM(require("next/image"));
34198
34203
  var import_jsx_runtime34 = require("react/jsx-runtime");
34204
+ function renderWithLangBadge(text) {
34205
+ const langPattern = /\(([a-z]{2})\)/gi;
34206
+ const parts = [];
34207
+ let lastIndex = 0;
34208
+ let match;
34209
+ while ((match = langPattern.exec(text)) !== null) {
34210
+ if (match.index > lastIndex) {
34211
+ parts.push(text.slice(lastIndex, match.index));
34212
+ }
34213
+ parts.push(
34214
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
34215
+ "span",
34216
+ {
34217
+ className: "lang-badge inline-block ml-[0.4em] px-[0.4em] py-[0.02em] border border-black/[0.18] rounded-full text-[0.65em] tracking-[0.06em] uppercase opacity-75 group-hover:opacity-100 transition-opacity -translate-y-[0.15em]",
34218
+ children: match[1]
34219
+ },
34220
+ match.index
34221
+ )
34222
+ );
34223
+ lastIndex = match.index + match[0].length;
34224
+ }
34225
+ if (lastIndex < text.length) {
34226
+ parts.push(text.slice(lastIndex));
34227
+ }
34228
+ return parts.length > 0 ? parts : text;
34229
+ }
34199
34230
  function Footer({ locale, config }) {
34200
34231
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
34201
34232
  const copyrightText = replaceVariables(
@@ -34215,8 +34246,8 @@ function Footer({ locale, config }) {
34215
34246
  target: "_blank",
34216
34247
  rel: "noopener noreferrer"
34217
34248
  },
34218
- className: "text-charcoal hover:text-primary transition-colors",
34219
- children: getNavigationString(link.label, locale)
34249
+ className: "group text-charcoal hover:text-primary transition-colors",
34250
+ children: renderWithLangBadge(getNavigationString(link.label, locale))
34220
34251
  }
34221
34252
  ) }, link.id)) })
34222
34253
  ] }, section.heading ? Object.values(section.heading)[0] : "section")) }),