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

Bootstrap (range & switch), CSS Grid, Flexbox

Sigma 240

@TrashAlphonse

Desktop design screenshot for the Interactive pricing component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


1)Not sure how to change discount block text on mobile 2)Can Javascript code be more optimal

Community feedback

Jane 1,040

@janegca

Posted

Hi, I used the suggestion in this Stackoverflow thread to show/hide the word ‘discount’, it worked well.

In your JS, both the slider event listeners are doing essentially the same thing so you could extract the code and create an ‘update(value)’ function that both could call, would make the code a little more compact.

Hope that’s of some help. Nice job overall. Happy coding.

0

Sigma 240

@TrashAlphonse

Posted

@janegca Thanks for the hint, will try this out :)

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