Merge pull request #17 from JBB0807/assignment

Corrected the relative path of background causing blank in fly deploy…
This commit is contained in:
JB Balahadia 2025-05-06 12:56:45 -07:00 committed by GitHub
commit 7f520ab1d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 35 deletions

View file

@ -114,21 +114,6 @@ const Navbar = () => {
<span className="navbar__link-hover"></span> <span className="navbar__link-hover"></span>
</Link> </Link>
</li> </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" && ( {user && user.role === "instructor" && (
<li> <li>
<Link <Link
@ -190,21 +175,3 @@ const Navbar = () => {
}; };
export default 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);
// }

View file

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