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

Navbar #918

Closed
wants to merge 3 commits 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
57 changes: 33 additions & 24 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,36 +57,21 @@
<link rel="stylesheet" href="./Css-Files/aboutus.css" />
<link rel="stylesheet" href="./Css-Files/testimonial.css" />
<script src="chatboxx.js" defer></script>
<style>
.rating-container button {
font-size: 24px;
cursor: pointer;
background: none;
border: none;
}
.rating-container button:hover{
transform: scale(1.5);
}

.sec-img {
transform-style: preserve-3d;
will-change: transform;
}
.nav_link li{
font-size: 16px;
display: flex;
flex-direction: row;

}
</style>
<script>
function toggleMenu() {
const navMenu = document.querySelector('.index-nav_menu');
navMenu.classList.toggle('active');
}

</script>
</head>

<body>
<div class="pre">
<div class="loader"></div>
</div>
<!-- ############# Header ############# -->
<header class="header_container nav-h">
<!-- <header class="header_container nav-h">
<div class="img">
<img id="rd-logo" style="width: 90px; height: auto;" src="images/rd.png">
</div>
Expand All @@ -110,7 +95,31 @@
<div class="line"></div>
</div>
</nav>
</header>
</header> -->

<header class="index-header_container">
<nav class="index-nav_menu">
<div class="index-img">
<img id="rd-logo" style="width: 90px; height: auto;" src="images/rd.png">
<button class="index-hamburger" id="hamburger" onclick="toggleMenu()">
<i class="bi bi-list"></i>
</button>
</div>

<ul class="index-nav_link">
<li><a href="index.html"><i class="bi bi-house-door-fill"></i> Home</a></li>
<li><a href="#about"><i class="bi bi-info-circle-fill"></i> About</a></li>
<li><a href="news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="#patient-portal"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="#doctors"><i class="bi bi-person-circle"></i> Doctor</a></li>
<li><a href="contact"><i class="bi bi-telephone"></i>Contact us</a></li>
<li><a href="#feedback"><i class="bi bi-star"></i>Rate Us</a></li>
<li><a href="log/login.html"><i class="bi bi-box-arrow-right"></i> Sign in/Sign up</a></li><br>
<li><a href="./Html-Files/Doctor Experience.html"><button>Find a Doctor</button></a></li>
</ul>
</nav>
</header>

<!-- ############# Header ############# -->

Expand Down
108 changes: 106 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ h6 {

.nav_link li {
margin-right: 1px;
/* Add space between items */
padding: 5px 10px;
display: inline-block;
color: white;
Expand Down Expand Up @@ -79,10 +78,115 @@ h6 {
height: 85px;
margin: auto;
margin-top: 0px;
/* Adjust this value to move the header down */
padding-top: 15px;
z-index: 555;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* Header container */
.index-header_container {
display: flex;
align-items: center;
justify-content: space-between;
gap: 100px;
padding: 10px 20px;
background-color: #333;
color: #fff;
}
.index-nav_menu{
width: 100%;
display: flex;
justify-content: space-between;
}
.index-img{
width: 90px;
height: 80px;
}

/* Navigation menu */

.index-nav_link {
display: flex;
list-style: none;
justify-content: space-between;
align-items: center;
}

.index-nav_link li {
margin: 0 10px;
}

.index-nav_link li a {
text-decoration: none;
color: #fff;
font-size: 18px;
}

.index-nav_link li a:hover {
color: #ddd;
}

/* Hamburger icon */
.index-hamburger {
display: none;
cursor: pointer;
font-size: 28px;
}

/* Responsive styles */
@media (max-width: 1310px) {
.index-nav_link {
display: none;
flex-direction: column;
position: absolute;
top: 90px;
right: 0;
background-color: #333;
width: 100%;
padding: 20px;
z-index: 1000;
}

.index-nav_link li {
margin: 10px 0;
text-align: center;
}

.index-nav_link a {
font-size: 20px;
}

.index-nav_link a button {
width: 100%;
}

.index-hamburger {
display: block;
align-items: end;
}
.index-nav_menu.active{
width: 100%;
transition: 2s;

}
.index-img{
display: flex;
width: 100%;
justify-content: space-between;
}

}

/* Show the menu when active */
.index-nav_menu.active .index-nav_link {
display: flex;
transition: 2s;
}


.container {
/* display: ; */
Expand Down