Design comparison
Solution retrospective
This was a nice challenge, the areas I struggled with were DOM manipulation but I am slowly getting better and restructuring my page for the mobile version, if you have any feedback on how I can make my page more responsive, I know I could probably do the HTML differently so that all I need to make it responsive is change the flex-direction from row to column, if this is the solution I will start working on it, but I have been on this particular challenge for a while so I just wanted to submit it for review and feedback.
Thanks
Community feedback
- @pradeeps4iniPosted over 2 years ago
Hello, Keagan. How are you?
Congrats on completing the project. I hope you had fun learning new stuff.
I have some suggestions, i'd like to give.
-
Use semantic markup. You can wrap the entire card in <main> element. Semantic markup helps to make code more readable and accessible.
-
Changing the flex direction won't make the card responsive. Because the header in the mobile layout and desktop layout is on different positions. If you will go and analyze the design files. You'll see that there are three sections in the design. Header, image, and the other content. You should design your layout considering these three sections and how you can change their positions to make design more responsive.
-
You are using fixed widths for your containers, which is hindering the responsiveness of the containers. Use max-widths instead.
-
Give a descriptive alt text to the brand woman image. For example: "brand model" or "brand ambassador". Alt text should give info about the image to users who are using screen reader.
-
When resizing the font-size of the text stays constant, which makes the image go out of focus. You can use clamp() function to change the font size respective to the viewport width dynamically.
Marked as helpful1@PhisherFTWPosted over 2 years ago@pradeeps4ini This was a fantastic response thank you so much! alot of great information here for me to digest and learn from, I will start implementing your suggestions asap!
Thanks
0 -
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord