From 5b9d24e9d2a67a8bb47ec186639571676d3cc5a2 Mon Sep 17 00:00:00 2001 From: RohitKuwar <70262783+RohitKuwar@users.noreply.github.com> Date: Thu, 11 Mar 2021 17:42:18 +0530 Subject: [PATCH 1/8] Added notification link in dropdown --- components/NavBar/index.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/NavBar/index.js b/components/NavBar/index.js index 7761e1b..51b8619 100644 --- a/components/NavBar/index.js +++ b/components/NavBar/index.js @@ -7,6 +7,8 @@ import GenericClosePopUp from '../Close-popup/GenericClosePopUp'; const NavBar = ({ personData: { photo } }) => { const RDSLogo = '/assets/Real-Dev-Squad1x.png'; const [toggle, setToggle] = useState(false); + const [count, setCount] = useState(15); + const navbarRef = useRef(); GenericClosePopUp(navbarRef, () => { setToggle(false); @@ -51,11 +53,11 @@ const NavBar = ({ personData: { photo } }) => { toggle ? styles.dropdownContent : styles.dropdownContentHide } > - Link 1 - Link 2 - Link 3 - Link 4 - Link 5 + Profile + Notifications {count} + Setting + Orders + Log Out From 033f144b8da1f7611178037256e0fb223c7e6972 Mon Sep 17 00:00:00 2001 From: RohitKuwar <70262783+RohitKuwar@users.noreply.github.com> Date: Thu, 11 Mar 2021 17:44:31 +0530 Subject: [PATCH 2/8] css for notification --- components/NavBar/navbar.module.css | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/components/NavBar/navbar.module.css b/components/NavBar/navbar.module.css index e4f1198..4132e06 100644 --- a/components/NavBar/navbar.module.css +++ b/components/NavBar/navbar.module.css @@ -54,17 +54,25 @@ } .dropdownContent a { color: black; - padding: 5px 0; + padding: 5px 4px; text-decoration: none; text-align: center; - font-size: 18px; + font-size: 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.26); display: block; } .dropdownContent a:hover { background-color: #e4e2e2 } - +.notificationNumbers{ + background-color: #041484; + color: white; + border: none; + border-radius: 50%; + padding: .3em; + font-size: .8em; + text-align: center; +} @media (max-width: 540px) { .navBar li { From 68060f97797bee2e8077c70e12d0dbad507b3488 Mon Sep 17 00:00:00 2001 From: RohitKuwar <70262783+RohitKuwar@users.noreply.github.com> Date: Thu, 11 Mar 2021 17:46:04 +0530 Subject: [PATCH 3/8] Added notification page --- pages/notification.js | 126 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 pages/notification.js diff --git a/pages/notification.js b/pages/notification.js new file mode 100644 index 0000000..8eed27a --- /dev/null +++ b/pages/notification.js @@ -0,0 +1,126 @@ +import React from 'react'; +import personData from '../mock/person.json'; +import NavBar from '@components/NavBar'; + +export default function notification() { + return ( +