Skip to content

Commit

Permalink
push navbar to front
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyansh1410 committed Oct 13, 2024
1 parent 55d4244 commit aabbb96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client/src/components/navbar/navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Navbar = () => {
if(currentUser) fetch(); // TO PREVENT UNNECESSARY API REQUESTS
// const user = true;
return (
<nav className="z-20">
<nav >
<div className="left">
<a href="/" className="logo">
<img src="/logo.png"></img>
Expand All @@ -38,10 +38,10 @@ const Navbar = () => {
</div>
) : (
<>
<a href="/login" className="z-20">
<a href="/login" className="login">
Sign In
</a>
<a href="/register" className="signup z-20">
<a href="/register" className="signup">
Sign Up
</a>
</>
Expand Down
1 change: 1 addition & 0 deletions client/src/components/navbar/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ nav {
}

.right {
z-index: 20;
flex: 2;
display: flex;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion client/src/routes/homePage/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function HomePage() {
</div>
</div>
</div>
<div className="imgContainer z-{-1}">
<div className="imgContainer">
<img src="/bg.png" alt="" />
</div>
</div>
Expand Down

0 comments on commit aabbb96

Please sign in to comment.