mirror of
https://github.com/lingke-net/koring-space.git
synced 2026-09-12 05:45:17 +08:00
- 新增 /download 下载页:正式版/预览版双渠道、latest.yml/latest-beta.yml 数据源、镜像下载源切换、SHA512 校验展示 - 新增 /api/download-version:GitHub API 自动识别 + 镜像兜底 + yml 解析 + 旧源兜底 - /launcher/join-beta 改为自动识别 GitHub 预览版,支持镜像下载源切换 - 新增 markdown-lite 轻量渲染器、lib/download-sources 与 lib/github-releases 共享模块 - 头部导航新增下载中心入口
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
"use client";
|
|
|
|
import dynamic from "next/dynamic";
|
|
|
|
const CardNav = dynamic(() => import("@/components/card-nav/CardNav"), {
|
|
ssr: false,
|
|
});
|
|
|
|
const navItems = [
|
|
{
|
|
label: "产品",
|
|
bgColor: "#1B1722",
|
|
textColor: "#fff",
|
|
links: [
|
|
{ label: "Koring Launcher", href: "/launcher", ariaLabel: "Koring Launcher" },
|
|
{ label: "下载中心", href: "/download", ariaLabel: "下载中心" },
|
|
{ label: "Sanshe Play", href: "https://docs.play.lenjing.work", ariaLabel: "Sanshe Play" },
|
|
],
|
|
},
|
|
{
|
|
label: "资源",
|
|
bgColor: "#2F293A",
|
|
textColor: "#fff",
|
|
links: [
|
|
{ label: "Github", href: "https://github.com/lingke-net", ariaLabel: "Github" },
|
|
{ label: "支持", href: "https://support.lingke.ink", ariaLabel: "支持" },
|
|
],
|
|
},
|
|
{
|
|
label: "关于",
|
|
bgColor: "#2F293A",
|
|
textColor: "#fff",
|
|
links: [
|
|
{ label: "MChine Space", href: "https://mchine.space", ariaLabel: "MChine Space" },
|
|
],
|
|
},
|
|
];
|
|
|
|
function Header() {
|
|
return (
|
|
<CardNav
|
|
logoAlt="Koring Team"
|
|
items={navItems}
|
|
baseColor="#ffffff"
|
|
menuColor="#000"
|
|
buttonBgColor="#111"
|
|
buttonTextColor="#fff"
|
|
ease="power3.out"
|
|
/>
|
|
);
|
|
}
|
|
|
|
export { Header };
|