Design comparison
Solution retrospective
Hi! I decided to use Flexbox for this challenge to familiarize myself with it. Although I was able to complete the challenge using it, I'm not sure if the way I used it is good practice.
Here is my question:
- Are there situations when using flexbox is better than using grid or vice versa? If so, what are they?
Aside from this, any feedback or comments regarding my project, especially regarding the responsive design aspect and the use of flexbox, would be extremely helpful for me since I'm still trying to familiarize myself with those two. I'd be more than happy to hear any advice!
Community feedback
- @pikapikamartPosted over 3 years ago
Hey, good work on this one. Both desktop and mobile layout seems pretty good.
Regarding your question:
- When thinking about whether to use flexbox or grid depends on the layout of what you want to build. For example, like this challenge, there are 3 boxes which is aligned only in one dimensional, one dimensional where it is one way, like this one, it is only straight, flexbox is ideal because flexbox are occasionally used on this kind of structure. On the other hand, grid, grid is more used when the structure or the pattern is most likely 2 dimensional. 2 dimensional like:
[] [] [] [] [] []
Grid is really useful when you want to make different layouts:
[] [ ] [] [ ] [] []
But sometimes flexbox can also achieve what grid does, it depends on whether where you are comfortable to use.
Aside from that, some suggestions:
- Have a
main
tag that wraps all the element, so that screen reader will navigate properly when searching for landmark, also it will announce your h1 properly instead of searching forheadings
- Fonts could be a bit bigger for more clarity, especially in desktop view.
- I wouldn't use
ul
on the stars. If you used it that way, when a screen reader user navigate on a list, it will just confuse the user because the items on your list is not really data, rather it is just icons. I would just usediv
on them, better yet, put all the stars as abackground
on the wrapper. - the names of the person including the description of the person could be wrap inside a
h2
orh3
. article
orblockquote
could wrap as well the whole testimonials, onearticle
/blockquote
per testimonial.
Other than that, great job.
Marked as helpful1@0-BSCodePosted over 3 years ago@pikamart Thank you for this! It's a lot to take in but I'll definitely use these for my next challenges.
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