Profile card component solution - FlexBox and Mobile first
Design comparison
Solution retrospective
Hello everyone, I hope you are well. With all of you, I share my solution to this challenge. The most significant challenge I faced was the issue of the background and how to position it correctly. In the end, it started working. It's not 100%, but we are making progress. I hope you like it, and I welcome feedback.
Community feedback
- @danielmrz-devPosted 10 months ago
Hello @MateusCamargoS-1!
Your solution looks great!
The background pattern with the circles is a bit tricky, but here's how you can do it:
background-color: var(--Dark-cyan); background-image: url("./images/bg-pattern-top.svg"), url("./images/bg-pattern-bottom.svg"); background-repeat: no-repeat, no-repeat; background-position: right 52vw bottom 35vh, left 48vw top 52vh;
I hope it helps!
Other than that, you did an excelent job!
Marked as helpful1 - @MelvinAguilarPosted 10 months ago
Hello there ๐. Good job on completing the challenge !
- Update the background-position property to use viewport units, so it remains responsive, and you avoid using a media query to modify the background. In the following code, I separated background-position into a new line for better understanding:
body { . . . background: url(./images/bg-pattern-top.svg) no-repeat, url(./images/bg-pattern-bottom.svg) no-repeat; /* background-size: 550px; */ background-color: var(--darkCyan); background-position: right 52vw bottom 35vh, left 48vw top 52vh; }
I hope you find it useful! ๐
Happy coding!
Marked as helpful1
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