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

fixes navigation issues #373 #377

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
148 changes: 82 additions & 66 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,17 @@ A heartfelt thank you to the following individuals for their valuable contributi
</a>
</td>
<td align="center">
<a href="https://github.com/akhandpratap18">
<img src="https://avatars.githubusercontent.com/u/176757208?v=4" width="100;" alt="akhandpratap18"/>
<a href="https://github.com/yashksaini-coder">
<img src="https://avatars.githubusercontent.com/u/115717039?v=4" width="100;" alt="yashksaini-coder"/>
<br />
<sub><b>Akhand Pratap Singh</b></sub>
<sub><b>Yash Kumar Saini</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/yashksaini-coder">
<img src="https://avatars.githubusercontent.com/u/115717039?v=4" width="100;" alt="yashksaini-coder"/>
<a href="https://github.com/akhandpratap18">
<img src="https://avatars.githubusercontent.com/u/176757208?v=4" width="100;" alt="akhandpratap18"/>
<br />
<sub><b>Yash Kumar Saini</b></sub>
<sub><b>Akhand Pratap Singh</b></sub>
</a>
</td>
<td align="center">
Expand All @@ -176,10 +176,10 @@ A heartfelt thank you to the following individuals for their valuable contributi
</a>
</td>
<td align="center">
<a href="https://github.com/Archisman141">
<img src="https://avatars.githubusercontent.com/u/121884549?v=4" width="100;" alt="Archisman141"/>
<a href="https://github.com/anuragverma108">
<img src="https://avatars.githubusercontent.com/u/129655645?v=4" width="100;" alt="anuragverma108"/>
<br />
<sub><b>Archisman Khanra</b></sub>
<sub><b>Anurag Verma</b></sub>
</a>
</td>
</tr>
Expand All @@ -192,17 +192,10 @@ A heartfelt thank you to the following individuals for their valuable contributi
</a>
</td>
<td align="center">
<a href="https://github.com/T-Rahul-prabhu-38">
<img src="https://avatars.githubusercontent.com/u/167653990?v=4" width="100;" alt="T-Rahul-prabhu-38"/>
<br />
<sub><b>Abankita Behera </b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/jvkousthub">
<img src="https://avatars.githubusercontent.com/u/162019723?v=4" width="100;" alt="jvkousthub"/>
<a href="https://github.com/Archisman141">
<img src="https://avatars.githubusercontent.com/u/121884549?v=4" width="100;" alt="Archisman141"/>
<br />
<sub><b>Kousthub J V</b></sub>
<sub><b>Archisman Khanra</b></sub>
</a>
</td>
<td align="center">
Expand All @@ -225,9 +218,23 @@ A heartfelt thank you to the following individuals for their valuable contributi
<br />
<sub><b>Abankita Behera </b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/T-Rahul-prabhu-38">
<img src="https://avatars.githubusercontent.com/u/167653990?v=4" width="100;" alt="T-Rahul-prabhu-38"/>
<br />
<sub><b>Abankita Behera </b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/jvkousthub">
<img src="https://avatars.githubusercontent.com/u/162019723?v=4" width="100;" alt="jvkousthub"/>
<br />
<sub><b>Kousthub J V</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Aditi2k5">
<img src="https://avatars.githubusercontent.com/u/146500979?v=4" width="100;" alt="Aditi2k5"/>
Expand Down Expand Up @@ -262,6 +269,15 @@ A heartfelt thank you to the following individuals for their valuable contributi
<br />
<sub><b>Hritika Sharan</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/HS202022">
<img src="https://avatars.githubusercontent.com/u/120270398?v=4" width="100;" alt="HS202022"/>
<br />
<sub><b>Himangshu Sharma</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/hgjajoo">
Expand All @@ -270,22 +286,13 @@ A heartfelt thank you to the following individuals for their valuable contributi
<sub><b>Harshvardhan Jajoo</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Mr-DK07">
<img src="https://avatars.githubusercontent.com/u/143409270?v=4" width="100;" alt="Mr-DK07"/>
<br />
<sub><b>D K</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/anuragverma108">
<img src="https://avatars.githubusercontent.com/u/129655645?v=4" width="100;" alt="anuragverma108"/>
<br />
<sub><b>Anurag Verma</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/poorvikaa08">
<img src="https://avatars.githubusercontent.com/u/152640996?v=4" width="100;" alt="poorvikaa08"/>
Expand All @@ -306,6 +313,15 @@ A heartfelt thank you to the following individuals for their valuable contributi
<br />
<sub><b>sadafhukkeri</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Nimit1775">
<img src="https://avatars.githubusercontent.com/u/74372261?v=4" width="100;" alt="Nimit1775"/>
<br />
<sub><b>nimit sodhani</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/dwivedishrey">
Expand All @@ -314,8 +330,6 @@ A heartfelt thank you to the following individuals for their valuable contributi
<sub><b>dwivedishrey</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/HarshadaGirase">
<img src="https://avatars.githubusercontent.com/u/128895955?v=4" width="100;" alt="HarshadaGirase"/>
Expand All @@ -331,40 +345,40 @@ A heartfelt thank you to the following individuals for their valuable contributi
</a>
</td>
<td align="center">
<a href="https://github.com/Risheendra183">
<img src="https://avatars.githubusercontent.com/u/146363721?v=4" width="100;" alt="Risheendra183"/>
<a href="https://github.com/tarunkumar2005">
<img src="https://avatars.githubusercontent.com/u/158801564?v=4" width="100;" alt="tarunkumar2005"/>
<br />
<sub><b>Risheendra183</b></sub>
<sub><b>Tarun kumar</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Slambot01">
<img src="https://avatars.githubusercontent.com/u/145530795?v=4" width="100;" alt="Slambot01"/>
<a href="https://github.com/srishti023">
<img src="https://avatars.githubusercontent.com/u/137069939?v=4" width="100;" alt="srishti023"/>
<br />
<sub><b>Zorslay#17</b></sub>
<sub><b>Srishti Choudhary</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/SagnikGos">
<img src="https://avatars.githubusercontent.com/u/177692306?v=4" width="100;" alt="SagnikGos"/>
<a href="https://github.com/sarinsanyal">
<img src="https://avatars.githubusercontent.com/u/171278391?v=4" width="100;" alt="sarinsanyal"/>
<br />
<sub><b>SagnikGos</b></sub>
<sub><b>Sarin Sanyal</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/samarth-6">
<img src="https://avatars.githubusercontent.com/u/123616579?v=4" width="100;" alt="samarth-6"/>
<a href="https://github.com/ruchikakengal">
<img src="https://avatars.githubusercontent.com/u/177725578?v=4" width="100;" alt="ruchikakengal"/>
<br />
<sub><b>Samarth Mishra</b></sub>
<sub><b>Ruchika Kengal</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/shashankgoud18">
<img src="https://avatars.githubusercontent.com/u/142642917?v=4" width="100;" alt="shashankgoud18"/>
<a href="https://github.com/Krishnamverma951">
<img src="https://avatars.githubusercontent.com/u/166730422?v=4" width="100;" alt="Krishnamverma951"/>
<br />
<sub><b>Shashank Goud</b></sub>
<sub><b>Krishnam Verma</b></sub>
</a>
</td>
<td align="center">
Expand All @@ -375,40 +389,40 @@ A heartfelt thank you to the following individuals for their valuable contributi
</a>
</td>
<td align="center">
<a href="https://github.com/Krishnamverma951">
<img src="https://avatars.githubusercontent.com/u/166730422?v=4" width="100;" alt="Krishnamverma951"/>
<a href="https://github.com/shashankgoud18">
<img src="https://avatars.githubusercontent.com/u/142642917?v=4" width="100;" alt="shashankgoud18"/>
<br />
<sub><b>Krishnam Verma</b></sub>
<sub><b>Shashank Goud</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ruchikakengal">
<img src="https://avatars.githubusercontent.com/u/177725578?v=4" width="100;" alt="ruchikakengal"/>
<a href="https://github.com/samarth-6">
<img src="https://avatars.githubusercontent.com/u/123616579?v=4" width="100;" alt="samarth-6"/>
<br />
<sub><b>Ruchika Kengal</b></sub>
<sub><b>Samarth Mishra</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/sarinsanyal">
<img src="https://avatars.githubusercontent.com/u/171278391?v=4" width="100;" alt="sarinsanyal"/>
<a href="https://github.com/SagnikGos">
<img src="https://avatars.githubusercontent.com/u/177692306?v=4" width="100;" alt="SagnikGos"/>
<br />
<sub><b>Sarin Sanyal</b></sub>
<sub><b>SagnikGos</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/srishti023">
<img src="https://avatars.githubusercontent.com/u/137069939?v=4" width="100;" alt="srishti023"/>
<a href="https://github.com/Slambot01">
<img src="https://avatars.githubusercontent.com/u/145530795?v=4" width="100;" alt="Slambot01"/>
<br />
<sub><b>Srishti Choudhary</b></sub>
<sub><b>Zorslay#17</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/tarunkumar2005">
<img src="https://avatars.githubusercontent.com/u/158801564?v=4" width="100;" alt="tarunkumar2005"/>
<a href="https://github.com/Risheendra183">
<img src="https://avatars.githubusercontent.com/u/146363721?v=4" width="100;" alt="Risheendra183"/>
<br />
<sub><b>Tarun kumar</b></sub>
<sub><b>Risheendra183</b></sub>
</a>
</td>
<td align="center">
Expand All @@ -432,6 +446,8 @@ A heartfelt thank you to the following individuals for their valuable contributi
<sub><b>Isha Rawat</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Geet2002">
<img src="https://avatars.githubusercontent.com/u/129830187?v=4" width="100;" alt="Geet2002"/>
Expand All @@ -446,8 +462,6 @@ A heartfelt thank you to the following individuals for their valuable contributi
<sub><b>RahulScripted</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/anuragbansall">
<img src="https://avatars.githubusercontent.com/u/137208377?v=4" width="100;" alt="anuragbansall"/>
Expand Down Expand Up @@ -476,6 +490,8 @@ A heartfelt thank you to the following individuals for their valuable contributi
<sub><b>Ahina Gangopadhyay</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Raj-Aditya-27">
<img src="https://avatars.githubusercontent.com/u/138434890?v=4" width="100;" alt="Raj-Aditya-27"/>
Expand Down
38 changes: 34 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,14 @@ <h2>The Perfect Travel Experience!</h2>
<header class="main-head">
<nav>
<div class="logo">
<img src="img/logo.png" id="logo-web">
<h1 id="logo">BuddyTrail</h1>
<a href="#" id="logoLink">
<img src="img/logo.png" id="logo-web">
</a>
<div class="textlink">
<a href="#" id="TextLink">
<h1 id="logo">BuddyTrail</h1>
</a>
</div>
</div>

<!-- Hamburger button for mobile -->
Expand All @@ -451,7 +457,7 @@ <h1 id="logo">BuddyTrail</h1>
<ul id="nav-list">
<!-- Close button for dropdown -->
<span class="dropdown-close-btn" id="closeBtn">×</span>
<li><a href="#home" class="navhover">Home</a></li>
<li><a href="#" class="navhover" id="homeLink">Home</a></li> <!-- Updated href to # -->
<li><a href="#locations" class="navhover">Location</a></li>
<li><a href="#itineraries" class="navhover">Travel Itineraries</a></li>
<li><a href="#reviews" class="navhover">Reviews</a></li>
Expand All @@ -467,20 +473,44 @@ <h1 id="logo">BuddyTrail</h1>
</nav>
</header>

<!-- JS to handle hamburger and close button -->
<!-- JS to handle hamburger, close button, and scrolling -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const hamburger = document.getElementById("hamburger");
const navList = document.getElementById("nav-list");
const closeBtn = document.getElementById("closeBtn");
const homeLink = document.getElementById("homeLink");
const logoLink = document.getElementById("logoLink"); // Select the logo link

// Toggle the navigation list on hamburger click
hamburger.addEventListener("click", function () {
navList.classList.toggle("active");
});

// Close the navigation list on close button click
closeBtn.addEventListener("click", function () {
navList.classList.remove("active");
});

// Smooth scroll to top when Home link is clicked
homeLink.addEventListener("click", function (event) {
event.preventDefault(); // Prevent default link behavior
window.scrollTo({
top: 0, // Scroll to the top of the page
behavior: "smooth" // Smooth scroll animation
});
navList.classList.remove("active"); // Close the nav if it's open
});

// Smooth scroll to top when logo is clicked
logoLink.addEventListener("click", function (event) {
event.preventDefault(); // Prevent default link behavior
window.scrollTo({
top: 0, // Scroll to the top of the page
behavior: "smooth" // Smooth scroll animation
});
navList.classList.remove("active"); // Close the nav if it's open
});
});
</script>

Expand Down