Skip to content

Commit

Permalink
Sticky Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
yakubhariana70 committed Nov 19, 2023
1 parent 8d536b3 commit 55991ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/NavigationBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import logo from "/jakarta-tourism.svg";

const NavigationBar = () => {
return (
<div>
<div className="navigation-bar">
<Navbar sticky="top" expand="lg">
<Container fluid className="px-5">
<Navbar.Brand href="/jakspace-webgis/">
Expand Down
5 changes: 3 additions & 2 deletions src/pages/Home/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}

header {
position: absolute;
position: fixed;
width: 100%;
flex: 2 2 10vh;
margin-top: 1.5rem;
Expand All @@ -13,14 +13,15 @@ header {
align-items: center;
}

.home-nav {
div.home-nav {
width: 95vw;
/* border: 1px solid limegreen; */
border-radius: 3rem;
background-color: white;
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}


.home-picture {
/* height: 40vh; */
flex: 1 1 50vh;
Expand Down

0 comments on commit 55991ea

Please sign in to comment.