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 improved #728

Closed
wants to merge 1 commit 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
13 changes: 6 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,6 @@ <h3>
<h2>The Perfect Travel Experience!</h2>


</script>

<script src="script.js"></script>
<header class="main-head">
<nav>
Expand All @@ -290,13 +288,14 @@ <h1 id="logo"><a href="#home">BuddyTrail</a></h1>

</ul>

<!-- Toggle Button -->
<!-- toggle button Removed -->
<!-- Toggle Button
<button class="mode-toggle" id="modeToggle">
<span class="sun-icon glow"><img src="day-mode.png" alt="Light mode"></span>
<span class="moon-icon glow" style="display: none;"><img src="moon.png" alt="Dark mode"></span>
</button>
</nav>
</header>
</header> -->

<!-- JS to handle hamburger and close button -->
<script>
Expand Down Expand Up @@ -361,15 +360,15 @@ <h1 id="logo"><a href="#home">BuddyTrail</a></h1>
scrollPercent + "%";
});
</script>
<main>
<!-- <main>
<section class="hero">
<div class="header1"><h2>Travel Beyond Limits</h2></div>

<h3>
We handle everything, from finding the ideal travel buddy to
selecting your perfect hotel, flight, and destination.
</h3>
<img src="/img/cloud.png" class="moving-cloud-1 cloud" />
</h3> -->
<!-- <img src="/img/cloud.png" class="moving-cloud-1 cloud" /> -->
<img src="/img/cloud.png" class="moving-cloud-2 cloud" />
</header>
</section>
Expand Down
9 changes: 5 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ nav {
display: flex;
align-items: center;
justify-content: flex-start;
max-width: 1200px; /* Limit the width for better centering */
max-width: 1500px; /* Limit the width for better centering */
width: 100%; /* Ensure nav takes full width */
margin: 0 0; /* Center the nav */
}
Expand All @@ -231,9 +231,10 @@ nav {

#nav-list {
display: flex;
gap: 5px;
flex-wrap: wrap;
justify-content: center;
list-style: none;
margin-left: 60px;
margin-left: 30px;
padding: 0;
align-items: center;
}
Expand All @@ -243,7 +244,7 @@ nav {
text-decoration: none;
font-weight: 400;
white-space: nowrap;
font-size: 20px;
font-size: 18px;
}

.hamburger {
Expand Down