This is a solution to the Interactive rating component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Select and submit a number rating
- See the "Thank you" card state after submitting a rating
- Solution URL: [frontend mentor]https://www.frontendmentor.io/solutions/interactive-rating-component--vubv0eTFA
- Live Site URL: [github]https://omoh123.github.io/interactive-rating-component/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
It was quite challenging especially with the javascript as this was my first project with javascript. Due to this challenge i was able to learn new things and commit alot of things to memory
rates.forEach((rate) => {
rate.addEventListener("click", () => {
rating.innerHTML = rate.innerHTML;
})
});
selecting and changing elements with javascript
- Frontend Mentor - [@praise]https://www.frontendmentor.io/profile/Omoh123
- Twitter - [@omogiate praise]https://twitter.com/OmogiatePraise
I want to give a special thanks to the user whose code helped me alot with the completion of this project- https://github.com/MFega