Skip to content

Commit 4df8a0a

Browse files
authored
Merge pull request #189 from WebXDAO/add-home-redirect
[FIX]: add hompage redirection to navbar logo
2 parents f965f4a + b5586b6 commit 4df8a0a

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/components/Global/Navbar.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { Fragment } from "react";
2+
import Link from 'next/link';
23
import { Popover, Transition } from "@headlessui/react";
34
import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/outline";
45
import { SiGithubsponsors } from "react-icons/si";
56

7+
68
const navigation = [
79
{ name: "Blog", href: "/blog" },
810
{ name: "Projects", href: "/projects" },
@@ -21,14 +23,16 @@ const Navbar = () => {
2123
>
2224
<div className="flex flex-1 items-center">
2325
<div className="flex w-full items-center justify-between md:w-auto">
24-
<a href="#">
25-
<span className="sr-only">WebX DAO</span>
26-
<img
27-
className="h-8 w-auto sm:h-10"
28-
src="/images/logo/white_logo.png"
29-
alt=""
30-
/>
31-
</a>
26+
<Link href={'/'}>
27+
<>
28+
<span className="sr-only">WebX DAO</span>
29+
<img
30+
className="h-8 w-auto sm:h-10"
31+
src="/images/logo/white_logo.png"
32+
alt="WebX DAO White Logo"
33+
/>
34+
</>
35+
</Link>
3236
<div className="-mr-2 flex items-center md:hidden">
3337
<Popover.Button className="focus-ring-inset inline-flex items-center justify-center rounded-md bg-transparent p-2 text-gray-400 hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-white">
3438
<span className="sr-only">Open main menu</span>

0 commit comments

Comments
 (0)