Corrected the relative path of background causing blank in fly deployment

This commit is contained in:
JBB0807 2025-05-06 12:55:56 -07:00
parent a28dc7d356
commit ed6993b666
2 changed files with 2 additions and 35 deletions

View file

@ -114,21 +114,6 @@ const Navbar = () => {
<span className="navbar__link-hover"></span>
</Link>
</li>
{/* will be decided later of we shall keep NOTEBOOK or not */}
{/* <li>
<Link
to="/notebook"
className={`navbar__link ${
activeLink === "/notebook" ? "navbar__link--active" : ""
}`}
>
<span className="navbar__link-icon">📓</span>
<span className="navbar__link-text"></span>
NOTEBOOK
<span className="navbar__link-hover"></span>
</Link>
</li> */}
{user && user.role === "instructor" && (
<li>
<Link
@ -189,22 +174,4 @@ const Navbar = () => {
);
};
export default Navbar;
//{user ? user.displayName : "NOTEBOOK"}
//server side logout (was not working properly, so implemented client side logout)
// const handleLogout = async () => {
// try {
// const res = await fetch("http://localhost:8080/auth/logout", {
// method: "GET",
// credentials: "include",
// });
// if (res.ok) {
// setUser(null);
// } else {
// console.error("Logout failed");
// }
// } catch (error) {
// console.error("Error during logout:", error);
// }
export default Navbar;

View file

@ -29,7 +29,7 @@
body {
background: transparent;
background-image: url("../../../public/images/grid-background.jpg");
background-image: url("/images/grid-background.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;