Connect, collaborate, and grow with a community of TypeScript developers
chore(aot): add discord in footer (#1697)
Mehdid8d2eb17d47f
diff --git a/apps/aot/src/components/footsies.tsx b/apps/aot/src/components/footsies.tsxindex 56158a00..d8eb5945 100644--- a/apps/aot/src/components/footsies.tsx+++ b/apps/aot/src/components/footsies.tsx@@ -1,7 +1,25 @@import Link from 'next/link';-import { Binary, Github, Twitter } from '@repo/ui/icons';+import { Binary, Discord, Github, Twitter } from '@repo/ui/icons';import { ThemeButton } from './navigation/theme-button';+const links = [+ {+ href: 'https://github.com/typehero/typehero',+ label: 'TypeHero on GitHub',+ Icon: Github,+ },+ {+ href: 'https://twitter.com/typeheroapp',+ label: 'TypeHero on Twitter',+ Icon: Twitter,+ },+ {+ href: 'https://discord.gg/WjZhvVbFHM',+ label: 'Trash Devs Discord Community',+ Icon: Discord,+ },+];+export function Footsies() {return (<footer className="flex w-full flex-col items-center gap-2 bg-neutral-50 px-8 py-12 text-sm font-light sm:px-16 md:px-0 dark:bg-neutral-900">@@ -14,24 +32,18 @@ export function Footsies() {<ThemeButton /><span className="px-2 opacity-50">|</span><div className="flex items-center rounded-full border bg-white p-0.5 dark:bg-black">- <a- target="_blank"- rel="noreferrer"- className="group rounded-full p-1.5 hover:bg-neutral-200 dark:hover:bg-neutral-800"- href="https://github.com/typehero/typehero"- >- <span className="sr-only">TypeHero on GitHub</span>- <Github className="h-4 w-4 duration-150 group-hover:scale-110 group-hover:fill-black dark:group-hover:fill-white" />- </a>- <a- target="_blank"- rel="noreferrer"- className="group rounded-full p-1.5 hover:bg-neutral-200 dark:hover:bg-neutral-800"- href="https://twitter.com/typeheroapp"- >- <span className="sr-only">TypeHero on Twitter</span>- <Twitter className="h-4 w-4 duration-150 group-hover:scale-110 group-hover:fill-black dark:group-hover:fill-white" />- </a>+ {links.map(({ href, label, Icon }) => (+ <a+ key={href}+ target="_blank"+ rel="noreferrer"+ className="group rounded-full p-1.5 hover:bg-neutral-200 dark:hover:bg-neutral-800"+ href={href}+ >+ <span className="sr-only">{label}</span>+ <Icon className="h-4 w-4 duration-150 group-hover:scale-110 group-hover:fill-black dark:group-hover:fill-white" />+ </a>+ ))}</div></div></div>