{"id":20037962,"url":"https://github.com/yashi-singh-9/results-summary-component","last_synced_at":"2026-06-13T14:04:52.666Z","repository":{"id":256720868,"uuid":"856224658","full_name":"Yashi-Singh-9/Results-Summary-Component","owner":"Yashi-Singh-9","description":"The Results Summary Component is a responsive and reusable frontend component designed to display a summary of results, such as quiz scores or assessment outcomes. Built as part of a coding challenge on Frontend Mentor, it aims to provide a clean, accessible interface that can be easily integrated into various web projects.","archived":false,"fork":false,"pushed_at":"2025-01-27T03:10:30.000Z","size":532,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T04:19:24.532Z","etag":null,"topics":["css","frontend","frontend-mentor","frontendmentor-challenge","html","html-css-challenge","scss"],"latest_commit_sha":null,"homepage":"https://yashi-singh-9.github.io/Results-Summary-Component/","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/Yashi-Singh-9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-09-12T07:54:43.000Z","updated_at":"2025-01-27T03:10:33.000Z","dependencies_parsed_at":"2024-09-12T18:13:47.334Z","dependency_job_id":"dabf131b-829a-41ad-a7d5-d4281d2b1715","html_url":"https://github.com/Yashi-Singh-9/Results-Summary-Component","commit_stats":null,"previous_names":["yashi-singh-9/results-summary-component"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yashi-Singh-9%2FResults-Summary-Component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yashi-Singh-9%2FResults-Summary-Component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yashi-Singh-9%2FResults-Summary-Component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yashi-Singh-9%2FResults-Summary-Component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yashi-Singh-9","download_url":"https://codeload.github.com/Yashi-Singh-9/Results-Summary-Component/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241467913,"owners_count":19967756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["css","frontend","frontend-mentor","frontendmentor-challenge","html","html-css-challenge","scss"],"created_at":"2024-11-13T10:24:11.126Z","updated_at":"2025-11-26T14:05:13.510Z","avatar_url":"https://github.com/Yashi-Singh-9.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - Results Summary Component Solution\n\nThis is my solution to the [Results Summary Component Challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/results-summary-component-CE_K6s0maV). This project is built using **HTML**, **SCSS**, and **JavaScript**, and features dynamically loaded data from a JSON file.\n\n## Table of Contents\n- [Overview](#overview)\n  - [The Challenge](#the-challenge)\n  - [Screenshot](#screenshot)\n  - [Links](#links)\n- [Installation](#installation)\n  - [How to Run SCSS](#how-to-run-scss)\n  - [How to Run the Project](#how-to-run-the-project)\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\n## Overview\n\n### The Challenge\n\nUsers should be able to:\n- View the optimal layout for the interface depending on their device's screen size\n- See hover and focus states for all interactive elements on the page\n- **Bonus**: Use the local JSON data to dynamically populate the content\n\n### Screenshot\n\n**Desktop Design**\n\n![Screenshot of the Results Summary Component](design/desktop-design.png)\n\n**Moblie Design**\n\n\u003cimg src=\"design/Mobile-Design.png\" height=\"750\"\u003e\n\n### Links\n- Solution URL: [Solution](https://www.frontendmentor.io/solutions/results-summary-component-1p449I9jNZ)\n- Live Site URL: [Live Site](https://yashi-singh-9.github.io/Results-Summary-Component/)\n\n---\n\n## Installation\n\nTo run this project locally, follow these steps:\n\n### How to Run SCSS\n1. **Ensure Node.js is installed** on your system. [Download Node.js here](https://nodejs.org/).\n2. **Install SCSS globally** by running:\n   ```bash\n   npm install -g sass\n   ```\n3. **Compile SCSS to CSS**:\n   Navigate to the project directory and run:\n   ```bash\n   sass style.scss style.css\n   ```\n   This will generate the `style.css` file from the `style.scss` file.\n\n### How to Run the Project\n1. Clone this repository or download the project files.\n2. Open the `index.html` file in your browser to view the application.\n3. Make sure that the `data.json` file and all assets are in the correct directory structure for the dynamic loading to work.\n\n---\n\n## My Process\n\n### Built With\n- Semantic **HTML5**\n- **SCSS** (CSS preprocessor)\n- **JavaScript** for dynamic content\n- Mobile-first design principles\n- **Flexbox** and **CSS Grid** for layout\n\n### What I Learned\n\nThis project helped me improve my understanding of dynamically loading data using JavaScript and working with SCSS for modular and scalable styles. Below are some highlights:\n\n#### Dynamic Data Loading\nI learned how to fetch data from a local `data.json` file and dynamically populate the DOM. Here's a snippet:\n```javascript\nfetch('data.json')\n  .then(response =\u003e response.json())\n  .then(data =\u003e {\n    const summaryList = document.querySelector('.summary-list');\n    data.forEach(item =\u003e {\n      const listItem = document.createElement('li');\n      listItem.className = `summary-item ${item.category.toLowerCase()}`;\n      listItem.innerHTML = `\n        \u003cdiv class=\"item-info\"\u003e\n          \u003cimg src=\"${item.icon}\" alt=\"${item.category} icon\"\u003e\n          ${item.category}\n        \u003c/div\u003e\n        \u003cp\u003e\u003cspan\u003e${item.score}\u003c/span\u003e / 100\u003c/p\u003e\n      `;\n      summaryList.appendChild(listItem);\n    });\n  });\n```\n\n#### SCSS Modularity\nUsing SCSS variables and mixins allowed me to keep the design consistent and maintainable. Example:\n```scss\n$light-red: hsl(0, 100%, 67%);\n$orangey-yellow: hsl(39, 100%, 56%);\n\n.result {\n  background: linear-gradient($light-red, $orangey-yellow);\n  border-radius: 40px;\n}\n```\n\n### Continued Development\n\nIn future projects, I want to focus on:\n- Animating elements with CSS or JavaScript\n- Exploring additional preprocessor features like **nested selectors** and **mixins**\n- Building accessible and keyboard-friendly interactive elements\n\n---\n\n## Useful Resources\n\n- [MDN Web Docs - Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) - Helped me fetch JSON data dynamically.\n- [The Sass Documentation](https://sass-lang.com/documentation) - A great resource for SCSS concepts.\n- [Frontend Mentor](https://www.frontendmentor.io) - For providing this challenge and fostering a great learning community.\n\n---\n\n## Author\n\n- LinkedIn - [Yashi Singh](https://www.linkedin.com/in/yashi-singh-b4143a246)\n- Frontend Mentor - [Yashi-Singh-9](https://www.frontendmentor.io/profile/Yashi-Singh-9)\n\n---\n\n## Acknowledgments\n\nThanks to the Frontend Mentor community for their support and feedback on solutions! Also, a big shoutout to the creators of SCSS and JavaScript for making development fun and efficient.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashi-singh-9%2Fresults-summary-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashi-singh-9%2Fresults-summary-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashi-singh-9%2Fresults-summary-component/lists"}