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
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
Though this exercise seems simple, I learnt some important things while creating the solution
- How to overlay an icon over an image
- How to align small icons and text next to it.
- Learn how to use flexbox for layout of items in a row and spacing where required.
I want to learn responsive techniques without using many media queries. I want to learn how to center things on the screen in a modern way. I also want to learn the correct way of overlays.
- W3schools - This helped me with icon overlay over image.
- MDN - How to center an element at the center using flexbox
- MDN - How to align items in a row with separations at desired locations.
- Frontend Mentor - @BikeInMan
All thanks to frontend mentor for providing such a neat excercise.