Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #issue-number: 1575 MAKE THIS NAVBAR TO REFLECTING EFFECT O… #1653

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -324,20 +324,34 @@ a {
left: 0;
right: 0;
z-index: 5;
padding: 17px;s
background-color: #00000087; /* Initially black */
padding: 17px;
background-color: black; /* For Reflective background change back-ground to #00000087*/
color: white;
display: flex;
justify-content: space-between; /* Adjusted to space-between for better layout */
justify-content: space-between;
align-items: center;
transition: background-color 0.3s ease, height 0.3s ease;
}

.main-head.shadow {
background-color: rgba(0, 0, 0, 0.7); /* Becomes transparent when scrolled */
background-color: rgba(0, 0, 0, 0.7); /* Becomes more transparent when scrolled */
backdrop-filter: blur(8px);
}

/* Reflection Effect */
.main-head:before {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 100%;
background: rgba(255, 255, 255, 0.1); /* Light reflection effect */
transform: scaleY(-1); /* Flip the reflection */
opacity: 0.1; /* Adjust opacity for the reflection */
pointer-events: none; /* Allow clicks to pass through */
}

nav {
display: flex;
align-items: center;
Expand All @@ -352,6 +366,8 @@ nav {
#nav-list {
list-style: none;
align-items: center;
display: flex; /* Ensure items are aligned horizontally */
padding: 0; /* Reset default padding */
}

#nav-list li a {
Expand All @@ -360,6 +376,12 @@ nav {
font-weight: 400;
white-space: nowrap;
font-size: 1.8rem;
padding: 10px 15px; /* Add padding for better click area */
transition: color 0.3s ease;
}

#nav-list li a:hover {
color: #ffde59;
}

.hamburger {
Expand Down
4 changes: 3 additions & 1 deletion travel.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ <h6>Climate:</h6>
</div>
</div>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js">

</script>
</body>
</html>