-
Notifications
You must be signed in to change notification settings - Fork 217
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 #446 from Roshansuthar1105/main
Made the navbar responsive and redesigned the image card layout
- Loading branch information
Showing
4 changed files
with
75 additions
and
40 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -124,12 +124,15 @@ | |
<!-- header section starts --> | ||
|
||
<header> | ||
|
||
<input type="checkbox" name="" id="toggler"> | ||
<label for="toggler" class="fas fa-bars"></label> | ||
<!-- <input type="checkbox" name="" id="toggler"> | ||
<label for="toggler" class="fas fa-bars"></label> --> | ||
<a href="#" class="logo"><img src="img/swasthya-logo.png"></a> | ||
|
||
<div id="shownav"><img src="./img/menu.svg" alt="show menu"></div> | ||
<nav class="navbar"> | ||
<div class="dark-btn-navbar"> | ||
<label id="dark-change"></label> | ||
</div> | ||
<div id="hidenav"> <img src="./img/cross.svg" alt="Hide Menu"></div> | ||
<a href="#home">Home</a> | ||
<a href="#about">About Us</a> | ||
<a href="#services">Services</a> | ||
|
@@ -138,18 +141,14 @@ | |
<a href="nearby.html">Nearby</a> | ||
<a href="appointment.html"><span>Book Your Appointment</span></a> | ||
<a href="https://yourcompany.setmore.com">Schedule Appointment</a> | ||
<div class="dark-btn-navbar"> | ||
<label id="dark-change"></label> | ||
</div> | ||
|
||
<a href="#setmore_widget"><span>Schedule And Reminder</span></a> | ||
<a href="user_login.html">User Login</a> | ||
<a href="#">Doctor Login</a> | ||
<a href="#">Admin Login</a> | ||
</nav> | ||
|
||
</header> | ||
|
||
|
||
<!-- header section ends --> | ||
|
||
|
||
|
@@ -374,7 +373,7 @@ <h4><a href="">Pediatrician</a></h4> | |
<div class="col-md-4"> | ||
<div class="image-container" data-aos="fade-up"> | ||
<a href="img/portfolio-6.jpg" data-pswp-width="370" data-pswp-height="300"> | ||
<img src="img/portfolio-6.jpg" class="card-img my-5" alt="..."> | ||
<img src="img/portfolio-6.jpg" class="card-img" alt="..."> | ||
</a> | ||
|
||
</div> | ||
|
@@ -388,7 +387,7 @@ <h4><a href="">Pediatrician</a></h4> | |
<div class="col-md-4"> | ||
<div class="image-container" data-aos="fade-up" data-aos-duration="500"> | ||
<a href="img/portfolio-3.jpg" data-pswp-width="370" data-pswp-height="300"> | ||
<img src="img/portfolio-3.jpg" class="card-img my-5" alt="..."> | ||
<img src="img/portfolio-3.jpg" class="card-img " alt="..."> | ||
</a> | ||
|
||
</div> | ||
|
@@ -402,13 +401,13 @@ <h4><a href="">Pediatrician</a></h4> | |
<div class="col-md-4"> | ||
<div class="image-container" data-aos="fade-up" data-aos-duration="600"> | ||
<a href="img/portfolio-5.jpg" data-pswp-width="370" data-pswp-height="300"> | ||
<img src="img/portfolio-5.jpg" class="card-img my-5" alt="..."> | ||
<img src="img/portfolio-5.jpg" class="card-img " alt="..."> | ||
</a> | ||
|
||
</div> | ||
<div class="image-container" data-aos="fade-up" data-aos-duration="600"> | ||
<a href="img/portfolio-1.jpg" data-pswp-width="370" data-pswp-height="300"> | ||
<img src="img/portfolio-1.jpg" class="card-img mb-5" alt="..."> | ||
<img src="img/portfolio-1.jpg" class="card-img " alt="..."> | ||
</a> | ||
|
||
</div> | ||
|
@@ -791,6 +790,26 @@ <h5>Aligarh</h5> | |
}); | ||
lightbox.init(); | ||
</script> | ||
<script> | ||
const show = document.getElementById("shownav"); | ||
const navbar = document.querySelector('.navbar'); | ||
show.addEventListener('click',()=>{ | ||
console.log("show clicked"); | ||
navbar.style.right='0%'; | ||
show.style.display='none' | ||
}) | ||
const hide = document.getElementById("hidenav"); | ||
hide.addEventListener('click',()=>{ | ||
console.log("hide clicked"); | ||
navbar.style.right='-100%'; | ||
show.style.display='block' | ||
}) | ||
navbar.addEventListener('click',()=>{ | ||
console.log("hide clicked"); | ||
navbar.style.right='-100%'; | ||
show.style.display='block' | ||
}) | ||
</script> | ||
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script> | ||
<script> | ||
AOS.init(); | ||
|
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