xmtp / xmtp-dot-org

xmtp.org, powered by Docusaurus
https://xmtp.org
MIT License
11 stars 25 forks source link

Implement dark mode and scroll to top toggles on scroll #83

Closed darickdang closed 2 years ago

darickdang commented 2 years ago

Describe the bug When scrolled, the scroll to top and dark mode buttons should appear anchored to the bottom right of the page. Currently, the dark mode toggle appears at the top navigation, which should be removed.

To Reproduce

Expected behavior When scrolled, the scroll to top and dark mode buttons should appear anchored to the bottom right of the page.

Screenshots

CleanShot 2022-09-08 at 14 58 39@2x

Additional context Figma design link: https://www.figma.com/file/IUge4HM683IHEVMCwMbqLi/Dev-Portal-Site?node-id=409%3A17252

Desktop (please complete the following information if you think it is relevant to the bug):

darickdang commented 2 years ago

Can we get the "scroll to top" button to appear when scrolled past 800 pixels?

jhaaaa commented 2 years ago

Addressed in https://github.com/xmtp/xmtp-dot-org/pull/141