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

@MehrshadHeisenberg3

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


Here is the next one!!!

I would love your comments on it and I would to have you on My TWITTER.

Also I would love to have you on FrontEnd Mentor!

Community feedback

Abdul Khalid 69,140

@0xabdulkhalid

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have other recommendations regarding your code that I believe will be of great interest to you.

BACKGROUND iMAGE 📸:

  • Looks like the background svg and color has been set with ::before & ::after of body element, let me share my snippet which helps you can to easily apply the background color with the svg without the usage of pseudo elements
  • Add the following style rule to your css, and then experience the changes
body {
    background: url(./images/pattern-background-desktop.svg), #E1E9Ff;
    background-repeat: no-repeat, no-repeat;
}
  • Now you can remove your old code
body::after {
  content: url(images/pattern-background-desktop2.svg);
  width: 5rem;
  height: 140rem;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
  transform: rotate(180deg) translate(0%, 12%);
}
body::before {
  content: url(images/pattern-background-desktop.svg);
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  transform: translate(0%, -12%);
}
  • Tip, Don't forget to generate a new screenshot after editing the css file

COMPONENT MEASUREMENTS 📐:

  • Use min-height: 100vh for main instead of height: 100vh. Setting the height: 100vh may result in the component being cut off on smaller screens.
  • For example; if we set height: 100vh then the main will have 100vh height no matter what. Even if the content spans more than 100vh.
  • But if we set min-height: 100vh then the main will start at 100vh, if the content pushes the main beyond 100vh it will continue growing. However if you have content that takes less than 100vh it will still take 100vh in space.

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

Marked as helpful

0

@MehrshadHeisenberg3

Posted

@0xAbdulKhalid

Hi, thanks I will check your solution, can we each other on twitter because I really need someone like you to help me in the way, thanks!

0

@MehrshadHeisenberg3

Posted

@0xAbdulKhalid

And also I have another question, can you explain your what you have written? Because I was thinking what did you do that made them stick together?

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