v1.4.1-release/website

This commit is contained in:
Ayushya Amitabh
2020-07-12 14:25:53 -04:00
parent 5189c27627
commit 72879675d8
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -10,13 +10,13 @@ var GET_INIT = 0;
function handleSticky() { function handleSticky() {
const logo = document.querySelector('.logo'); const logo = document.querySelector('.logo');
const get = document.querySelector('.landing .link-button'); const get = document.querySelector('.landing .link-button');
if (window.scrollY >= LOGO_INIT + logo.offsetHeight * 1.5) { if (window.scrollY >= LOGO_INIT + logo.offsetHeight * 2) {
logo.classList.add('stickied'); logo.classList.add('stickied');
} else { } else {
logo.classList.remove('stickied'); logo.classList.remove('stickied');
} }
if (get) { if (get) {
if (window.scrollY >= GET_INIT + get.offsetHeight * 1.5) { if (window.scrollY >= GET_INIT + get.offsetHeight * 2) {
get.classList.add('stickied'); get.classList.add('stickied');
} else { } else {
get.classList.remove('stickied'); get.classList.remove('stickied');
+5
View File
@@ -127,6 +127,11 @@ body {
transform: scale(3); transform: scale(3);
margin-bottom: 3rem; margin-bottom: 3rem;
} }
footer {
padding-bottom: 17rem;
}
footer .title { footer .title {
font-size: 2rem; font-size: 2rem;
} }