Refactor index.html to modularize sections, implement sticky navigation, and enhance CSS styles for improved UI responsiveness

This commit is contained in:
Mohammed Al-yaseen
2025-05-14 23:20:28 +03:00
parent 814fb97207
commit f62368672d
11 changed files with 830 additions and 939 deletions

View File

@@ -109,4 +109,13 @@
document.body.style.overflow = '';
}
});
// Sticky Navigation
$(window).on('scroll', function() {
if ($(window).scrollTop() > 50) {
$('.navbar').addClass('is-sticky');
} else {
$('.navbar').removeClass('is-sticky');
}
});
})(window.jQuery);