Submitted about 2 years ago
Rest Countries API Witch React and Typescript
@gustavosorati
Design comparison
SolutionDesign
Solution retrospective
Give a feedback!
Thanks for the feedback, I will make the responsive version in the future.
Community feedback
- @mako542bPosted about 2 years ago
In the container with cards, instead of hard coding the number of columns you could use auto-fit, e.g. 'grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))'. This way it would automatically fit number of columns with the min-width of 300px, and they should stretch evenly to fill the whole space
Marked as helpful0
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