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
Started with setting up the HTML first, and from there I added the colors with CSS variables, and the layout using Flexbox.
Made the desktop version first and then adjusted the mobile view, should I have done it again I would have started with the mobile view.
After the card was made, I refactored as much of the code as possible to clean up and make the code more readable, especially because I added display:flex;
on too many elements to start with.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
I used this project as an opportunity to learn and practice CSS Flexbox
- Flexbox Froggy
- W3 schools
- Mdn Web Docs
- The browser inspector