This is a solution to the Stats preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
I had trouble adding the color overlay to the image, but after a little bit of googling I found the mix-blend-multiply className.
<picture class="block order-2 bg-violet">
<source srcset="{imageHeaderDesktop}" media="(min-width: 640px)" />
<source srcset="{imageHeaderMobile}" media="(max-width: 640px)" />
<img
class="opacity-70 mix-blend-multiply"
src="{imageHeaderDesktop}"
alt="team working in an office"
width="540"
height="466"
/>
</picture>