Skip to content

Commit

Permalink
feat: smoothscroll to side projects
Browse files Browse the repository at this point in the history
  • Loading branch information
acumulus8 committed Jul 31, 2023
1 parent 1594a4c commit 92d7a01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/assets/scripts/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function loadPortfolioPageJS() {
shadedArticle: allShadedArticles[i],
});
new SmoothScroll($(`#${allShowShadeButtons[i].id} a`));
new SmoothScroll($("#side-projects-link"));
}

shadeButtonGroups.forEach((group) => {
Expand Down
4 changes: 2 additions & 2 deletions app/portfolio.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ <h1 class="page-header__content__h1 page-header__content__h1--portfolio" id="her
<section class="page-section wrapper">
<p class="portfolio-page-description">
Below is my portfolio of professional projects built as a team at previous employers and
<a href="#side-projects">side projects</a> constructed by myself. (The professional projects are slightly vague and do not contain
links for legal reasons)
<a href="#side-projects" id="side-projects-link">side projects</a> constructed by myself. (The professional projects are slightly
vague and do not contain links for legal reasons)
</p>

<div class="project-category" id="materials-lab">
Expand Down

0 comments on commit 92d7a01

Please sign in to comment.