import { useRouter } from "next/router"; import Link from "next/link"; import { useState, ReactNode, ReactElement } from "react"; import cn from "classnames"; import { ThemeSwitch } from "nextra-theme-docs"; import HydroRolllogo from "./logos/HydroRoll"; import { useTurboSite, TurboSite } from "./SiteSwitcher"; function FooterLink({ href, children }: { href: string; children: ReactNode }) { const classes = "text-sm text-[#666666] dark:text-[#888888] no-underline betterhover:hover:text-gray-700 betterhover:hover:dark:text-white transition"; if (href.startsWith("http")) { return ( {children} ); } return ( {children} ); } function FooterHeader({ children }: { children: ReactNode }) { return

{children}

; } const navigation = { general: [ { name: "Blog", href: "/blog" }, { name: "Releases", href: "https://github.com/HydroRoll-Team/HydroRoll/releases" }, ], AI: [ { name: "文档", href: "/AI/docs" }, { name: "FAQ", href: "/AI/docs/faq" }, ], TRPG: [ { name: "文档", href: "/TRPG/docs" }, { name: "特性", href: "/TRPG/docs/features" }, ], support: [ { name: "GitHub", href: "https://github.com/HydroRoll-Team/support", }, { name: "Discord", href: "https://hydroroll.retrofor.space/discord", }, ], links: (site: TurboSite) => [ { name: "Dice!", href: "https://forum.kokona.tech" }, { name: "OlivOS", href: "https://forum.olivos.run", }, // { name: "Dicex骰子屋", href: "https://forum.dicex.link" }, // { name: "SealDice", href: "https://dice.weizaima.com/"}, { name: "HuggingFace", href: "https://huggingface.co " } // { // name: "", // href: `https://vercel.com/${ // site === "AI" ? "solutions/HydroRollAI" : "contact/sales" // }?utm_source=turbo.build&utm_medium=referral&utm_campaign=footer-enterpriseLink`, // }, ], legal: [ { name: "隐私政策", href: "/privacy" }, // { name: "Terms of Service", href: "/terms" }, ], }; export function FooterContent() { const site = useTurboSite(); return (
Resources
    {navigation.general.map((item) => (
  • {item.name}
  • ))}
AI Model
    {navigation.AI.map((item) => (
  • {item.name}
  • ))}
TRPG
    {navigation.TRPG.map((item) => (
  • {item.name}
  • ))}
Links
    {navigation.links(site).map((item) => (
  • {item.name}
  • ))}
Legal
    {navigation.legal.map((item) => (
  • {item.name}
  • ))}
Support
    {navigation.support.map((item) => (
  • {item.name}
  • ))}
Subscribe to HydroRoll newsletter

订阅水系最新的blog与release内容,抑或是插件与模型的更新。

© {new Date().getFullYear()} HydroRoll-Team. All rights reserved.

); } function SubmitForm() { const [email, setEmail] = useState(""); const router = useRouter(); return (
{ fetch("/api/signup", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ email }), }) .then((res) => res.json()) .then((res) => { return router.push("/confirm"); }); e.preventDefault(); }} > setEmail(e.target.value)} className="border-[#666666] dark:border-[#888888] w-full min-w-0 px-4 py-2 text-base text-gray-900 placeholder-gray-500 bg-white border rounded-md appearance-none dark:text-white sm:text-sm dark:bg-transparent focus:outline-none focus:ring-2 focus:ring-gray-800 dark:focus:border-white focus:placeholder-gray-400" placeholder="you@example.com" />
); } export function Footer({ menu }: { menu?: boolean }): ReactElement { return ( ); }