Skip to content

Commit

Permalink
added about page code
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshvdw committed Dec 24, 2024
1 parent 1827125 commit aef55a7
Show file tree
Hide file tree
Showing 4 changed files with 715 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import initCms from "./js/global/initCms";
import { loopLogoLoading, readyPreloader } from "./js/global/preloader";
import loadAnim from "./js/home/loadAnim";
import audioImplementation from "./js/global/audio";
import aboutPage from "./js/about/aboutPage";
import { showreelHome, showreelNav } from "./js/global/showreel";
import { stopCmdClick } from "./js/global/bugFixes";
import {
Expand All @@ -20,6 +21,8 @@ const contentHubOuter = currentPage === "/content-hub/";
const contentHubInner =
currentPage.startsWith("/content-hub/") && !contentHubOuter;

const aboutPage = currentPage == "/about-new"; // change to just about later

const onReady = () => {
readyPreloader(); // hides preloader and add event listener for frog lottie
const audio = audioImplementation(homePage); // adds music, ui-sounds and mute-lottie functionality
Expand All @@ -37,6 +40,8 @@ const onReady = () => {
document.querySelectorAll(".article-rich-text a").forEach((e) => {
e.target = "_blank";
});

if (aboutPage) aboutPage(); // all custom code for about page
stopCmdClick(); // prevent command click from triggering page transition
};

Expand Down
331 changes: 330 additions & 1 deletion dist/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/app.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit aef55a7

Please sign in to comment.