mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-23 04:16:45 +00:00
📝 Docs: 升级新版 NonePress 主题 (#2375)
This commit is contained in:
45
website/src/theme/Footer/Copyright/index.tsx
Normal file
45
website/src/theme/Footer/Copyright/index.tsx
Normal file
@ -0,0 +1,45 @@
|
||||
import React from "react";
|
||||
|
||||
import Link from "@docusaurus/Link";
|
||||
import Translate, { translate } from "@docusaurus/Translate";
|
||||
|
||||
import type { Props } from "@theme/Footer/Copyright";
|
||||
import IconCloudflare from "@theme/Icon/Cloudflare";
|
||||
import IconNetlify from "@theme/Icon/Netlify";
|
||||
import OriginCopyright from "@theme-original/Footer/Copyright";
|
||||
|
||||
export default function FooterCopyright(props: Props) {
|
||||
return (
|
||||
<>
|
||||
<OriginCopyright {...props} />
|
||||
<div className="footer-support">
|
||||
<Translate
|
||||
id="theme.FooterCopyright.deployBy"
|
||||
description="The deploy by message."
|
||||
>
|
||||
Deployed by
|
||||
</Translate>
|
||||
<Link
|
||||
to="https://www.netlify.com/"
|
||||
title={translate({
|
||||
id: "theme.FooterCopyright.netlifyLinkTitle",
|
||||
message: "Go to the Netlify website",
|
||||
description: "The title attribute for the Netlify logo link",
|
||||
})}
|
||||
>
|
||||
<IconNetlify className="footer-support-icon" />
|
||||
</Link>
|
||||
<Link
|
||||
to="https://www.cloudflare.com/"
|
||||
title={translate({
|
||||
id: "theme.FooterCopyright.cloudflareLinkTitle",
|
||||
message: "Go to the Cloudflare website",
|
||||
description: "The title attribute for the Cloudflare logo link",
|
||||
})}
|
||||
>
|
||||
<IconCloudflare className="footer-support-icon" />
|
||||
</Link>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user