Design comparison
Solution retrospective
Very good challenge. I was struggling a little bit with overlay but I figured it out in the end. Everything is created with flexbox which I am getting familiar with more and more. Let me know what you think and feel free to give any advice and feedback. Looking forward to do another challenge :)
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
SUGGESTIONS 💡 :
- The
.overlay
element is just transparent when user hovers the cursor on the image, but the transparency setted for element.overlay
also affects it childview-icon
's opacity.
- We can resolve this easily by optimizing the css rules, now add the following rules
.image-container:hover .overlay { opacity: 1; } .overlay { background-color: hsla(178, 100%, 50%, 50%); }
- Explanations for suggestions, we provided
opacity: 1
and we have modified the opacity ofbackground-color
with the help ofhsla
color code. So ourview-icon
will have100%
of opacity.
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful1@Stano153Posted over 1 year ago@0xAbdulKhalid I didn't even realize it. That is helpful tip. Thank you very much :) Additional question, I see that on screenshot 0.041 ETH is cut in line and 3 days left too. Do you know why is that happening?
0
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