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
16 changes: 16 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,19 @@ document.addEventListener("DOMContentLoaded", () => {

// Update the year in the footer
document.getElementById("year").textContent = new Date().getFullYear();


// Add this to your JS file
const bar = document.querySelector('.fa-bars');
const cross = document.querySelector('.fa-times');
const nav = document.querySelector('nav');
const navLinks = document.querySelector('.nav-links');

bar.onclick = function() {
navLinks.classList.add('nav-active');
nav.classList.add('show-menu');
};
cross.onclick = function() {
navLinks.classList.remove('nav-active');
nav.classList.remove('show-menu');
};
14 changes: 13 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ nav .fa {


/* Responsive Design Enhancements */
@media (max-width: 700px) {
@media (max-width: 900px) {
.text-box h1 {
margin-top: 15px;
font-weight: 700;
Expand Down Expand Up @@ -419,6 +419,18 @@ nav .fa {
transform: scale(1.05);
box-shadow: 0 0 15px rgba(216, 165, 46, 0.922);
}
nav .fa-bars {
display: block;
}
nav .fa-times {
display: none;
}
nav.show-menu .fa-bars {
display: none;
}
nav.show-menu .fa-times {
display: block;
}
}

.Welcome {
Expand Down