
nft preview card component utilizando tailwindcss e flexbox
Design comparison
Solution retrospective
consegui fazer pela primeira fez um overlay com a opacidade bastante semelhante ao requisitado
What challenges did you encounter, and how did you overcome them?o maior desafio foi o overlay tive que colocar a tag img dentro de uma div inline-block com position relative depois coloquei a imagem com 100% da sua capacidade de largura para ocupar todo o conteiner, logo depois criei outra div depois da tag img, tudo isso dentro dessa div conteiner, essa segunda div fez toda a magica ela ficou com position absolute top e left 0 em com 100% de largura, depois foi o adicionar o background e diminuir a opacidade
<div id="conteiner" class="absolute inline-block">
<img src="url" class="w-[100%] h-[auto] block">
<div id="overlay" class="absolute top-[0] left-[0] w-[100%] h-[100%] bg-[exemple:#cor] "></div>
</div>
basicamente assim ficaria para fazer o overlay
What specific areas of your project would you like help with?
tudo foi resolvido
Community feedback
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