aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/Social.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'docs/components/Social.tsx')
-rw-r--r--docs/components/Social.tsx32
1 files changed, 32 insertions, 0 deletions
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 (
+ <a
+ href="https://github.com/vercel/turbo"
+ className="hidden p-2 text-current sm:flex hover:opacity-75"
+ title="Turbo GitHub repo"
+ target="_blank"
+ rel="noreferrer"
+ >
+ {/* Nextra icons have a <title> 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 };