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

Order summary component

Yefry Sanchezโ€ข 330

@y25sanchez

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


Any feedback is appreciated.

Community feedback

Lucas ๐Ÿ‘พโ€ข 104,580

@correlucas

Posted

๐Ÿ‘พHello Yefry, congratulations for your solution!

You've a nice component, I liked that you applied this scale on hover effect, you gave an extra touch.

I have some tips for you:

1.The background is a little bit out, to fix this you need to use the background properties. See the fixes below:

    background-image: url(/images/pattern-background-desktop.svg);
    background-repeat: no-repeat;
    background-color: var(--Pale-blue);
    background-position: top;
    background-size: 100%;
}

2.Add `flex-wrap` inside the price section to allow the content break and go to the new row. When the window scale the content gets too much close to each other.

Hope it helps, happy coding!

Marked as helpful

0
Fatlind Shehuโ€ข 2,230

@fatlindshehu

Posted

Hi, Nice work with the challenge, although I would recommend centering the component using flexbox and not margins, here's what you can do:

  • display: flex to set the div/component as a flex container.
  • justify-content: center to center the div/component horizontally.
  • align-items: center to center the div/component vertically.
  • Make sure the div/component has a height.
  • If youโ€™re unfamiliar with flexbox, I would suggest checking THIS

Also, I would recommend avoiding the use of px together with rem, instead, go only with rem

Keep it coding...

Marked as helpful

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