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 business analytics card

Atharva Hingeβ€’ 80

@36atharva

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Do you use flexbox or grid more, personally I find flex more customizable.

Community feedback

Lucas πŸ‘Ύβ€’ 104,420

@correlucas

Posted

πŸ‘ΎHello Atharva Hinge, congratulations for your new solution!

I decide between flex or grid in base of the complexity, for example, if is a complex layout I use grid is is a simple component I use flex.

In this case I choose grid because was easier to create the component with two colum, all I needed was max-width: 1000px and display: grid and grid-template-column: 1fr 1fr to have a component with two column with 50% of the parent.To add the exact same purple overlay effect for the image, matching the design files you can use, filter or mix-blend-mode. See the code below

img {
mix-blend-mode: multiply;
opacity: 70%;}

πŸ‘‹ I hope this helps you and happy coding!

Marked as helpful

1

Atharva Hingeβ€’ 80

@36atharva

Posted

@correlucas thankyou so much sir!

1
Davidβ€’ 8,000

@DavidMorgade

Posted

Hey Atharva, congrats on completing the solution of this challenge

Regarding your question, I personally use more flex but because is easy to pull out the trick for most of the cases that positioning is needed, and use grid for more complex-multiply columns or rows layouts, for example, for an e-commerce product list I would probably use grid, but for a 1 row navbar I will use flexbox.

Also regarding your project, you should try using this as your pseudoelement color on your image and see if it looks better: background-color: #AB5CDB; mix-blend-mode: multiply;, I think this one is closes to the design one!

Hope my feedback helps you!

1

Atharva Hingeβ€’ 80

@36atharva

Posted

@DavidMorgade flex is bit handier than grid when it comes to positioning :)

1

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