Design comparison
SolutionDesign
Solution retrospective
Hello! Here's my solution for the NFT preview card component. I learned how to make a transition on an image and practice the display property. I also used media queries that I recently discovered.
Let me know what you think: feedback is always welcomed! :)
Community feedback
- @denieldenPosted over 2 years ago
Hi Chloe, great work on this challenge! π
Here are a few tips for improve your code:
- use
main
tag for wrap the card and improve the Accessibility and not for wrap the inside content of card - using
<hr>
for the line is not the best way because this tag have a semantic meaning... in this case use div withborder-bottom
because this line is decorative - remove all
margin
fromcontainer-card
class - use flexbox to the body to center the card. Read here -> best flex guide
- after, add
min-height: 100vh
to body because Flexbox aligns child items to the size of the parent container - add
transition
also on the text with hover effect
Overall you did well π Hope this help!
0 - use
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord