import Link from "next/link"; import type { ReactNode } from "react"; import { DownloadTrigger } from "@/components/download/download-trigger"; import { MobileFooter } from "@/components/layout/site-footer"; import { SeoBreadcrumb } from "@/components/seo/seo-breadcrumb"; import type { AppTranslationInfo, ConfigInfo } from "@/lib/api/types"; import { OFFICIAL_TG_URL, SITE_NAME, SITE_URL } from "@/lib/seo/metadata"; import { NavTgCard } from "./nav-tg-card"; const guides = [ { title: "使用方式", text: "优先使用线路一入口访问,如遇异常可切换线路2~3继续访问浏览。" }, { title: "为什么收藏本页", text: "最新地址会持续同步到本页,建议提前保存,避免入口变更后无法及时找回。" }, ]; const faqs = [ { title: "最新地址打不开怎么办?", text: "可刷新页面,或切换备用线路依次尝试访问。" }, { title: "为什么有多个访问地址?", text: "多个地址用于提升访问稳定性,方便异常时切换。" }, { title: "为什么有多个入口?", text: "均为站内分类内容入口,方便快速查找浏览" }, { title: "如何投稿或反馈问题?", text: "可通过页面底部联系方式提交投稿、合作或反馈。" }, ]; const notes = [ "本页仅提供最新地址导航、地址找回与分类入口汇总。", "页面内各线路入口请以实际可访问情况为准。", "线路4为永久域名入口,需在特定网络环境下访问。", "页面展示的官方联系方式可用于投稿、合作咨询与问题反馈;用户也可加入官方交流群,查看最新内容、获取内容更新,并参与互动交流。", "如遇失效入口、页面异常或更新问题,请及时联系处理。", ]; type Shortcut = { label: string; icon: string; href?: string; external?: boolean }; const panelClass = "flex flex-col gap-2 rounded-2xl bg-white/5 px-6 py-3 outline outline-1 -outline-offset-1 outline-white/5"; function hrefOf(value?: string | null) { const text = value?.trim(); if (!text) return undefined; if (/^https?:\/\//i.test(text) || text.startsWith("mailto:")) return text; return `https://${text}`; } /** 线路固定本站域名,不取接口 dhNewUrlAddr* / foreverUrlAddr */ function buildLines() { return [ { title: `${SITE_NAME} 精选全站导航中心-线路一`, url: SITE_URL }, { title: `${SITE_NAME} 精选全站导航中心-线路二`, url: SITE_URL }, { title: `${SITE_NAME} 精选全站导航中心-线路三`, url: SITE_URL }, { title: "永久域名(VPN访问)", url: SITE_URL }, ]; } function buildShortcuts(config?: ConfigInfo | null): Shortcut[] { return [ { label: "官方TG", icon: "/images/nav_tg.svg", href: OFFICIAL_TG_URL, external: true }, config?.appAddr?.trim() ? { label: "APP", icon: "/logo2.png", href: hrefOf(config.appAddr), external: true } : { label: "APP", icon: "/logo2.png" }, { label: "福利应用", icon: "/images/nav_flyy.svg", href: "/welfare" }, ]; } function AppBrand({ siteName }: { siteName?: string | null }) { const name = siteName?.trim() || "黄果黑料"; return (

{name} APP

全网最全成人视频平台

); } function SectionTitle({ children }: { children: ReactNode }) { return

{children}

; } function InfoPanel({ title, text, tone }: { title: string; text: string; tone: string }) { return (

{title}

{text}

); } function ShortcutLink({ item }: { item: Shortcut }) { const className = "group flex flex-1 flex-col items-center gap-3"; const content = ( <> {item.href && item.icon !== "/logo2.png" ? ( ) : ( )} {item.label} ); if (!item.href) { return ( {content} ); } if (item.external) { return ( {content} ); } return ( {content} ); } export function NavPage({ config, bottonTranslations, }: { config?: ConfigInfo | null; bottonTranslations?: AppTranslationInfo | null; }) { const lines = buildLines(); const shortcuts = buildShortcuts(config); const siteName = SITE_NAME; const webAddr = SITE_URL; return (
); }