Skip to content

Commit

Permalink
Merge pull request #302 from the-code-artist/navbar
Browse files Browse the repository at this point in the history
navbar is made sticky
  • Loading branch information
AbhiDiva96 authored Jul 13, 2024
2 parents 366ec87 + d811e0d commit 452e11b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/pages/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
inset 0px 0px 0px 0px #0001;
transition: box-shadow 0.6s cubic-bezier(0.79, 0.21, 0.06, 0.81);
border-radius: 0px;
position: sticky;
background-color: var(--background-color-light);
z-index: 999999;
}
.frame.dark{
background-color: var(--background-color-dark);
}

.header {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function handleHamClick(){
isOpen?setIsOpen(false): setIsOpen(true)
}
return (
<div className="frame">
<div className={`frame ${theme=="dark"?'dark':'light'}`}>
<div className="header">
<div className="logo">
<Link to="/" className="link1">
Expand Down

0 comments on commit 452e11b

Please sign in to comment.