Made scrolling nicer for aboutme on mobile

This commit is contained in:
Notoric 2024-05-29 18:44:25 +01:00
parent 6d586c0982
commit b84cf83bda
2 changed files with 9 additions and 2 deletions

View File

@ -21,7 +21,7 @@ topshrtct.addEventListener('click', () => {
}
});
let links = document.getElementsById('navbar').getElementsByTagName('a');
let links = document.getElementById('navbar').getElementsByTagName('a');
for (let link of links) {
link.addEventListener('click', () => {
@ -29,7 +29,6 @@ for (let link of links) {
navbar.classList.remove('expanded');
navbtn.classList.remove('expanded');
});
}
async function updateAge() {

View File

@ -542,5 +542,13 @@ em {
width: 500px;
height: 500px;
}
#aboutme {
padding-top: 70px;
}
#aboutme h1 {
transform: translateY(170px);
}
}