@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.
|
@@ -33885,6 +33885,7 @@ function Header({ locale, config }) {
|
|
|
33885
33885
|
Link,
|
|
33886
33886
|
{
|
|
33887
33887
|
href: buildHref(getHref(child.href), child.external),
|
|
33888
|
+
prefetch: false,
|
|
33888
33889
|
...child.external && {
|
|
33889
33890
|
target: "_blank",
|
|
33890
33891
|
rel: "noopener noreferrer"
|
|
@@ -33908,6 +33909,7 @@ function Header({ locale, config }) {
|
|
|
33908
33909
|
Link,
|
|
33909
33910
|
{
|
|
33910
33911
|
href: buildHref(getHref(child.href), child.external),
|
|
33912
|
+
prefetch: false,
|
|
33911
33913
|
...child.external && {
|
|
33912
33914
|
target: "_blank",
|
|
33913
33915
|
rel: "noopener noreferrer"
|
|
@@ -34037,6 +34039,7 @@ function Header({ locale, config }) {
|
|
|
34037
34039
|
Link,
|
|
34038
34040
|
{
|
|
34039
34041
|
href: buildHref(getHref(child.href), child.external),
|
|
34042
|
+
prefetch: false,
|
|
34040
34043
|
...child.external && {
|
|
34041
34044
|
target: "_blank",
|
|
34042
34045
|
rel: "noopener noreferrer"
|
|
@@ -34057,6 +34060,7 @@ function Header({ locale, config }) {
|
|
|
34057
34060
|
Link,
|
|
34058
34061
|
{
|
|
34059
34062
|
href: buildHref(item.cta.href, item.cta.external),
|
|
34063
|
+
prefetch: false,
|
|
34060
34064
|
...item.cta.external && {
|
|
34061
34065
|
target: "_blank",
|
|
34062
34066
|
rel: "noopener noreferrer"
|
|
@@ -34074,6 +34078,7 @@ function Header({ locale, config }) {
|
|
|
34074
34078
|
Link,
|
|
34075
34079
|
{
|
|
34076
34080
|
href: buildHref(getHref(link.href), link.external),
|
|
34081
|
+
prefetch: false,
|
|
34077
34082
|
className: "text-sm font-medium text-gray-600 hover:text-gray-900",
|
|
34078
34083
|
onClick: () => setMobileMenuOpen(false),
|
|
34079
34084
|
children: getLabel(link)
|
|
@@ -34105,6 +34110,32 @@ function Header({ locale, config }) {
|
|
|
34105
34110
|
// src/components/layout/Footer.tsx
|
|
34106
34111
|
import Image3 from "next/image";
|
|
34107
34112
|
import { Fragment as Fragment9, jsx as jsx34, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
34113
|
+
function renderWithLangBadge(text) {
|
|
34114
|
+
const langPattern = /\(([a-z]{2})\)/gi;
|
|
34115
|
+
const parts = [];
|
|
34116
|
+
let lastIndex = 0;
|
|
34117
|
+
let match;
|
|
34118
|
+
while ((match = langPattern.exec(text)) !== null) {
|
|
34119
|
+
if (match.index > lastIndex) {
|
|
34120
|
+
parts.push(text.slice(lastIndex, match.index));
|
|
34121
|
+
}
|
|
34122
|
+
parts.push(
|
|
34123
|
+
/* @__PURE__ */ jsx34(
|
|
34124
|
+
"span",
|
|
34125
|
+
{
|
|
34126
|
+
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]",
|
|
34127
|
+
children: match[1]
|
|
34128
|
+
},
|
|
34129
|
+
match.index
|
|
34130
|
+
)
|
|
34131
|
+
);
|
|
34132
|
+
lastIndex = match.index + match[0].length;
|
|
34133
|
+
}
|
|
34134
|
+
if (lastIndex < text.length) {
|
|
34135
|
+
parts.push(text.slice(lastIndex));
|
|
34136
|
+
}
|
|
34137
|
+
return parts.length > 0 ? parts : text;
|
|
34138
|
+
}
|
|
34108
34139
|
function Footer({ locale, config }) {
|
|
34109
34140
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
34110
34141
|
const copyrightText = replaceVariables(
|
|
@@ -34124,8 +34155,8 @@ function Footer({ locale, config }) {
|
|
|
34124
34155
|
target: "_blank",
|
|
34125
34156
|
rel: "noopener noreferrer"
|
|
34126
34157
|
},
|
|
34127
|
-
className: "text-charcoal hover:text-primary transition-colors",
|
|
34128
|
-
children: getNavigationString(link.label, locale)
|
|
34158
|
+
className: "group text-charcoal hover:text-primary transition-colors",
|
|
34159
|
+
children: renderWithLangBadge(getNavigationString(link.label, locale))
|
|
34129
34160
|
}
|
|
34130
34161
|
) }, link.id)) })
|
|
34131
34162
|
] }, section.heading ? Object.values(section.heading)[0] : "section")) }),
|