Skip to content

Commit

Permalink
simplify about site
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebonsignori committed Jun 24, 2023
1 parent 182abc2 commit 2409a3e
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions about/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function Home({ content }) {
content={content}
postLoadingFinished={postLoadingFinished}
/>
<ScrollDownArrowWrapper
{/* <ScrollDownArrowWrapper
postLoadingFinished={postLoadingFinished}
onClick={() =>
aboutSectionRef.current.scrollIntoView({
Expand All @@ -104,7 +104,7 @@ export default function Home({ content }) {
}
>
<ScrollDownArrow />
</ScrollDownArrowWrapper>
</ScrollDownArrowWrapper> */}
</>
);
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand All @@ -117,27 +117,26 @@ export default function Home({ content }) {
postLoadingFinished,
]);

const SectionsRender = useMemo(() => {
if (!isSunMode && postLoadingFinished) {
return (
<>
<AboutSection innerRef={aboutSectionRef} content={content} />
<UsageSection content={content} />
<ContactSection content={content} />
<Copyright invertColors />
</>
);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [postLoadingFinished, isSunMode]);
// const SectionsRender = useMemo(() => {
// if (!isSunMode && postLoadingFinished) {
// return (
// <>
// <AboutSection innerRef={aboutSectionRef} content={content} />
// <UsageSection content={content} />
// <ContactSection content={content} />
// <Copyright invertColors />
// </>
// );
// }
// // eslint-disable-next-line react-hooks/exhaustive-deps
// }, [postLoadingFinished, isSunMode]);

return (
<PageWrapper doneLoading={introLoadFinished} isSunMode={isSunMode}>
<PageHeader postLoadingFinished={postLoadingFinished}>
{PageRender}
<BackgroundImage postLoadingFinished={postLoadingFinished} />
</PageHeader>
{SectionsRender}
</PageWrapper>
);
}
Expand Down

0 comments on commit 2409a3e

Please sign in to comment.