diff --git a/content/_index.md b/content/_index.md
index e2cc5b6..fe6b507 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -6,4 +6,4 @@ date: 2023-06-27
# Hi, I'm Tyler
-Software engineer, aspiring postmath
+software engineer, aspiring postmath
diff --git a/themes/clortox/layouts/_default/baseof.html b/themes/clortox/layouts/_default/baseof.html
index c0968d6..ffd0b5f 100644
--- a/themes/clortox/layouts/_default/baseof.html
+++ b/themes/clortox/layouts/_default/baseof.html
@@ -2,9 +2,9 @@
{{- partial "head.html" . -}}
-
+
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
diff --git a/themes/clortox/static/js/script.js b/themes/clortox/static/js/script.js
index c87d322..8a714e1 100644
--- a/themes/clortox/static/js/script.js
+++ b/themes/clortox/static/js/script.js
@@ -7,9 +7,14 @@ window.onload = function() {
});
window.addEventListener('scroll', function() {
- const parallax = document.querySelector('.parallax')
+ let parallax = document.querySelector('.parallax')
let scrollPosition = window.pageYOffset;
+ let newSize = (document.querySelector('#content').offsetHeight * 0.66);
+ if(newSize < window.innerHeight)
+ newSize = window.innerHeight;
+ parallax.style.height = newSize + "px";
+
parallax.style.transform = 'translateY(' + scrollPosition * .5 + 'px)';
})
document.querySelectorAll(".typewriter").forEach(item => {