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

fixed the header issues from issue#350 #355

Merged
merged 4 commits into from
Oct 9, 2024
Merged
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
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,15 @@ A heartfelt thank you to the following individuals for their valuable contributi
<td align="center">
<a href="https://github.com/Abankita">
<img src="https://avatars.githubusercontent.com/u/138569378?v=4" width="100;" alt="Abankita"/>

<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>
Expand Down Expand Up @@ -360,6 +369,15 @@ A heartfelt thank you to the following individuals for their valuable contributi
</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/shashankgoud18">
<img src="https://avatars.githubusercontent.com/u/142642917?v=4" width="100;" alt="shashankgoud18"/>
Expand Down Expand Up @@ -395,6 +413,8 @@ A heartfelt thank you to the following individuals for their valuable contributi
<sub><b>Sarin Sanyal</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/srishti023">
<img src="https://avatars.githubusercontent.com/u/137069939?v=4" width="100;" alt="srishti023"/>
Expand Down Expand Up @@ -439,6 +459,8 @@ A heartfelt thank you to the following individuals for their valuable contributi
<sub><b>Geetartha Bordoloi</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/RahulScripted">
<img src="https://avatars.githubusercontent.com/u/181909739?v=4" width="100;" alt="RahulScripted"/>
Expand Down
111 changes: 49 additions & 62 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -406,26 +406,7 @@
</script>

<script src="script.js"></script>
<header class="main-head">
<nav>
<img src="img\logo.png" id="logo-web">
<h1 id="logo">BuddyTrail</h1>
<ul>
<li><a href="#home" class='navhover '>Home</a></li>
<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>
<li><a href="#benefits" class='navhover'>Benefits</a></li>
<li><a href="#contact" class='navhover'>Contact</a></li>
<li><a href="signUp.html" class='navhover'>Sign In</a></li>

</ul>
<!-- Toggle Button -->
<button class="mode-toggle" id="modeToggle">
<span class="sun-icon glow">☀️</span>
</button>
</nav>
</header>

<div id="progress-bar"></div>
<!-- funcioning of progress bar -->
<script>
Expand Down Expand Up @@ -453,52 +434,58 @@ <h3>
<header class="locations-head">
<h2>The Perfect Travel Experience!</h2>

// Toggle button event
document
.getElementById("languageToggle")
.addEventListener("click", function () {
var translateElement = document.getElementById(
"google_translate_element"
);

// Toggle visibility
if (
translateElement.style.display === "none" ||
translateElement.style.display === ""
) {
translateElement.style.display = "block";
} else {
translateElement.style.display = "none";
}
});

</script>

<script src="script.js"></script>
<header class="main-head">
<nav>
<div class="logo" >
<img src="img\logo.png" id="logo-web">
<h1 id="logo">BuddyTrail</h1>
</div>
<ul>
<li><a href="#home" class="navhover">Home</a></li>
<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>
<li><a href="#benefits" class="navhover">Benefits</a></li>
<li><a href="#contact" class="navhover">Contact</a></li>
<li><a href="signUp.html" class="navhover">Sign In</a></li>
</ul>
<!-- Toggle Button -->
<div>
<button class="mode-toggle" id="modeToggle">
<span class="sun-icon glow">☀️</span>
</button>
</div>
</nav>
</header>
<nav>
<div class="logo">
<img src="img/logo.png" id="logo-web">
<h1 id="logo">BuddyTrail</h1>
</div>

<!-- Hamburger button for mobile -->
<button class="hamburger" id="hamburger">☰</button>

<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="#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>
<li><a href="#benefits" class="navhover">Benefits</a></li>
<li><a href="#contact" class="navhover">Contact</a></li>
<li><a href="signUp.html" class="navhover">Sign In</a></li>
</ul>

<!-- Toggle Button -->
<button class="mode-toggle" id="modeToggle">
<span class="sun-icon glow">☀️</span>
</button>
</nav>
</header>

<!-- JS to handle hamburger and close button -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const hamburger = document.getElementById("hamburger");
const navList = document.getElementById("nav-list");
const closeBtn = document.getElementById("closeBtn");

hamburger.addEventListener("click", function () {
navList.classList.toggle("active");
});

closeBtn.addEventListener("click", function () {
navList.classList.remove("active");
});
});
</script>



<div id="progress-bar"></div>
<!-- funcioning of progress bar -->
<script>
Expand Down
Loading
Loading