diff --git a/FU.SPA/src/components/Navbar.css b/FU.SPA/src/components/Navbar.css
index 8a2e67d9..befc669c 100644
--- a/FU.SPA/src/components/Navbar.css
+++ b/FU.SPA/src/components/Navbar.css
@@ -18,12 +18,13 @@ body {
justify-content: space-between;
align-items: stretch;
gap: 2rem;
- padding: 0 1rem;
+ font-size: 1rem;
+ height: 50px;
}
.left-content,
.right-content {
- display: flex;
+ display:flex;
}
.site-title {
@@ -40,13 +41,28 @@ body {
gap: 1rem;
}
+.nav button {
+color: white;
+background: none;
+border: none;
+outline: none;
+font-family: inherit;
+font-size: inherit;
+cursor: pointer;
+display: flex;
+align-items: center;
+padding: 0.2rem;
+height: 100%;
+}
+
.nav a {
color: inherit;
text-decoration: none;
height: 100%;
display: flex;
- align-items: center;
+ align-items:center;
padding: 0.2rem;
+
}
.nav li.active {
diff --git a/FU.SPA/src/components/Navbar.jsx b/FU.SPA/src/components/Navbar.jsx
index faad8f82..827391d4 100644
--- a/FU.SPA/src/components/Navbar.jsx
+++ b/FU.SPA/src/components/Navbar.jsx
@@ -2,6 +2,7 @@ import { Link, useMatch, useResolvedPath } from 'react-router-dom';
import UserContext from '../context/userContext';
import { useNavigate } from 'react-router-dom';
import { useContext } from 'react';
+import Avatar from '@mui/material/Avatar';
export default function Navbar() {
const { user, logout } = useContext(UserContext);
@@ -9,10 +10,19 @@ export default function Navbar() {
const renderTabContent = () => {
if (user) {
+ // if user has a custom pfp then use that, if not then use MUI instead of default pfp
+ const defaultPFP = user.pfpUrl.includes('https://tr.rbxcdn.com/38c6edcb50633730ff4cf39ac8859840/420/420/Hat/Png');
+ const pfpComponent = !defaultPFP
+ ?
{user.username}
+