diff --git a/src/pages/main/Exp.tsx b/src/pages/main/Exp.tsx index 801f704..7e0489f 100644 --- a/src/pages/main/Exp.tsx +++ b/src/pages/main/Exp.tsx @@ -1,4 +1,4 @@ -import React, { useEffect } from "react"; +import React, { useEffect, useState } from "react"; import { css, cx } from "@emotion/css"; import { ExpUnit } from "../../components/Exp/Unit"; import { age, experience } from "./data/experience"; @@ -6,6 +6,7 @@ import { offscreenWidth } from "../../components/constants"; import { Tags } from "../../components/Exp/Tags"; import useSearchParams from "../../util/useSearchParams"; import useLocation from "wouter/use-location"; +import { AnimateEntry } from "../../components/AnimateEntry"; const exp_route = /^\/experience\/?[^\/]*$/; const slug_replace = /^\/experience\/?/; @@ -13,6 +14,11 @@ const slug_replace = /^\/experience\/?/; const Exp: React.FC = () => { const [location, navigate] = useLocation(); const tags = useSearchParams("tag"); + const [entryDelay, setEntryDelay] = useState(true); + + useEffect(() => { + if (tags.size) setEntryDelay(false); + }, [tags]); if (!exp_route.test(location)) { navigate("/experience", { replace: true }); @@ -51,13 +57,13 @@ const Exp: React.FC = () => { :
-A few projects I'm proud of:
-Apart from the above, I've also built some other interesting stuff over @@ -163,7 +165,7 @@ const Exp: React.FC = () => {