Profile card component - Flexbox, mobile-first, responsive
Design comparison
Solution retrospective
I'm happy that i didn't used any media queries to get responsive layout.
What challenges did you encounter, and how did you overcome them?Background circles was the most tricky part of the design. They are scaled down with mobile view and placed in different position relative to viewport than the desktop view. I've used combination of min
and calc
functions to calculate their position for different viewport widths and decided to use only one circle size for both mobile and desktop view.
Since the background circles are simple gradients and serve only decorative purpose i've decided to not load svg files but use only CSS to generate gradients. I think the result is very similar to original design and users don't have to download additional files.
I would like to know what would be considered best practice in this case ?
Community feedback
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