From 4838df315931bb883f704ec3e1abe2685f296cdf Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Sat, 22 Apr 2023 19:52:26 +0800 Subject: 😀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/components/Social.tsx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/components/Social.tsx (limited to 'docs/components/Social.tsx') diff --git a/docs/components/Social.tsx b/docs/components/Social.tsx new file mode 100644 index 0000000..2ed0df0 --- /dev/null +++ b/docs/components/Social.tsx @@ -0,0 +1,32 @@ +import { DiscordIcon, GitHubIcon } from "nextra/icons"; + +function Github() { + return ( + + {/* Nextra icons have a attribute providing alt text */} + <GitHubIcon /> + </a> + ); +} + +function Discord() { + return ( + <a + href="https://turbo.build/discord" + className="hidden p-2 text-current sm:flex hover:opacity-75" + title="Turbo Discord server" + target="_blank" + rel="noreferrer" + > + <DiscordIcon /> + </a> + ); +} + +export { Github, Discord }; -- cgit v1.2.3-70-g09d2