Skip to content

Commit

Permalink
adding files into the folder
Browse files Browse the repository at this point in the history
  • Loading branch information
PRIYESHSINGH24 committed Feb 12, 2025
1 parent c7d5a92 commit 90cf044
Show file tree
Hide file tree
Showing 31 changed files with 13,452 additions and 0 deletions.
177 changes: 177 additions & 0 deletions navbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
/* Navbar Styles */
.navbar {
background: #2F2441;
padding: 1rem 1rem;
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 10px #100C08;
z-index: 1000;
backdrop-filter: blur(10px);
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
border: 5px rgb(144 174 172 / 0%) solid;
}


.logo {
display: flex;
align-items: center;
}

.logo img {
height: 40px;
width: 5rem;
transition: transform 0.3s ease;
}

.logo img:hover {
transform: scale(1.05);
}

.logo {
padding-top: 8px;
}

.nav-links {
display: flex;
gap: 2rem;
list-style: none;
margin: 0;
padding: 0;
}

.nav-links li {
position: relative;
}

.nav-links li a {
/* color: #000; */
color: #000;
font-weight: bold;
text-decoration: none;
padding: 8px 12px;
transition: background-color 0.3s ease-in-out;
font-size: 18px;
}

.nav-links a {
color: #333;
text-decoration: none;
font-weight: 500;
font-size: 1rem;
padding: 0.5rem 0;
transition: color 0.3s ease;
}

.nav-links a:hover {
color: #007bff;
}

/* Underline animation for nav links */
.nav-links a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: #007bff;
transition: width 0.3s ease;
}

.nav-links a:hover::after {
width: 100%;
}

/* Active link style */
.nav-links a.active {
color: #007bff;
}

.nav-links a.active::after {
width: 100%;
}

/* Mobile menu button - Hidden by default */
.mobile-menu-btn {
color: #000;
display: none;
background: none;
border: none;
padding: 0.5rem;
cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
.navbar {
padding: 1rem;
}

.mobile-menu-btn {
display: block;
}

.nav-links {
display: none;
/* Hide by default on mobile */
position: absolute;
top: 100%;
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.98);
flex-direction: column;
padding: 1rem;
gap: 1rem;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Show menu when active */
.nav-links.active {
display: flex;
}

.nav-links li {
width: 100%;
text-align: center;
}

.nav-links a {
display: block;
padding: 0.75rem 0;
}

.nav-links a::after {
display: none;
/* Remove hover animation on mobile */
}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {

.nav-links a {
color: #f9fafd;
}

.nav-links a:hover {
color: #60a5fa;
}

.nav-links a::after {
background-color: #60a5fa;
}

@media (max-width: 768px) {
.nav-links {
background: rgba(174, 237, 158, 0.98);
}
}
}


Loading

0 comments on commit 90cf044

Please sign in to comment.