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
- Solution URL: Frontend Mentor Solution
- Live Site URL: Github Pages
I went with using SCSS instead to start practicing more modern CSS methods, and it was great. I loved being able to think about my CSS in a more hierarchical like HTML. Why didn't they have this initially? Better late than never I suppose.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- SCSS/SASS
I learned about SCSS/SASS and some of its syntax! It was a great learning experience for me to learn the more modern way of setting CSS properties. I also learned about absolute positioning for child elements onto parent elements; that's actually what I had trouble for the longest time since I couldn't get the hover to work for only the image.
I couldn't get the eye view image to keep it's 100% opacity when the hover action is initiated. That's what I'll be keeping an eye out for.
- https://css-tricks.com/how-to-stack-elements-in-css/ - This article was great in giving me a step-by-step visual on super-posing a child element on top of a parent element which ultimately helped me finish this design!
- Frontend Mentor - @ilyemm