-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1259 from sau-mili/main
feat: NavBar added to all pages
- Loading branch information
Showing
4 changed files
with
632 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,15 @@ | |
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<style> | ||
.newNav{ | ||
opacity:1 !important; | ||
translate: none !important; | ||
rotate: none !important; | ||
scale: none !important; | ||
transform: none !important; | ||
} | ||
|
||
|
||
|
||
.top-btn { | ||
display: none; | ||
|
@@ -91,9 +100,9 @@ | |
<style> | ||
/* Toggle button styles */ | ||
.toggle-container { | ||
position: fixed; /* Change this as needed for positioning */ | ||
top: 10px; | ||
right: 10px; | ||
/* position: fixed; Change this as needed for positioning */ | ||
/* top: 10px; */ | ||
/* right: 10px; */ | ||
} | ||
|
||
.toggle { | ||
|
@@ -148,6 +157,38 @@ | |
background-color: #002152; | ||
color: #ffffff; | ||
} | ||
|
||
|
||
@media screen and (max-width:390px) { | ||
.nav__logo { | ||
position: relative; | ||
right: 1.9rem; | ||
} | ||
|
||
.contact-btn { | ||
position: relative; | ||
right: 2.5rem; | ||
} | ||
|
||
.toggle-container { | ||
position: relative; | ||
right: 2.5rem; | ||
|
||
} | ||
|
||
.toggle { | ||
width: 130%; | ||
} | ||
|
||
.line { | ||
width: 150%; | ||
} | ||
|
||
.hamburger { | ||
position: relative; | ||
right: 1rem; | ||
} | ||
} | ||
</style> | ||
|
||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" /> | ||
|
@@ -176,6 +217,14 @@ | |
} | ||
</style> | ||
|
||
<!-- sticky animation --> | ||
<script type="text/javascript"> | ||
window.addEventListener("scroll", function () { | ||
var header = document.querySelector("nav"); | ||
header.classList.toggle("sticky", window.scrollY > 50) | ||
}) | ||
</script> | ||
|
||
</head> | ||
|
||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.