diff --git a/frontend/src/components/NavBar/Navbar.css b/frontend/src/components/NavBar/Navbar.css
index 7f28e4a..cb9caf0 100644
--- a/frontend/src/components/NavBar/Navbar.css
+++ b/frontend/src/components/NavBar/Navbar.css
@@ -8,6 +8,35 @@
display: none;
}
+ .containerUserName h5 {
+ color: rgb(138 160 232);
+ font-weight: bold;
+ /* width: 150%; */
+ display: flex;
+ justify-content: center;
+ font-size: 11px;
+ width: 120px;
+ margin-top: 19px;
+ align-content: center;
+ align-items: center;
+ }
+
+ .containerLogOut {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ width: 8vw;
+ }
+
+ .containerUserName {
+ width: 20vw;
+ display: flex;
+ flex-direction: row;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ }
+
.navB {
display: flex;
width: 100vw;
@@ -23,7 +52,7 @@
justify-content: flex-start;
}
.nav3 {
- width: 30%;
+ width: 35%;
display: flex;
justify-content: flex-end;
align-items: center;
@@ -125,7 +154,7 @@
}
.Members {
- width: 150px;
+ width: 146px;
}
.Members2 {
@@ -134,12 +163,11 @@
}
.Members3 {
- width: 200px;
- margin-right: 10px;
+ width: 156px;
}
.Members4 {
- width: 186px;
+ width: 156px;
background-color: #4961b8;
}
@@ -152,6 +180,11 @@
background-color: #e575dd;
}
+ .About6 {
+ width: 60px;
+ background-color: #e575dd;
+ }
+
.Sign-in6 {
width: 140px;
}
@@ -173,7 +206,7 @@
justify-content: center;
align-content: center;
width: fit-content;
- margin-right: 50px;
+ width: 96px;
}
.nav3 .Sign-in4 {
@@ -185,26 +218,24 @@
margin-right: 50px;
}
- .Sign-in3 {
- width: 176px;
- margin-left: 40px;
- }
+
- .Sign-in3:hover ~ .animation {
- width: 176px;
- right: 8px;
- background-color: #e575dd;
+ .Sign-in3:hover {
+ width: 96px;
+ border-radius: 2px;
+ background-color: #7a9f9f;
}
.Sign-in4 {
width: 176px;
right: 0px;
- background-color: #e575dd;
+ background-color: #7a9f9f;
}
.ls-login-image2 {
- width: 24px;
- margin-right: 10px;
+ width: 19px;
+ margin-right: 6px;
+ margin-top: 1px;
}
.nav3 .About {
@@ -217,22 +248,32 @@
.Members:hover ~ .animation {
width: 146px;
- right: 19.1%;
+ right: 18.8%;
background-color: #4961b8;
}
.Members3:hover ~ .animation {
- width: 180px;
- right: 200px;
+ width: 150px;
+ right: 349px;
background-color: #4961b8;
}
.About:hover ~ .animation {
width: 116px;
- left: 81.7%;
+ right: 10%;
background-color: #e575dd;
}
+ .About5:hover ~ .animation {
+ width: 76px;
+ right: 277px;
+ background-color: #e575dd;
+ }
+
+ .About5 {
+ width: 60px;
+ }
+
.Individuals:hover ~ .animation {
width: 120px !important;
left: 0px !important;
@@ -298,6 +339,7 @@
justify-content: center;
align-items: center;
text-decoration: none;
+ width: 96px;
}
.Sign-in4 {
diff --git a/frontend/src/components/NavBar/Navbar.js b/frontend/src/components/NavBar/Navbar.js
index 3a7becc..bc5a999 100644
--- a/frontend/src/components/NavBar/Navbar.js
+++ b/frontend/src/components/NavBar/Navbar.js
@@ -15,12 +15,13 @@ function Navbar () {
setIsLoggedIn,
logOutUser,
authenticateUser,
- getStoredToken
+ getStoredToken,
+ userNameToShare
} = useContext(AuthContext)
const auth = useAuth()
useEffect(() => {
-
+ console.log(auth)
authenticateUser()
let token = getStoredToken()
let isAuthenticated = false
@@ -129,7 +130,7 @@ function Navbar () {
About
)}
-
+
{!isLoggedIn && (