Compare commits

..

No commits in common. "5fa5f87e1ec16708ece7d78cb311d9339f1b0473" and "5b5d7a95f3a226047cf4bbe05de7768e7ee6d621" have entirely different histories.

3 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ const NAV_ICONS = {
import SkeletonWrapper from '../components/SkeletonWrapper';
/** 主站入口顺序(与桌面顶栏一致) */
const PRIMARY_NAV_KEYS = ['pricing', 'benchmark', 'docs', 'console'];
const PRIMARY_NAV_KEYS = ['pricing', 'console', 'benchmark', 'docs'];
const menuClass =
'!bg-semi-color-bg-overlay !border-semi-color-border !shadow-lg !rounded-lg dark:!bg-gray-700 dark:!border-gray-600';

View File

@ -38,6 +38,11 @@ export const useNavigation = (t, docsNav, headerNavModules) => {
itemKey: 'pricing',
to: '/pricing',
},
{
text: t('控制台'),
itemKey: 'console',
to: '/console',
},
{
text: t('评测'),
itemKey: 'benchmark',
@ -54,11 +59,6 @@ export const useNavigation = (t, docsNav, headerNavModules) => {
},
]
: []),
{
text: t('控制台'),
itemKey: 'console',
to: '/console',
},
];
// 根据配置过滤导航链接

View File

@ -161,9 +161,9 @@ function HeroSection() {
<nav className="hidden md:flex items-center gap-0.5">
{[
{ key: "model", label: "模型", icon: <Box size={16} />, to: "/pricing" },
{ key: "console", label: "控制台", icon: <Grid3X3 size={16} />, to: "/console" },
{ key: "benchmark", label: "评测", icon: <Trophy size={16} />, to: "/benchmarks" },
{ key: "docs", label: "文档", icon: <BookOpen size={16} />, to: "https://docs.new-api.cc", external: true },
{ key: "console", label: "控制台", icon: <Grid3X3 size={16} />, to: "/console" },
].map((item) => {
const linkClass = "inline-flex items-center gap-1.5 px-3 py-1.5 text-[14px] rounded-md transition-colors duration-150 text-white/60 hover:text-white";
if (item.external) {