Skip to content

Commit

Permalink
style: 💄 Made sure Navbar has solid background-color on AlgorithmsPag…
Browse files Browse the repository at this point in the history
…e as well so that menu-options are visible when scrolling.

#134
  • Loading branch information
jmnorheim committed Dec 6, 2024
1 parent e97e5fe commit 92d5633
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ const Navbar: React.FC = () => {
}, []);

useEffect(() => {
if (location.pathname === "/about-us") {
if (
location.pathname === "/about-us" ||
location.pathname === "/algorithms"
) {
setShouldHaveSolidColour(true);
} else {
setShouldHaveSolidColour(false);
Expand Down

0 comments on commit 92d5633

Please sign in to comment.