From 5ce2b6c9ae869e8aa2ad52fe9a8661638c1741ca Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:06:21 +0000 Subject: [PATCH 1/4] Initial plan From a1026c714d38956747d972d5731a20baf3f9493c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:24:45 +0000 Subject: [PATCH 2/4] Refactor duplicated code in layouts and JavaScript Co-authored-by: adrianmg <589285+adrianmg@users.noreply.github.com> --- _includes/home-scripts.html | 2 ++ _layouts/default.html | 2 +- _layouts/home.html | 52 +++++++++++++++++-------------------- assets/js/s.js | 5 ++-- index.html | 1 + 5 files changed, 31 insertions(+), 31 deletions(-) create mode 100644 _includes/home-scripts.html diff --git a/_includes/home-scripts.html b/_includes/home-scripts.html new file mode 100644 index 0000000..50aba70 --- /dev/null +++ b/_includes/home-scripts.html @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index db3ffd9..b66bd3b 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,7 +1,7 @@ {% include head.html %} - + {{ content }} \ No newline at end of file diff --git a/_layouts/home.html b/_layouts/home.html index aad54ed..819406f 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -1,32 +1,28 @@ - - -{% include head.html %} - -
-
-
-
-

Adrián Mato

-

Design Director at GitHub Copilot & startup investor.

-

- For the last 18+ years, I've designed digital products between Madrid, London and now, from - San Francisco. I also co-founded and later sold my company Erasmusu. -

-

- My career started as a Software Developer, but it soon became clear that my true passion was Design. - I love combining both skillsets to create products that fulfill a clear purpose. -

-
+--- +layout: default +--- +
+
+
+
+

Adrián Mato

+

Design Director at GitHub Copilot & startup investor.

+

+ For the last 18+ years, I've designed digital products between Madrid, London and now, from + San Francisco. I also co-founded and later sold my company Erasmusu. +

+

+ My career started as a Software Developer, but it soon became clear that my true passion was Design. + I love combining both skillsets to create products that fulfill a clear purpose. +

- - -
- {% include home-navigation.html %} - {% include home-work.html %} + + + +
+{% include home-navigation.html %} +{% include home-work.html %} - - - - +{% include home-scripts.html %} diff --git a/assets/js/s.js b/assets/js/s.js index dbd33f9..b888ae6 100644 --- a/assets/js/s.js +++ b/assets/js/s.js @@ -61,7 +61,8 @@ ? documentHeight - windowHeight : destinationOffset ) - if (start >= destinationOffsetToScroll) { // going up + const isScrollingUp = start >= destinationOffsetToScroll; + if (isScrollingUp) { destinationOffsetToScroll -= extraPadding; } @@ -81,7 +82,7 @@ Math.ceil(timeFunction * (destinationOffsetToScroll - start) + start) ); - if (start >= destinationOffsetToScroll) { // going up + if (isScrollingUp) { if (Math.round(window.pageYOffset) <= Math.ceil(destinationOffsetToScroll)) { return; } diff --git a/index.html b/index.html index 8cc335f..c3c1b09 100644 --- a/index.html +++ b/index.html @@ -3,5 +3,6 @@ # Edit theme's home layout instead if you wanna make some changes # See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults layout: home +body_class: home description: Personal site of Adrián Mato. Design Director at Github Copilot and startup investor. --- From 2fed0262771a8ce8dddb6b92da459b3c97820d11 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:27:15 +0000 Subject: [PATCH 3/4] Extract getCurrentTime helper function to reduce duplication Co-authored-by: adrianmg <589285+adrianmg@users.noreply.github.com> --- assets/js/s.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/js/s.js b/assets/js/s.js index b888ae6..8c428a3 100644 --- a/assets/js/s.js +++ b/assets/js/s.js @@ -38,10 +38,15 @@ // HELPERS + // HELPERS: Get current time with fallback + function getCurrentTime() { + return "now" in window.performance ? performance.now() : new Date().getTime(); + } + // HELPERS: scrolling function from A -> B (modified from: https://bit.ly/2H3JKMV) function scrollToItem(destination, duration = 500, extraPadding) { const start = window.pageYOffset; - const startTime = "now" in window.performance ? performance.now() : new Date().getTime(); + const startTime = getCurrentTime(); const documentHeight = Math.max( document.body.scrollHeight, @@ -72,8 +77,7 @@ } function scroll() { - const now = - "now" in window.performance ? performance.now() : new Date().getTime(); + const now = getCurrentTime(); const time = Math.min(1, (now - startTime) / duration); const timeFunction = 0.5 * (1 - Math.cos(Math.PI * time)); From f480e2941cca94c88f3f48a69bf45cb96737283f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:31:22 +0000 Subject: [PATCH 4/4] Remove redundant outline property from h2 element Co-authored-by: adrianmg <589285+adrianmg@users.noreply.github.com> --- _sass/_layout.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/_sass/_layout.scss b/_sass/_layout.scss index 59f91e3..33bf0cd 100644 --- a/_sass/_layout.scss +++ b/_sass/_layout.scss @@ -183,7 +183,6 @@ pre { font-size: var(--base-font-size); line-height: 2.8rem; margin-bottom: 0.7rem; - outline: none; a { color: var(--title-color);