Order Summary Component

Solution retrospective
I am a beginner and this is my first challenge on this site. Any feedback, suggestions is appreciated.
Thanks.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @vanzasetia
Hi, Arnav! 👋
Congratulations on completing your first Frontend Mentor challenge! 🎉
Here are some suggestions for improvements.
- There should not be text in
span
anddiv
alone whenever possible. Instead, wrap the text with a meaningful element like a paragraph element. - Always specify the
type
of thebutton
. It will prevent the button from behaving unexpectedly. - To place the card in the center of the page, I recommend using flexbox or grid. These modern techniques are more robust than absolute positioning and require less code to implement.
- I recommend setting a
max-width
to the card (.box
). This way, the card is allowed to shrink if ever needed while still preventing it from filling the entire page. As a result, you can make the card responsive without media queries.
I have two recommended videos. The first one is about how hard HTML is (HTML is not easy). The second one is talking about HTML and modern CSS.
- Manuel Matuzović - Lost in Translation - YouTube
- Andy Bell – Be the browser’s mentor, not its micromanager - YouTube
I hope this helps! Happy coding!
Marked as helpful - There should not be text in
- @correlucas
👾Hello @arnav-luhadiya, Congratulations on completing this challenge!
Great code and great solution! I’ve few suggestions for you that you can consider adding to your code:
The background wave image is missing and here’s the step-by-step to add it.First of all add the image as a background inside the
body
this is the code for that:background-image: url(../images/pattern-background-desktop.svg);
Then you add
background-repeat: no-repeat
to avoid the background repeating andbackground-size: contain
to make it fit full width and center with the card this is the best choice, but an alternative to resize it is to usebackground-size: 125%
, Here’s the code with the modification and the image applied as background:body { background-size: contain; background-image: url(./images/pattern-background-desktop.svg); background-repeat: no-repeat; }
✌️ I hope this helps you and happy coding!
Marked as helpful - @mauger1998
Hey great job, if this is your first challenge then your doing so well by the looks of things! I would like to give you a bit of feedback after looking at your code. First thing I would say is when importing fonts from google, dont use @import in your css instead use the <link and put it in your html, importing things in css can slow things down. Apart from that youve done an amazing job well done. If you want go check out other peoples code and how they did it.
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