Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
2
Comments
1

Barish Barla

@Valac01India40 points

I’m a mysterious individual who has yet to fill out my bio. One thing’s for certain: I love writing front-end code!

Latest solutions

  • Interactive rating component with animations

    #bem#vanilla-extract

    Barish Barla•40
    Submitted almost 3 years ago

    1 comment
  • QR code component using CSS flexbox

    #bem

    Barish Barla•40
    Submitted almost 3 years ago

    1 comment

Latest comments

  • Deepak•270
    @DEEPAK-tech40
    Submitted almost 3 years ago

    Interactive rating card using CSS grid and JS

    1
    Barish Barla•40
    @Valac01
    Posted almost 3 years ago

    Congrats on completing this challenge 🎉. After going through the code these are some of my suggestions.

    CSS

    • The card is not centered in a proper sense, you've added margins to push the card lower, but if the length of viewport increases the card stays around the top. You can use flexbox or grid to center the card.
    • The input buttons hover color is managed in JS, I would move that into my CSS. Just like how you've handled submit button hover color.
    • You have manually added spaces in between SUBMIT button. Here it is okay I guess, but you should avoid adding spaces, because if there is not enough space for SUBMIT to be in one line browser will break the text into multiple lines due to those added spaces. Instead use a CSS property letter-spacing to add spaces between characters
    • Also the font is not properly applied in ratings text.

    JS

    • Like I've mentioned handling hover color in CSS will reduce you JS code quite a bit.
    • When I did this challenge, I figured if the ratings is a group of input:radio elements instead of button elements, the JS gets much simpler. Instead of listening to click event for all the buttons, I can listen to only submit and I can extract rating value from the radio group. I suggest you to explore that option
    Marked as helpful

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub