Design comparison
Solution retrospective
-
I found getting the color of the photo correct rather tough, I did not end up getting the exact color.
-
Getting the font weights and sizes was tougher that I realized. Getting it exact is tough as I think my solution fonts are a little larger still
Community feedback
- @correlucasPosted about 2 years ago
πΎHello @ColonelSandurz, congratulations for your new solution!
To have the same exact color without needing to add many lines of code you can use
mix-blend-mode
andopacity
to manage the colors. To add the exact same purple overlay effect for the image, matching the design files you can use,filter
ormix-blend-mode
. See the code belowimg { mix-blend-mode: multiply; opacity: 75%;}
To improve the image responsiveness you can use
object-fit: cover
to make it have a better behavior inside the column and Instead of importing the card image with CSS you can manage it inserting the tag<picture>
to wrap both desktop and mobile images together in the same tag, and render each image depending of the device (phone / computer) by the settings for the width you'll insert in the htmlπ I hope this helps you and happy coding!
Marked as helpful0@ColonelSandurzPosted about 2 years ago@correlucas Thank you, this was very helpful. Some of these tags I have not seen yet even throughout the courses I have taken, appreciate all the help.
1 - @ColonelSandurzPosted about 2 years ago
The design does not have the black margins on the side like the original .jpg file had, so the solution looks smaller. Checking out the live site gives a more accurate look.
https://colonelsandurz.github.io/Stat-Preview-Card-Component/
I may edit out those black margins at a later time
0
Please log in to post a comment
Log in with GitHubJoin 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