-
Notifications
You must be signed in to change notification settings - Fork 102
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 #109 from MohdAftab011/main
Enhance NavBar Functionality and Header Visibility
- Loading branch information
Showing
10 changed files
with
18,472 additions
and
195 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
|
||
.slider-container { | ||
margin: 20px auto; | ||
width: 80%; | ||
} | ||
|
||
.slider-container img { | ||
width: 100%; | ||
height: auto; | ||
border-radius: 10px; | ||
} | ||
margin: 20px auto; | ||
width: 80%; | ||
} | ||
|
||
.slider-container img { | ||
width: 100%; | ||
height: auto; | ||
border-radius: 10px; | ||
} | ||
|
||
|
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 |
---|---|---|
@@ -1,47 +1,81 @@ | ||
/* NavBar.css */ | ||
|
||
.navbar { | ||
background-color: #e8e8e8; | ||
padding-top: 81px; | ||
padding-bottom:10px; | ||
display: flex; | ||
width: 100%; | ||
/* flex-direction: column; */ | ||
align-items: center; | ||
overflow-x: auto; /* Enable horizontal scrolling if needed */ | ||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.main-nav ul{ | ||
list-style: none; | ||
display: flex; | ||
justify-content: left; | ||
padding: 0; | ||
margin: 10px 0; | ||
width: 100%; | ||
/* min-width: 1200px; */ | ||
|
||
} | ||
|
||
.additional-links ul { | ||
list-style: none; | ||
display: flex; | ||
/* justify-content: right; */ | ||
padding: 0; | ||
margin: 10px 0; | ||
/* width: 100%; */ | ||
/* max-width: 1200px; */ | ||
|
||
} | ||
|
||
.main-nav ul li, .additional-links ul li { | ||
margin: 0 10px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
color: #333; | ||
transition: color 0.3s; | ||
} | ||
|
||
.main-nav ul li:hover, .additional-links ul li:hover { | ||
color: #007bff; | ||
} | ||
|
||
background-color: #000; /* Set the background to black */ | ||
padding: 15px 20px; /* Add some padding for spacing */ | ||
display: flex; /* Use flexbox for layout */ | ||
align-items: center; /* Center items vertically */ | ||
justify-content: space-between; /* Space out items evenly */ | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add subtle shadow for depth */ | ||
position: relative; | ||
} | ||
|
||
/* Dropdown styles */ | ||
.dropdown { | ||
position: relative; | ||
display: inline-block; | ||
margin: 0 15px; | ||
} | ||
|
||
/* Dropdown button */ | ||
.dropbtn { | ||
background-color: transparent; /* Make background transparent */ | ||
color: #fff; /* Set text color to white */ | ||
padding: 10px 16px; /* Add padding */ | ||
font-size: 16px; /* Set font size */ | ||
border: none; /* Remove border */ | ||
cursor: pointer; /* Change cursor on hover */ | ||
transition: color 0.3s; /* Smooth transition for color */ | ||
} | ||
|
||
/* Button hover effect */ | ||
.dropbtn:hover { | ||
color: #007bff; /* Change color on hover */ | ||
} | ||
|
||
/* Dropdown content */ | ||
.dropdown-content { | ||
display: none; /* Hide dropdown by default */ | ||
position: absolute; /* Position it below the button */ | ||
background-color: #333; /* Dark background for dropdown */ | ||
min-width: 160px; /* Minimum width for dropdown */ | ||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Shadow for dropdown */ | ||
z-index: 1; /* Stack above other content */ | ||
} | ||
|
||
/* Show dropdown on hover */ | ||
.dropdown:hover .dropdown-content { | ||
display: block; /* Show dropdown on hover */ | ||
} | ||
|
||
.dropdown-content a { | ||
color: #fff; /* Set link color to white */ | ||
padding: 12px 16px; /* Add padding */ | ||
text-decoration: none; /* Remove underline */ | ||
display: block; /* Make links block elements */ | ||
transition: background-color 0.3s; /* Smooth transition */ | ||
} | ||
|
||
/* Link hover effect */ | ||
.dropdown-content a:hover { | ||
background-color: #444; /* Change background on hover */ | ||
} | ||
|
||
/* Styling for single link */ | ||
.single-link { | ||
margin-left: 20px; /* Space between dropdown and single link */ | ||
} | ||
|
||
.single-link a { | ||
color: #fff; /* Set link color to white */ | ||
font-size: 16px; /* Set font size */ | ||
text-decoration: none; /* Remove underline */ | ||
padding: 10px 16px; /* Add padding */ | ||
cursor: pointer; /* Change cursor on hover */ | ||
transition: color 0.3s; /* Smooth transition */ | ||
} | ||
|
||
/* Single link hover effect */ | ||
.single-link a:hover { | ||
color: #007bff; /* Change color on hover */ | ||
} | ||
|
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.