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.
- Solution URL: https://www.frontendmentor.io/solutions/using-react-with-pure-css-X7xehhdrni
- Live Site URL: https://akaigyouhou.github.io/frontend-mentor-nft-preview-card-component-main/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- React - JS library
There are two problems I've met. 1, Is it right to first determine the "width" and "height" of the "card", then add the "padding" or "margin" to flow the inner content in the right position? 2, To make the eye icon in the middle of the Equilibrium picture and also the cyan color layer when hovering the picture. I use two layer. Because the first one should not be opacity while the second one should be half opacity. Maybe there are better solution.
- Frontend Mentor - @akaigyouhou
- Twitter - @akaigyouhou