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

Article Review

Eugen 200

@psdesignro

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


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

I have learned how to toggle classes in order to hide or show an element. I've also practiced a bit the positioning of the elements. This time I used a simple structure for the SASS, just one file, as there were one main component on the challenge.

Regarding JS, at first I've used a conditional construction to hide/show the share tooltip, but it didn't have a smooth transition, so I used a class toggle instead and played with opacity, which allows smooth transitions.

For future projects I want to try to position the tooltip based on the mouse position, not on some fixed values.

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

The first challenge for me was the positioning of the tooltip on the desktop, then it took me some time to figure out how to get that arrow button on top, and then I remembered that z-index works only with position:relative.

Later I've tested 2 ways to hide.show the tooltip and kept the shortest one, which also has some smooth tranistions.

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

For this challenge I'm ok, but if you find something I can improve in my code, please share your thoughts!

Community feedback

salomasik 50

@salomasik

Posted

Good job

1

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