{"id":25808101,"url":"https://github.com/subhajitroycode/interactive-rating-card","last_synced_at":"2026-05-14T15:34:01.344Z","repository":{"id":166318540,"uuid":"475524591","full_name":"subhajitroycode/interactive-rating-card","owner":"subhajitroycode","description":"Interactive rating card","archived":false,"fork":false,"pushed_at":"2022-03-30T18:56:35.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T05:50:00.376Z","etag":null,"topics":["form","html","javascript","scss","submission","urlsearchparams"],"latest_commit_sha":null,"homepage":"https://subhajitroycode.github.io/interactive-rating-card/","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subhajitroycode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-29T16:18:09.000Z","updated_at":"2022-03-30T16:12:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"f680023c-0e10-4507-9815-79ed1f071da8","html_url":"https://github.com/subhajitroycode/interactive-rating-card","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/subhajitroycode/interactive-rating-card","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhajitroycode%2Finteractive-rating-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhajitroycode%2Finteractive-rating-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhajitroycode%2Finteractive-rating-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhajitroycode%2Finteractive-rating-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subhajitroycode","download_url":"https://codeload.github.com/subhajitroycode/interactive-rating-card/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhajitroycode%2Finteractive-rating-card/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33031201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["form","html","javascript","scss","submission","urlsearchparams"],"created_at":"2025-02-27T21:57:11.694Z","updated_at":"2026-05-14T15:34:01.330Z","avatar_url":"https://github.com/subhajitroycode.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - Interactive rating component solution\n\nThis is a solution to the [Interactive rating component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/interactive-rating-component-koxpeBUmI). Frontend Mentor challenges help you improve your coding skills by building realistic projects. \n\n## Table of contents\n\n- [Frontend Mentor - Interactive rating component solution](#frontend-mentor---interactive-rating-component-solution)\n  - [Table of contents](#table-of-contents)\n  - [Overview](#overview)\n    - [The challenge](#the-challenge)\n    - [Screenshot](#screenshot)\n    - [Links](#links)\n  - [My process](#my-process)\n    - [Built with](#built-with)\n    - [What I learned](#what-i-learned)\n    - [Continued development](#continued-development)\n    - [Useful resources](#useful-resources)\n  - [Author](#author)\n  - [Acknowledgments](#acknowledgments)\n\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- View the optimal layout for the app depending on their device's screen size\n- See hover states for all interactive elements on the page\n- Select and submit a number rating\n- See the \"Thank you\" card state after submitting a rating\n\n### Screenshot\n\n![](https://user-images.githubusercontent.com/72935263/160867794-8fcac908-f15b-49d3-9def-2b0d94b4a286.png) \n![](https://user-images.githubusercontent.com/72935263/160867638-b34ff910-b380-4b33-b009-fcc3a5d29549.png)\n\n### Links\n\n- Solution URL: [Click Me!](https://www.frontendmentor.io/solutions/interactive-rating-card-using-javascript-SyWXQZM75)\n- Live Site URL: [Click Me!](https://subhajitroycode.github.io/interactive-rating-card/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- SCSS/SASS\n- Positioning and sizing of elements\n- Form validation/submission\n- JavaScript\n\n\n### What I learned\n\nI've learned about `URLSearchParams`, and how to use them to pass data from one page to another. I've also learned about the use of the `get` method on the `window` object to get the URL parameters. Also use the `@use` directive to import components from other files. \n\n\n```js\nconst rating = document.querySelector(\".rating\");\nconst value = new URLSearchParams(window.location.search).get(\"ratings\");\nrating.textContent = `You selected ${value} out of 5`;\n```\n\n\n### Continued development\n\nI am looking forward to improve my JavaScript skills and learn more about the DOM. I am also looking forward to learning more about the use of the `@use` and `@forward` directives.\n\n### Useful resources\n\n- [MDN](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) - MDN documentation for the `URLSearchParams` object\n- [Youtube - Web Dev Simplified](https://www.youtube.com/watch?v=fNcJuPIZ2WE) - This video is about HTML forms but it helped me about the `URLSearchParams` object\n\n\n## Author\n\n- Frontend Mentor - [@subhajitroycode](https://www.frontendmentor.io/profile/subhajitroycode)\n- Twitter - [@subhajitroycode](https://www.twitter.com/subhajitroycode)\n- LinkedIn - [@subhajitroycode](https://www.linkedin.com/in/subhajitroycode)\n\n\n## Acknowledgments\n\nI got a tip when submitting the form check if any of the radio buttons selected or show an error message. It was a great tip and I tried to find that account but couldn't find it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhajitroycode%2Finteractive-rating-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubhajitroycode%2Finteractive-rating-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhajitroycode%2Finteractive-rating-card/lists"}