diff --git a/components/NavBar.tsx b/components/NavBar.tsx index 83b0af7..fd842d3 100644 --- a/components/NavBar.tsx +++ b/components/NavBar.tsx @@ -1,17 +1,39 @@ import cn from 'classnames'; import Link from 'next/link'; -import { FC } from 'react'; +import { FC, useState } from 'react'; +import { FiMenu } from 'react-icons/fi'; + +const txtMenu = [ + { + id: 0, + name: 'Home', + path: '/', + }, + { + id: 1, + name: 'Blog', + path: '/blog', + }, +]; const HeadBar: FC = () => { + const [showMenu, setShowMenu] = useState(false); + return ( <> -
+
@@ -19,7 +41,35 @@ const HeadBar: FC = () => { -
+ setShowMenu(!showMenu)} + /> +
); diff --git a/package.json b/package.json index aeb0e5d..c5db59b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "classnames": "^2.3.1", "next": "12.1.0", "react": "17.0.2", - "react-dom": "17.0.2" + "react-dom": "17.0.2", + "react-icons": "^4.3.1" }, "devDependencies": { "@types/node": "17.0.21", diff --git a/styles/globals.css b/styles/globals.css index 77d2512..c21de3b 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -15,7 +15,7 @@ font-family: 'Poppins', sans-serif; @layer base { body { - @apply bg-bluish-gray dark:bg-rua-gray-900 dark:text-gray-200; + @apply text-gray-600 bg-bluish-gray dark:bg-rua-gray-900 dark:text-gray-200 font-Poppins; } img, diff --git a/yarn.lock b/yarn.lock index 6e09526..55db76b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2399,6 +2399,11 @@ react-dom@17.0.2: object-assign "^4.1.1" scheduler "^0.20.2" +react-icons@^4.3.1: + version "4.3.1" + resolved "https://registry.npmmirror.com/react-icons/-/react-icons-4.3.1.tgz#2fa92aebbbc71f43d2db2ed1aed07361124e91ca" + integrity sha512-cB10MXLTs3gVuXimblAdI71jrJx8njrJZmNMEMC+sQu5B/BIOmlsAjskdqpn81y8UBVEGuHODd7/ci5DvoSzTQ== + react-is@^16.13.1: version "16.13.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"