Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

NFT Card com flexbox

Maiara Steffenβ€’ 30

@maiarasteffen

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

Gostei muito de desenvolver utilizando as propriedades do display e do position, para colocar cada elemento separado! foi muito bom tambΓ©m trabalhar com os pseudos before, after e hover para modificar os elementos quando passa o mouse!

What challenges did you encounter, and how did you overcome them?

O maior desafio foi para estilizar a parte do elemento ativo, quando passa o mouse, mas com pesquisas descobri que o cΓ³digo fica mais fΓ‘cil de trabalhar com opacidade, sabendo como utilizar.

What specific areas of your project would you like help with?

Me ajudou muito no desenvolvimento de Front-end

Community feedback

Abdul Khalid πŸš€β€’ 72,160

@0xabdulkhalid

Posted

Hello there πŸ‘‹. Congratulations on successfully completing the challenge! πŸŽ‰

  • I have a suggestion regarding your code that I believe will be of great interest to you.

IMPROVING HOVER STATE πŸͺ„:

  • I just want to share a small suggestion about the current hover state. I think the borders for the :before is not set so during the hover it looks box in shape. We need to add smooth rounded corners for that.
  • You have added border-radius: 7px for img, Instead of adding for that you can add it for image-link anchor tag. It's the parent of both things so we could easily add borders and prevent children overflow using overflow: hidden.
  • Here's the example:
.nft-card .image-link {
  overflow: hidden;
  border-radius: 7px;
}
  • Now remove this rule,
.nft-card .image-link .image {
  border-radius: 7px;
}
  • The change we done will help us to achieve nice rounded corners which is evenly distributed for both img and :before for getting the perfect result!

.

I hope you find this helpful πŸ˜„ Above all, the solution you submitted is great !

Happy coding!

Marked as helpful

0

Maiara Steffenβ€’ 30

@maiarasteffen

Posted

@0xabdulkhalid Thank you very much for the tip, I will be using it in my next codings!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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