Skip to content

Commit

Permalink
floating-header
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-MA committed Jun 4, 2024
1 parent 5e520f4 commit 9a0372c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
21 changes: 18 additions & 3 deletions styles/components/Header.module.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@



.header {
display: flex;
justify-content: flex-start;
flex-direction: row;
align-items: center;
height: 130px;
width: 100%;
z-index: 2;
margin-top: 20px;
margin-bottom: 30px;
/* Added styles for floating header */
position: fixed;
top: 10; /* Position at the top of the viewport */
left: 0; /* Position at the left of the viewport */
z-index: 20; /* Ensure it stays on top of other elements */
margin-top: 0; /* Remove top margin as it's now fixed */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}









.logoTitle {
display: flex;
Expand Down
1 change: 1 addition & 0 deletions styles/components/Layout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
}

.pageContent {
margin-top: 120px; /* Adjust the value if your header height changes */
width: 97%;
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 9a0372c

Please sign in to comment.