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 Using CSS Flex ๐Ÿ’ช

Fahim Hossainโ€ข 290

@Mr-NotSoCreative

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


Hello Everyone ๐Ÿ‘‹ Here's my solution for Order Summary Component Challenge. I've used CSS display flex property to solve this challenge. I'm concerned about the box-shadow property on card and btn 1(Proceed to Payment)

.card {
 box-shadow: 0 25px 20px 1px var(--card-box-shadow-clr);
}

.btn1 {
   box-shadow: 0 15px 20px 1px var(--btn-box-shadow-clr);
}

Did I do this right?

Feedback welcome.โ˜บ๏ธ

Community feedback

Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

๐Ÿ‘พHello Fahim Hossain, congratulations for your new solution!

๐ŸŽจ Hereโ€™s some tips to improve your component design:

To make your solution even better and more responsive, you can create a media query to break the elements in the pricing section after width: 350px and make every content in a different row, saving space for low resolution devices.

@media (max-width: 350px) {
.plan-div {
    margin: 15px 0;
    background-color: var(--Very-pale-blue);
    display: flex;
    flex-direction: column;
}
}

The secret to create a perfect and smooth shadow is to have low values for opacity and increase blur try this value instead: box-shadow: 12px 7px 20px 6px rgb(57 75 84 / 8%);

If youโ€™re not familiar to box-shadow you can use this site to create the shadow design and then just drop the code into the CSS: https://html-css-js.com/css/generator/box-shadow/

โœŒ๏ธ I hope this helps you and happy coding!

Marked as helpful

1

Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

@Mr-NotSoCreative worked for you?

0
Fahim Hossainโ€ข 290

@Mr-NotSoCreative

Posted

@correlucas I improved the component design according to your CSS Style rule Thank you!! โ˜บ๏ธ

0
Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

@Mr-NotSoCreative I can see that's fully responsive now! Well done, keep it up and keep posting amazing solutions Fahim.โœŒ

0
Fahim Hossainโ€ข 290

@Mr-NotSoCreative

Posted

@correlucas โœŒ๏ธ

0
Adrianoโ€ข 34,090

@AdrianoEscarabote

Posted

Hi Fahim Hossain, how are you?

I really liked the result of your project, but I have some tips that I think you will like:

I noticed that the background image is breaking at higher resolutions, to fix this I did the following:

body { background-repeat: repeat-x; }

This way the image will repeat only on the x axis.

The rest is great! Hope it helps... ๐Ÿ‘

Marked as helpful

1

Fahim Hossainโ€ข 290

@Mr-NotSoCreative

Posted

@AdrianoEscarabote Thank you very much for reviewing my code. I fixed the background according to your suggestion. ๐Ÿ‘

0
Adrianoโ€ข 34,090

@AdrianoEscarabote

Posted

@Mr-NotSoCreative no problem, keep coding!

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