Premier commit de mon portfolio

This commit is contained in:
2025-11-25 22:43:31 +01:00
commit cad2f277bf
3 changed files with 189 additions and 0 deletions

8
script.js Normal file
View File

@@ -0,0 +1,8 @@
const links = document.querySelectorAll('a.nav-link, .navbar-brand');
links.forEach(link => {
link.addEventListener('click', function(e){
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
target.scrollIntoView({behavior:'smooth'});
});
});