This is a solution to the NFT 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:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
- Desktop View: Desktop Screenshot
- Mobile View: Mobile Screenshot
- Solution URL: https://github.com/mark-escosura/nft-preview-card-component-main
- Live Site URL: nft-preview-card-tau-rose.vercel.app
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- Position property - Before this project, I had little knowledge when it comes to using the position property. Although, I plan on increasing my understanding of this css layout. I feel like this is a very powerful styling property and when mastered, will help me become a better front-end developer.
- Website - Mark Escosura
- Frontend Mentor - @mark-escosura
- Github - @mark-escosura
- Danilo Blas - @Sdann26 - I was having trouble making the view icon fully visible on hover and Danilo proposed a solution that fixes my problem and suggested that I leave the opacity at 1 on
hidden:hover
class but changing the background using thealpha
option which gives the background transparency.
hsla(178.1, 100%, 50%, 0.5);
The value 'a' (alpha) in hsla is to give it opacity.