-
Notifications
You must be signed in to change notification settings - Fork 3
Optimize for landing page mobile #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
florisdobber
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor things but otherwise great PR! Lots of code clean up and reusable stuff. If you have time would love if you could address the changes soon so we can merge this and use it else where.
florisdobber
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry the delay, approved
Why
Monday.com Ticket
What benefit does this bring to the end user? Or, what benefit does this bring to developers working in the codebase?
Makes the logged-in landing page easier to navigate on mobile devices/narrow windows.
useWindowDimensionscan be used to make other components responsive to browser dimensions.This PR
Describe the changes required and any implementation choices you made to give context to reviewers.
Created
useWindowDimensionsto get and use thewindowDimensionsstate when rendering componentswindowDimensionscontains the browser'swidth,height, andwindowTypewindowTypeis determined bywidth:< 650=>'MOBILE'[650, 900)=>'TABLET'[900, 1150)=>'NARROW'> 1150=>'DESKTOP'Created link carousel component using Ant.D Carousel component
Updated PageHeader and HomeContainer components so that top margin decreases for mobile
Screenshots
Provide screenshots of any new components, styling changes, or pages.



Desktop, Mobile
Narrow, Tablet
Verification Steps
What steps did you take to verify your changes work? These should be clear enough for someone to be able to clone the branch and follow the steps themselves.
Visually confirmed the layout updated when resizing the browser, also used Device Mode in Chrome Dev Tools to make sure the layout made sense for mobile.