{{ project.company }}
diff --git a/src/assets/js/landing.js b/src/assets/js/landing.js
index 654a630..dd4bc45 100644
--- a/src/assets/js/landing.js
+++ b/src/assets/js/landing.js
@@ -65,69 +65,48 @@ headers.forEach(function (section) {
const contact = document.querySelector(".contact");
-gsap.to(contact, {
- //height: "initial",
- //'min-height': "initial",
- //padding: "1rem",
- scrollTrigger: {
- trigger: contact,
- start: "top top",
- pin: true,
- pinSpacing: false,
- endTrigger: 'body', // the element that the scrolling should stop at
- end: 'bottom', // where the scrolling should stop
- toggleActions: 'play none none reverse', // what happens when the element goes off screen
- },
-});
-
-// gsap.to("#scroll-to-top", {
-// scrollTrigger: {
-// trigger: contact,
-// start: "top top",
-// pin: true,
-// pinSpacing: false,
-// endTrigger: 'body', // the element that the scrolling should stop at
-// end: 'bottom', // where the scrolling should stop
-// toggleActions: 'play none none reverse', // what happens when the element goes off screen
-// },
-// });
+if (contact) {
+ gsap.to(contact, {
+ //height: "initial",
+ //'min-height': "initial",
+ //padding: "1rem",
+ scrollTrigger: {
+ trigger: contact,
+ start: "top top",
+ pin: true,
+ pinSpacing: false,
+ endTrigger: 'body', // the element that the scrolling should stop at
+ end: 'bottom', // where the scrolling should stop
+ toggleActions: 'play none none reverse', // what happens when the element goes off screen
+ },
+ });
+}
/* SCROLL BUTTONS */
-document.querySelector("#button-freelance-work").addEventListener("click", e => {
- // scroll to the spot where .box-c is in the center.
- // parameters: element, smooth, position
- smoother.scrollTo("#freelance-work", true, "center center");
- // or you could animate the scrollTop:
- // gsap.to(smoother, {
- // scrollTop: smoother.offset(".box-c", "center center"),
- // duration: 1
- // });
-});
+const btnFreelance = document.querySelector("#button-freelance-work");
+if (btnFreelance) {
+ btnFreelance.addEventListener("click", e => {
+ e.preventDefault();
+ smoother.scrollTo("#freelance-work", true, "center center");
+ });
+}
-document.querySelector("#button-personal-projects").addEventListener("click", e => {
- // scroll to the spot where .box-c is in the center.
- // parameters: element, smooth, position
- smoother.scrollTo("#personal-projects", true, "center center");
-
- // or you could animate the scrollTop:
- // gsap.to(smoother, {
- // scrollTop: smoother.offset(".box-c", "center center"),
- // duration: 1
- // });
-});
+const btnPersonal = document.querySelector("#button-personal-projects");
+if (btnPersonal) {
+ btnPersonal.addEventListener("click", e => {
+ e.preventDefault();
+ smoother.scrollTo("#personal-projects", true, "center center");
+ });
+}
-document.querySelector("#back-to-top").addEventListener("click", e => {
- // scroll to the spot where .box-c is in the center.
- // parameters: element, smooth, position
- smoother.scrollTo("h1", true, "center center");
-
- // or you could animate the scrollTop:
- // gsap.to(smoother, {
- // scrollTop: smoother.offset(".box-c", "center center"),
- // duration: 1
- // });
-});
+const btnTop = document.querySelector("#back-to-top");
+if (btnTop) {
+ btnTop.addEventListener("click", e => {
+ e.preventDefault();
+ smoother.scrollTo("h1", true, "center center");
+ });
+}
//ScrollTrigger.defaults({ scroller: smoother }); // this screws up click events
\ No newline at end of file
diff --git a/src/assets/styles/main.scss b/src/assets/styles/main.scss
index 0623a88..50ff4ae 100644
--- a/src/assets/styles/main.scss
+++ b/src/assets/styles/main.scss
@@ -136,7 +136,7 @@ header {
align-self: flex-start;
li{
- border-inline-start: .5rem var(--c-text-light);
+ border-inline-start: .5rem solid var(--c-text-light);
padding-inline-start: .2rem;
a{
@@ -169,7 +169,7 @@ header {
a{
color: var(--c-text);
text-decoration: underline;
- text-decoration-line: dotted;
+ text-decoration-style: dotted;
text-decoration-color: #6130002f;
text-decoration-thickness: 0.05em;
//text-decoration-style: dotted;