NFT Preview Card Component

Solution retrospective
Hello! This is my solution for this challenge. 🚀
Help:
This is my second project built using Sass and BEM, any improvements on technique are welcome! I had a little trouble with vertically centering the icons with text below the description. This was a very fun project, I learned a lot!
Built Using:
Sass, BEM, Responsive Design
Any ideas on how to improve in any way are greatly appreciated! Much thanks. 😊
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Tux3er-Isma
Hi Garcielexo!!!
Congrats for completing this challenge, it looks awesome 👍🏻🎉
I have reviewed your code and I will give you some tips 💡:
-
In hover states try to use
cursor: pointer;
to get a better user experience. -
I think you forget to put the hover states in the img. You can do this adding a new
<div class="img-hover-state"></div>
. Then you put.img-hover-state{ background-color: var(--the-background-color); opacity: 0;
and finally you put an animation with ```@keyframes puttin the opacity in 1. -
You can also use
transition
to get cooler hover states. -
If your are using reset states, I recomend you the normalize.css 📖.
-
An advatage of SCSS is that you can put child into a parent and don't do it separated the parent element. I recomend you this video 📹.
-
The best way to center elements is with css Flexbox.
min-height: 100vh; display: flex; justify-content: center; align-items: center;
That's all, I hope this comment will help you in the future!!!
You do it very well so continue coding 😉⌨️
Marked as helpful -
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