Submitted over 3 years agoA solution to the Order summary component challenge
Order summary component solution
@d3vcloud

Solution retrospective
This is my second challenge so if there is anything that can be improved please let me know. Thanks a lot.
Code
Please log in to post a comment
Log in with GitHubCommunity feedback
- @darryncodes
Hi Xavi,
I like your design, good job completing this one!
- i'd add
background-size: 100% auto;
background-repeat: no-repeat;
to your background styles to closer match the design - you could add
transition: ease .3s;
to your interactive elements to make the hover effect smoother
All the best!
Marked as helpful - i'd add
- @techanthere
Good job @d3vcloud! Here are the few suggestions for you:
- I have tested your solution, the card is not centered vertically in small heights and that's probably because you need to add some vertical padding in body. It's better to add
min-height:100vh;
in body - No need to apply styling on both html, body { } instead use body selector only
- The card has no padding in smaller screens, try considering mobile-first design and resize card such that it works on smaller screen, don't need media queries, you can just add max-width instead of width here and some padding on the "container" div .
Good luck!
Marked as helpful - I have tested your solution, the card is not centered vertically in small heights and that's probably because you need to add some vertical padding in body. It's better to add
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