|
1 | 1 | 'use client';
|
2 | 2 |
|
| 3 | +import Image from 'next/image' |
3 | 4 | import { useLocale, useTranslations } from 'next-intl';
|
4 | 5 | import Link from 'next/link';
|
5 | 6 | import { usePathname, useRouter } from 'next/navigation';
|
6 | 7 |
|
7 | 8 | import { useContext, useEffect, useState } from 'react';
|
8 |
| -import { FiMenu } from 'react-icons/fi'; |
| 9 | +import { FiHelpCircle, FiMenu } from 'react-icons/fi'; |
9 | 10 | import { ImSpinner2 } from 'react-icons/im';
|
10 | 11 | import { IoMdArrowBack, IoMdClose } from 'react-icons/io';
|
11 | 12 | import { MdHome } from 'react-icons/md';
|
@@ -46,6 +47,11 @@ function Navbar() {
|
46 | 47 | setSidebarToggle(!sidebarToggle);
|
47 | 48 | };
|
48 | 49 |
|
| 50 | + const handleClick = (e: any) => { |
| 51 | + e.preventDefault(); |
| 52 | + window.open("https://mapofpi.zapier.app", "_blank", "noopener, noreferrer"); |
| 53 | + }; |
| 54 | + |
49 | 55 | return (
|
50 | 56 | <>
|
51 | 57 | <div className="w-full h-[76.19px] z-500 px-[16px] py-[5px] bg-primary fixed top-0 left-0 right-0">
|
@@ -79,7 +85,21 @@ function Navbar() {
|
79 | 85 | <MdHome size={24} className={`${isHomePage ? 'text-tertiary' : 'text-secondary'}`} />
|
80 | 86 | </Link>
|
81 | 87 | </div>
|
82 |
| - |
| 88 | + <div className={`${styles.nav_item} disabled`}> |
| 89 | + <Link href="/"> |
| 90 | + <Image |
| 91 | + src="/images/logo.svg" |
| 92 | + alt="Map of Pi Home Logo" |
| 93 | + width={34} |
| 94 | + height={34} |
| 95 | + /> |
| 96 | + </Link> |
| 97 | + </div> |
| 98 | + <div className={`${styles.nav_item}`}> |
| 99 | + <Link href="/" onClick={handleClick}> |
| 100 | + <FiHelpCircle size={24} className={'text-secondary'} /> |
| 101 | + </Link> |
| 102 | + </div> |
83 | 103 | <div className={`${styles.nav_item}`}>
|
84 | 104 | <Link
|
85 | 105 | href=""
|
|
0 commit comments