Skip to content

Commit

Permalink
Make navbar transparent for register/success
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnandersonvt committed Jul 3, 2024
1 parent b2ba7c3 commit 64f9946
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions site/app/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import { usePathname } from 'next/navigation';
function Navbar() {
const path = usePathname();

const isHomePage = path === '/';
// If we are on home page or register/success make navbar transparent
const isTransparent = path === '/' || path === '/register/success';

const navbarStyle = isHomePage ? 'navbar-transparent' : '';
const navbarStyle = isTransparent ? 'navbar-transparent' : '';

return (
<nav className={`${navbarStyle} navbar navbar-expand-md navbar-toggleable-md navbar-light box-shadow`}>
Expand Down

0 comments on commit 64f9946

Please sign in to comment.