Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Request path contains unescaped characters
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Article preview component made in HTML5, SCSS and JS (DOM API)

#accessibility#sass/scss#gulp

@YariMorcus

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


The challenge was to use a little bit of JS, but I decided to test my DOM API knowledge with this challenge. For this reason, the entire share container (with the share options) is dynamically created with JS.

There where two problems I faced:

  1. This was fixing the problems that occured with registering the event listeners (because they where in conflict with each other, and I could not locate where the problem arose. I haven't really been debugging before, so this was the first time).
  2. I could not find out how I could change the color of the share-icon.svg as shown in the design. As a consequence, I decided to create a share-icon-active.svg instead. I have tried filters and masks, but could not find a solution to it.

Feedback is always welcome, especially on the JS part, specifically how I attached the event listeners, because I have the feeling that this could be done better.

Community feedback

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