Solution for a challenge from frontendmentor.io
A perfect project for newbies who are starting to build confidence with layouts! The main challenge is to build out this preview card component and get it looking as close to the design as possible. You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.
Your users should be able to:
- View the optimal layout depending on their device's screen size
I do not have access to the Figma sketch so the design is not pixel perfect.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Desktop-first workflow
The biggest challenge in this project was matching the image colors to the design. I tried to use blend mode however it never matched the original design. I tried to use overlay div with position absolute but it didn't help. Finally managed to find the way by using the blend mode right on the image itself instead of overlay div.
- Figma - Paste your design image to check the size of containers, width, etc.
- Perfect Pixel - Awesome Chrome extension that helps you to match the pixels of the provided design.
A big thank you to anyone providing feedback on my solution. It definitely helps to find new ways to code and find easier solutions!