Stats Preview Card Component | Flexbox and Responsive Images
Design comparison
Solution retrospective
I coded this design from scratch three times. With each build, my HTML Markup improved as well as the responsiveness of the design. I used the jpg files for the first two builds, and then I signed up for the Pro membership before starting and completing my third build.
I felt that the design looked more balanced for the vertical tablets with the stats laid out in a row rather than a column like the smaller devices. [This is the vertical tablet example] (https://raw.githubusercontent.com/kimberlyannthomas/frontend-mentor-coding-challenges/main/stats-preview-card-component/images/vertical-tablet-stats-preview-card-component.jpg), in case you're not viewing on a tablet. Do you agree or disagree that it looks better laid out this way?
Question: How does your mobile version look at 327px wide? I used the Figma files, and the left and right margin of the main title and main text is around 30 pixels. Yet, the only way for me to get my main title and main message to break precisely the way the design file show is by reducing the left and right margins to .75 pixels. What are your thoughts about this?
If you're viewing the design on your desktop, do me a favor and check out the Developer Tool's responsive feature. From about 769px wide to 873px wide, the only thing I wish is that the image to the right would be wider and the design as a whole shorter. One way of getting closer to this would be to reduce the padding above the stats group from 40px to 10px. But, I'm not fond of the idea of tweaking padding all over the place in different query breakpoints to get the look that I want. How do you overcome similar coding challenges?
Community feedback
- @palgrammingPosted over 3 years ago
I typed a long response to you then the internet died and I lost it all.
But you found the key and that is coding these multiple times
Your results looks fantastic ⭐⭐⭐⭐⭐
You code looks great at Mobile size and the other sizes you wanted checked look great also. The only thing was at the larger size maybe a little more top margin on the layout might help and then right as it started transitioning down maybe a little margin on the sides but honestly your solutions is great and you should be very happy with it
Great Job
0@kimberlyannthomasPosted over 3 years ago@palgramming I appreciate you taking the time to reply with a long response even though it was lost. Your feedback is very helpful. Thank you!
0@palgrammingPosted over 3 years ago@kimberlyannthomas No problem I look forward to seeing your solutions to many more challenges in the future
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