Skip to content

Commit

Permalink
fix: auto horizontal to fame
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhgray committed Sep 9, 2023
1 parent 877173d commit 77d7589
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default function Home() {
</Section>
<Element name="fame" />
<Section color='blue' page='fame' setIntersecting={setIntersecting}>
<motion.div className='top-0 left-0 w-full pt-[15vh] mb-20 text-dark' style={{ scale: fameScale }} initial={{ scale: 0 }} >
{/* <motion.div className='top-0 left-0 w-full pt-[15vh] mb-20 text-dark' style={{ scale: fameScale }} initial={{ scale: 0 }} >
<div className='w-[100vw] lg:w-[30vw] lg:min-w-[600px] mx-auto'>
<h1 className='font-sans text-[3rem] font-extrabold text-center tracking-wider' >WALL OF FAME</h1>
<p className='font-mono text-xl tracking-[1.8rem] ml-10 text-center'>ACHIEVEMENTS</p>
Expand All @@ -159,7 +159,12 @@ export default function Home() {
<div className='flex justify-start w-[90vw] mx-auto overflow-x-scroll overflow-y-hidden' ref={fameRef}>
{fame.map((f, i) => <FameCard key={"fame" + i} i={(numFameInView > i) ? i : 0} title={f.title} />)}
</div>
</div>
</div> */}
<HorizontalTranslate mainRef={mainRef} title={"Wall of Fame"} style={{ scale: fameScale }}>
<CardsContainer style={{ paddingLeft: screenWidth > 650 ? "100px" : "5vw", paddingRight: screenWidth > 650 ? "100px" : "5vw" }} className='text-dark' ref={fameRef}>
{fame.map((f, i) => <FameCard key={"fame" + i} i={(numFameInView > i) ? i : 0} title={f.title} />)}
</CardsContainer>
</HorizontalTranslate>
</Section>
<Level level={"04"} />
<Element name="events" />
Expand Down

0 comments on commit 77d7589

Please sign in to comment.