Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/DCO-REMEDIATION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Vaibhav <[email protected]>

DCO Remediation Commit for Vaibhav <[email protected]>

I, Vaibhav <[email protected]>, hereby add my Signed-off-by to this commit: be4016b9c967946b6399fcc201eac4d1c66957bc

Signed-off-by: Vaibhav <[email protected]>
29 changes: 27 additions & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import {
InfoOutlined,
BookOutlined,
CaretDownFilled,
MenuOutlined
MenuOutlined,
} from "@ant-design/icons";
import { FaDiscord } from 'react-icons/fa';
import ToggleDarkMode from "./ToggleDarkMode";


Expand Down Expand Up @@ -162,7 +163,7 @@ const useBreakpoint = () => {

function Navbar() {
const [hovered, setHovered] = useState<
null | "home" | "help" | "github" | "join"
null | "home" | "help" | "github" | "discord" | "join"
>(null);
const screens = useBreakpoint();
const location = useLocation();
Expand Down Expand Up @@ -371,6 +372,30 @@ function Navbar() {
</div>
)}

<div
className={`h-16 flex items-center justify-center rounded-md cursor-pointer ${
screens.md
? "px-5 border-l border-white border-opacity-10 pl-4 pr-4"
: "px-2.5 pl-1.5 pr-1.5"
} ${
hovered === "discord" ? "bg-white bg-opacity-10" : "bg-transparent"
}`}
onMouseEnter={() => setHovered("discord")}
onMouseLeave={() => setHovered(null)}
>
<a
href="https://discord.com/invite/Zm99SKhhtA"
target="_blank"
rel="noopener noreferrer"
className="flex items-center text-white"
>
<FaDiscord className={`text-xl text-white ${
screens.md ? "mr-1.5" : "mr-0"
}`} />
<span className={screens.md ? "inline" : "hidden"}>Discord</span>
</a>
</div>

<div
className={`h-16 flex items-center justify-center rounded-md cursor-pointer ${
screens.md
Expand Down