Skip to content

Fix mobile responsiveness based on tasks listed.#39

Merged
XanderRubio merged 1 commit intoBeforeIDieCode:mainfrom
lefty93:fix-mobile-responsive
Aug 29, 2023
Merged

Fix mobile responsiveness based on tasks listed.#39
XanderRubio merged 1 commit intoBeforeIDieCode:mainfrom
lefty93:fix-mobile-responsive

Conversation

@lefty93
Copy link
Copy Markdown
Contributor

@lefty93 lefty93 commented Aug 25, 2023

  • The header of the Logo.gif and Github avatar arranged with flex-direction: column when the screen size is smaller than 640px.
  • Adjust the text "An Open Source Project".
  • The dummy images will not displayed in the background behind "An Open Source Project" when the screen size is smaller than 640px.
  • Reformat contributors bid_image and avatar image
  • The display text of the answer for "Before I Die" is arranged when the screen size is smaller than 640px.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
before-i-die-achievements ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 25, 2023 3:21am

@XanderRubio
Copy link
Copy Markdown
Member

Hi @lefty93,

Thank you for your time in assisting in this issue #14. I'm traveling and will review upon settling in at my destination. I appreciate you looking into this issue, Chu. Have a great day! And looking forward to seeing your work😀

Xander

@XanderRubio
Copy link
Copy Markdown
Member

Hi @lefty93,

I hope you're well, I'm all settled back in after traveling and confirming that I will be reviewing today for merging.

@XanderRubio
Copy link
Copy Markdown
Member

XanderRubio commented Aug 29, 2023

Great job, Chu! Your updates have greatly improved the responsiveness of our project. Adjusting the screen window and viewing on mobile is now much smoother and cleaner. These small changes make the project more user-friendly and appealing.

I noticed that you added a state variable named "isMobile" and used the useEffect hook to add an event listener to the window object, which listens for the resize event. When triggered, the "handleSize" function updates the value of "isMobile" based on the width of the window. If the width is less than 768 pixels, "isMobile" is set to true, indicating that the application is being viewed on a mobile device. The useEffect hook also removes the event listener when the component unmounts.

You have done an excellent job using the value of "isMobile" to conditionally render the BrickLayout component. If "isMobile" is true, the BrickLayout component is rendered; otherwise, it is not.

Overall, your continual improvements to our UI interface are greatly appreciated. Keep up the great work, Chu! 👏🏻👏🏻Have a wonderful day!

And please feel free to add open issues of your own that you see fit for improving the Before I Die Code Project.

Merging now to close out issue #14 for mobile adaption and screen size change.

@XanderRubio XanderRubio merged commit 685c323 into BeforeIDieCode:main Aug 29, 2023
@lefty93 lefty93 deleted the fix-mobile-responsive branch September 2, 2023 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🟢 Create responsive screen adaptation to show up well during web screen change and mobile change

2 participants