Skip to content

Commit

Permalink
Merge pull request #20 from wethmiranasinghe/main
Browse files Browse the repository at this point in the history
Update Header and Footer
  • Loading branch information
wethmiranasinghe authored Jun 15, 2024
2 parents f33a462 + 6009af7 commit e21e272
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions front-end/src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function Footer() {

<ul>
<li><Link to = '/'>Home</Link></li>
<li><Link to = '/project overview'>Log in</Link></li>
<li><Link to = '/project overview'>Project Overview</Link></li>
<li><Link to = '/project overview/overview'>Log in</Link></li>
<li><Link to = '/project overview/overview'>Overview</Link></li>
<li><Link to = '/contact'>Contact</Link></li>
</ul>
</nav>
Expand Down
15 changes: 9 additions & 6 deletions front-end/src/components/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
display: flex;
justify-content: center;
align-items: center;
background-color: #0f172a;
background-color: #172953;
position: sticky;
top: 0;
z-index: 1000;
Expand Down Expand Up @@ -105,7 +105,8 @@
}

.headerNavBar ul li a:hover {
background-color: #172554;
background-color: #203a90;
border-radius: 3em;
}

.headerNavBar .menu{
Expand All @@ -130,14 +131,15 @@
display: none;
position: absolute;
left: 0;
background-color: #0f172a;
background-color: #172953;
min-width: 100%;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
z-index: 1;
}

.headerNavBar .headerDropDown:hover .dropdown-content {
display: block;
border-radius: 0.5em;
}

.headerNavBar .headerDropDown .dropdown-content a {
Expand All @@ -146,10 +148,11 @@
text-decoration: none;
display: block;
text-align: left;
border-radius: 3em;
}

.headerNavBar .headerDropDown .dropdown-content a:hover {
background-color: #172554;
background-color: #203a90;
}

/* Media queries for responsiveness */
Expand Down Expand Up @@ -253,14 +256,14 @@
position: absolute; /* Position the dropdown absolutely */
top: 2rem; /* Adjust the top position to be below the hamburger icon */
left: 0; /* Align with the left edge */
background-color: #0f172a; /* Background color to match the navbar */
background-color: #172953; /* Background color to match the navbar */
z-index: 999;
}

.headerNavBar ul.open{
display: flex;
width: 100%;
background-color: #0f172a;
background-color: #172953;
}

.headerNavBar ul li {
Expand Down

0 comments on commit e21e272

Please sign in to comment.