Skip to content

Commit

Permalink
Merge pull request #5 from SayarB/sayar
Browse files Browse the repository at this point in the history
fix: fixed some bugs
  • Loading branch information
SayarB authored Aug 27, 2023
2 parents 19ed0a4 + f7f2738 commit 3365ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function Home() {
const numFameInView = useNumInView({ ref: fameRef, arr: fame })
const numProjectInView = useNumInView({ ref: projectRef, arr: projects })
const numTeamInView = useNumInView({ ref: teamRef, arr: team_members })
const { isScrollingDown } = useScrollDirection(mainRef?.current)
// const { isScrollingDown } = useScrollDirection(mainRef?.current || undefined)
const screenWidth = useScreenWidth()
const { scrollYProgress } = useScroll({ container: mainRef })
const [startAnimationComplete, setStartAnimationComplete] = useState(false);
Expand Down Expand Up @@ -120,7 +120,7 @@ export default function Home() {
</motion.div>
<div className='h-[50vh] flex items-center text-dark'>
<div className='flex justify-start w-[90vw] mx-auto overflow-x-scroll overflow-y-hidden' ref={fameRef}>
{fame.map((f, i) => <FameCard i={(numFameInView > i) ? i : 0} title={f.title} />)}
{fame.map((f, i) => <FameCard key={"fame" + i} i={(numFameInView > i) ? i : 0} title={f.title} />)}
</div>
</div>
</Section>
Expand Down

0 comments on commit 3365ca7

Please sign in to comment.