@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
@36atharva
Posted
@correlucas thankyou so much sir!