Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive Order Summary Component Code (HTML + CSS)

@Harsh-Kumar-Dwivedi

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

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.

What specific areas of your project would you like help with?

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

Devon Hughesβ€’ 210

@DevonHughesCodes

Posted

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 helpful

1

@Harsh-Kumar-Dwivedi

Posted

@DevonHughesCodes

Thanks for informing. It seems I missed it out. Corrected !

Happy Coding !

1
Victorβ€’ 510

@therealmaduanusi

Posted

understanding the fundamental logic of flexbox, grid and positioning can go a long way. Also good work 😁

Marked as helpful

0
Valchaliβ€’ 100

@Valchali

Posted

You did a great job here, kudos from here!!!.

1

@Harsh-Kumar-Dwivedi

Posted

In Solution retrospective,

`` refers to <div> element

0

Please log in to post a comment

Log in with GitHub
Discord logo

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