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: https://github.com/LuizAPJunior/nft-preview-card
- Live Site URL: https://luizapjunior.github.io/nft-preview-card/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
I learned how to use svg files as icons and how to get better on building responsive layouts using max-width and unit sizes like em and rem:
.card {
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: 1em;
justify-content: space-between;
padding: 2em;
max-width: 20rem;
background-color: hsl(216, 50%, 16%);
border-radius: 1rem;
font-size: 0.9rem;
}
- 5 simple tips to make responsive layouts - This video helped me to get better on making responsive layouts.