From 47650733d89b2f8b50b748dc455a58e118de50e4 Mon Sep 17 00:00:00 2001 From: Yashsaraswat2004 Date: Mon, 14 Apr 2025 01:43:01 +0530 Subject: [PATCH] Added 'Discord' link to navbar Signed-off-by: Yashsaraswat2004 --- src/components/Navbar.tsx | 49 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 35fe9fe..66aaabb 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -9,7 +9,8 @@ import { InfoOutlined, BookOutlined, CaretDownFilled, - MenuOutlined + MenuOutlined, + DiscordOutlined } from "@ant-design/icons"; import ToggleDarkMode from "./ToggleDarkMode"; @@ -21,7 +22,7 @@ interface NavbarProps { function Navbar({ scrollToFooter }: NavbarProps) { const [hovered, setHovered] = useState< - null | "home" | "explore" | "help" | "github" | "join" + null | "home" | "explore" | "help" | "github" | "join" | "discord" >(null); const screens = useBreakpoint(); const location = useLocation(); @@ -284,10 +285,14 @@ function Navbar({ scrollToFooter }: NavbarProps) { )} +
Github
+
setHovered("discord")} + onMouseLeave={() => setHovered(null)} + > + + + Discord + +
+
);