Responsive Order Summary Component Code (HTML + CSS)
Design comparison
Solution retrospective
I am proud that I was able to build the highly closest design in comparison to the required design. From next time, I would try to complete the project in a significant lesser amount of time without compromising on the quality of the project.
What challenges did you encounter, and how did you overcome them?Essentially, I encountered following challenges:-
1.Responsive paragraph.
2.Designing the plan portion.
3.Box-Shadow for the payment button.
4.Designing the background of the card.
I tackled these problems calmly by researching out various possible solutions, choosing the better solution, applying the solution, modifying it and then finalizing it. I used following approaches for respective problems:-
1.Padding helped out in the problem of making the paragraph responsive as per the given design across different devices.
2.Flexbox and `` element were highly useful, in designing the plan portion.
3.Setting up the box-shadow
CSS property with proper values, helped in giving the payment button a bottom box-shadow.
4.Pseudo element ::before
and position: fixed;
were significantly helpful in designing the background.
Would love to know following:-
1.What better approach could be used for designing the background?
2.Any suggestions in general or specifically regarding code optimizations, better approaches and production worthy practices.
Checkout my solution ! Feedbacks are welcome ! Stay Happy & Well ! Happy Coding ! Thanks π
Community feedback
- @DevonHughesCodesPosted 8 months ago
Awesome solution @Harsh-Kumar-Dwivedi
Looks great. The only thing I noticed from your preview is that the overall container is missing a box shadow like in the design example.
Here's an example from my own stylesheet for referrence:
.container { background-color: white; margin: 20px; padding-bottom: 20px; border-radius: 20px; box-shadow: 0px 10px 40px rgba(34, 34, 34, 0.2); }
Other than that, great job and keep up the good work!
Marked as helpful1@Harsh-Kumar-DwivediPosted 8 months ago@DevonHughesCodes
Thanks for informing. It seems I missed it out. Corrected !
Happy Coding !
1 - @therealmaduanusiPosted 8 months ago
understanding the fundamental logic of flexbox, grid and positioning can go a long way. Also good work π
Marked as helpful0 - @Harsh-Kumar-DwivediPosted 7 months ago
In Solution retrospective,
`` refers to
<div>
element0
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