Vanilla CSS | My solution

Solution retrospective
Hey Guys!
I decided to do another smaller challenge to try out some new CSS functions that I've not used before, as always, feedback is greatly appreciated 😊
My next challenge is a bigger one, so it might be a little while still (I do these outside of my studies and don't get a lot of time) - It should be a good challenge!
Thanks in advance!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @correlucas
👾 Hello Chris, congratulations for your solution!
I saw that you've done a good work in this challenge, you paid attention to the details, the card component is responsive, the element design match. Well done!
Your solution is almost perfect, I've only two tips for you:
1.👾This challenge has two background images, mobile and desktop version background images.You can add a media query to switch between
background-images
when the screen gets the mobile size. I wrote the code for the media query in your solution, the image will change after the window reach width 500px. See the code below:@media (max-width: 500px) {.home-wrapper { background-image: url(./images/pattern-background-mobile.svg);}}
2.👾Note that your section called
.card-summary-plan
is having a strange behavior when the screens get stretched and get smaller, the content start to pop up out the container, fix this usingflex-wrap: wrap;
to get the element in different rows when the card component contract or use a media query changing the flex-direction to have the element in rows to save space:.card-summary-plan { flex-wrap: wrap; }
@media (max-width: 500px) {.card-summary-plan { flex-direction: column;;}}
Hope it helps you and happy coding!
Marked as helpful
Join 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