File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 88 InfoOutlined ,
99 BookOutlined ,
1010 CaretDownFilled ,
11- MenuOutlined
11+ MenuOutlined ,
1212} from "@ant-design/icons" ;
13+ import { FaDiscord } from 'react-icons/fa' ;
1314import ToggleDarkMode from "./ToggleDarkMode" ;
1415
1516
@@ -162,7 +163,7 @@ const useBreakpoint = () => {
162163
163164function Navbar ( ) {
164165 const [ hovered , setHovered ] = useState <
165- null | "home" | "help" | "github" | "join"
166+ null | "home" | "help" | "github" | "discord" | " join"
166167 > ( null ) ;
167168 const screens = useBreakpoint ( ) ;
168169 const location = useLocation ( ) ;
@@ -371,6 +372,30 @@ function Navbar() {
371372 </ div >
372373 ) }
373374
375+ < div
376+ className = { `h-16 flex items-center justify-center rounded-md cursor-pointer ${
377+ screens . md
378+ ? "px-5 border-l border-white border-opacity-10 pl-4 pr-4"
379+ : "px-2.5 pl-1.5 pr-1.5"
380+ } ${
381+ hovered === "discord" ? "bg-white bg-opacity-10" : "bg-transparent"
382+ } `}
383+ onMouseEnter = { ( ) => setHovered ( "discord" ) }
384+ onMouseLeave = { ( ) => setHovered ( null ) }
385+ >
386+ < a
387+ href = "https://discord.com/invite/Zm99SKhhtA"
388+ target = "_blank"
389+ rel = "noopener noreferrer"
390+ className = "flex items-center text-white"
391+ >
392+ < FaDiscord className = { `text-xl text-white ${
393+ screens . md ? "mr-1.5" : "mr-0"
394+ } `} />
395+ < span className = { screens . md ? "inline" : "hidden" } > Discord</ span >
396+ </ a >
397+ </ div >
398+
374399 < div
375400 className = { `h-16 flex items-center justify-center rounded-md cursor-pointer ${
376401 screens . md
You can’t perform that action at this time.
0 commit comments