Skip to content
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
14 changes: 1 addition & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,7 @@
<span class="logo-text"><span class="c-letter">C</span>+<span class="n-letter">N</span></span>
<span class="logo-subtitle">Hosting</span>
</div>
<ul class="nav-menu">
<li><a href="#home">Home</a></li>
<li><a href="#who-we-are-for">Who We Are For</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#pricing">Pricing</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<button class="hamburger" aria-label="Toggle navigation" aria-expanded="false">
<span></span>
<span></span>
<span></span>
</button>
</div>
</div>
</nav>

<section id="home" class="hero">
Expand Down
2 changes: 2 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ window.addEventListener('scroll', () => {
}
});

if (hamburger && navMenu) {
hamburger.addEventListener('click', () => {
hamburger.classList.toggle('active');
navMenu.classList.toggle('active');
Expand Down Expand Up @@ -82,6 +83,7 @@ document.addEventListener('click', (e) => {
}
});

}
// Active navigation highlighting
function updateActiveNav() {
const sections = document.querySelectorAll('section[id]');
Expand Down
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ body::before {
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: space-between;
justify-content: center;
align-items: center;
gap: 2rem;
}
Expand Down
Loading