From 9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 3 Nov 2023 21:13:33 +0800 Subject: chore: delete useless codes --- docs/components/Footer.tsx | 249 --------------------------------------------- 1 file changed, 249 deletions(-) delete mode 100644 docs/components/Footer.tsx (limited to 'docs/components/Footer.tsx') diff --git a/docs/components/Footer.tsx b/docs/components/Footer.tsx deleted file mode 100644 index 9a3bf23..0000000 --- a/docs/components/Footer.tsx +++ /dev/null @@ -1,249 +0,0 @@ -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 ( - - ); -} -- cgit v1.2.3-70-g09d2