Responsive Preview Card Component Using Flexbox

Solution retrospective
Hey guys, this is my 5th Frontend Mentor project. It's a responsive preview card component with 3 columns. Please take a look at my solution.
you feedback is valuable to me. thank you.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @denielden
Hi Shamil, great work on this challenge! 😉
Here are a few tips for improve your code:
- Tip of graphic design: with
font-family:" Big Shoulders Display ", cursive
the browser will use the Comics Sans font when it doesn't find the first font indicated (you can seen during loading)... for the designer it's a really awful font! I would rather replace it with afont-family:" Big Shoulders Display ", sans-serif
much more similar to the primary font. - remove all
margin
frommain .card
class because with flex they are superfluous - add
transition
on the element with hover effect - instead of using
px
use relative units of measurement likerem
-> read here
Overall you did well 😁 Hope this help!
Marked as helpful - Tip of graphic design: with
- @grace-snow
Hello
You have one big problem here - nesting css selectors. This is a common mistake when people first start using scss and results in hideously specific css selectors that will cause huge problems as you move to larger projects
The css compiled from scss should be exactly as if you wrote it directly. Single class selectors as much as possible
I recommend only nesting things thay belong to a class like
- media queries
- pseudo elements like :before
- pseudo states like :hover
Don't nest anything else
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