{"id":20047446,"url":"https://github.com/balakrish001/ipl-dashboard-app","last_synced_at":"2026-05-07T01:03:53.845Z","repository":{"id":255331229,"uuid":"847621614","full_name":"Balakrish001/IPL-Dashboard-App","owner":"Balakrish001","description":"A IPL Dashboard application that allows to navigate through other urls with the routing method. Its a completely responsive reactjs application .","archived":false,"fork":false,"pushed_at":"2024-08-29T09:19:16.000Z","size":196,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T08:19:07.604Z","etag":null,"topics":["api","html-css-javascript","react-router","react-router-dom","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Balakrish001.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":"2024-08-26T08:12:11.000Z","updated_at":"2024-09-14T11:50:10.000Z","dependencies_parsed_at":"2024-08-29T10:44:02.250Z","dependency_job_id":"b0c196a9-a646-45ef-900d-ee5ba2fd77f1","html_url":"https://github.com/Balakrish001/IPL-Dashboard-App","commit_stats":null,"previous_names":["balakrish001/ipl-dashboard-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Balakrish001/IPL-Dashboard-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FIPL-Dashboard-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FIPL-Dashboard-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FIPL-Dashboard-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FIPL-Dashboard-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Balakrish001","download_url":"https://codeload.github.com/Balakrish001/IPL-Dashboard-App/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FIPL-Dashboard-App/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272124753,"owners_count":24877720,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"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":["api","html-css-javascript","react-router","react-router-dom","reactjs"],"created_at":"2024-11-13T11:36:20.020Z","updated_at":"2026-05-07T01:03:53.818Z","avatar_url":"https://github.com/Balakrish001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"In this project, let's build an **IPL Dashboard App** by applying the concepts we have learned till now.\n\n### Refer to the image below:\n\n\u003cbr/\u003e\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/ipl-dashboard-output-v2.gif\" alt=\"ipl-dashboard-output\" style=\"max-width:70%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n### Design Files\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n- [Extra Small (Size \u003c 576px) and Small (Size \u003e= 576px) - Home](https://assets.ccbp.in/frontend/content/react-js/ipl-dashboard-home-sm-output.png)\n- [Extra Small (Size \u003c 576px) and Small (Size \u003e= 576px) - Team Matches](https://assets.ccbp.in/frontend/content/react-js/ipl-dashboard-team-matches-sm-output-v2.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - Home](https://assets.ccbp.in/frontend/content/react-js/ipl-dashboard-home-lg-output.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - Team Matches](https://assets.ccbp.in/frontend/content/react-js/ipl-dashboard-team-matches-lg-output-v2.png)\n\n\u003c/details\u003e\n\n### Set Up Instructions\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n- Download dependencies by running `npm install`\n- Start up the app using `npm start`\n\u003c/details\u003e\n\n### Completion Instructions\n\n\u003cdetails\u003e\n\u003csummary\u003eFunctionality to be added\u003c/summary\u003e\n\u003cbr/\u003e\n\nThe app must have the following functionalities\n\n- When the app is opened, Home Route should be displayed\n- When the Home Route is opened,\n  - Make HTTP GET request to the **teamsApiUrl**\n  - **_loader_** should be displayed while fetching the data\n  - After fetching the data, the list of teams should be displayed\n- When a team card in Home Route is clicked,\n  - Page should be navigated to the Team Matches Route with the URL `/team-matches/:id`\n- When the Team Matches Route is opened,\n  - Make HTTP GET request to the **teamMatchesApiUrl** with the team id to get the recent matches data of the team\n    - Example: `https://apis.ccbp.in/ipl/KKR`\n  - **_loader_** should be displayed while fetching the data\n  - After fetching the data, the team banner, latest match, and list of recent matches should be displayed\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n\u003csummary\u003eAPI Requests \u0026 Responses\u003c/summary\u003e\n\u003cbr/\u003e\n\n**teamsApiUrl**\n\n#### API: `https://apis.ccbp.in/ipl`\n\n#### Method: `GET`\n\n#### Description:\n\nReturns a response containing the list of all IPL teams\n\n#### Response\n\n```json\n{\n  \"teams\": [\n    {\n      \"name\": \"Royal Challengers Bangalore\",\n      \"id\": \"RCB\",\n      \"team_image_url\": \"https://assets.ccbp.in/frontend/react-js/rcb-logo-img.png\",\n      // use value of the key 'name' for alt as `${name}`\n    },\n    ...\n  ],\n}\n```\n\n**teamMatchesApiUrl**\n\n#### API: `https://apis.ccbp.in/ipl/:id`\n\n#### Example: `https://apis.ccbp.in/ipl/KKR`\n\n#### Method: `GET`\n\n#### Description:\n\nReturns a response containing details of all recent matches of a team\n\n#### Response\n\n```json\n{\n  \"team_banner_url\": \"https://assets.ccbp.in/frontend/react-js/kkr-team-img.png\",\n  \"latest_match_details\": {\n    \"umpires\": \"CB Gaffaney, VK Sharma\",\n    \"result\": \"Kolkata Knight Riders Won by 7 wickets\",\n    \"man_of_the_match\": \"Shubman Gill\",\n    \"id\": \"1216545\",\n    \"date\": \"2020-09-26\",\n    \"venue\": \"At Sheikh Zayed Stadium, Abu Dhabi\",\n    \"competing_team\": \"Sunrisers Hyderabad\",\n    \"competing_team_logo\": \"https://upload.wikimedia.org/wikipedia/en/thumb/8/81/Sunrisers_Hyderabad.svg/1200px-Sunrisers_Hyderabad.svg.png\",\n    // use value of the key 'competing_team' for alt as `latest match ${competing_team}`\n    \"first_innings\": \"Sunrisers Hyderabad\",\n    \"second_innings\": \"Kolkata Knight Riders\",\n    \"match_status\": \"Won\",\n  },\n  \"recent_matches\": [\n    {\n      \"umpires\": \"RK Illingworth, K Srinivasan\",\n      \"result\": \"Royal Challengers Bangalore Won by 82 runs\",\n      \"man_of_the_match\": \"AB de Villiers\",\n      \"id\": \"1216540\",\n      \"date\": \"2020-10-12\",\n      \"venue\": \"At Sharjah Cricket Stadium, Sharjah\",\n      \"competing_team\": \"Royal Challengers Bangalore\",\n      \"competing_team_logo\": \"https://upload.wikimedia.org/wikipedia/en/thumb/2/2a/Royal_Challengers_Bangalore_2020.svg/1200px-Royal_Challengers_Bangalore_2020.svg.png\",\n      // use value of the key 'competing_team' for alt as `competing team ${competing_team}`\n      \"first_innings\": \"Royal Challengers Bangalore\",\n      \"second_innings\": \"Kolkata Knight Riders\",\n      \"match_status\": \"Lost\",\n    },\n    ...\n  ],\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eComponents Structure\u003c/summary\u003e\n\n\u003cbr/\u003e\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/home-component-structure-img.png\" alt=\"home component structure\" style=\"max-width:100%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/team-matches-component-structure-img.png\" alt=\"team matches component structure\" style=\"max-width:100%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eImplementation Files\u003c/summary\u003e\n\u003cbr/\u003e\n\nUse these files to complete the implementation:\n\n- `src/App.js`\n- `src/components/Home/index.js`\n- `src/components/Home/index.css`\n- `src/components/TeamCard/index.js`\n- `src/components/TeamCard/index.css`\n- `src/components/TeamMatches/index.js`\n- `src/components/TeamMatches/index.css`\n- `src/components/LatestMatch/index.js`\n- `src/components/LatestMatch/index.css`\n- `src/components/MatchCard/index.js`\n- `src/components/MatchCard/index.css`\n\u003c/details\u003e\n\n### Quick Tips\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\u003cbr\u003e\n\n- To display the animated loader, we need to import the Loader component using the below statement\n\n  ```\n  import Loader from 'react-loader-spinner'\n  ```\n\n- In order to display the given animated loader, pass the `type` and `color` props to the `Loader` component with values as **Oval** and **#ffffff** , respectively\n\n  ```\n  \u003cLoader type=\"Oval\" color=\"#ffffff\" height={50} width={50} /\u003e\n  ```\n\n\u003c/details\u003e\n\n### Important Note\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n**The following instructions are required for the tests to pass**\n\n- The banner image in the Team Matches Route should have the alt attribute value as `team banner`\n- The alt attribute values for the images received from the response are given in the **Example response**\n- The API responses received from the given api URLs should be converted to camel case\n- Wrap the `Loader` component with an HTML container element and add the `testid` attribute value as `loader` to it as shown below\n  ```\n  \u003cdiv testid=\"loader\"\u003e\n      \u003cLoader type=\"Oval\" color=\"#ffffff\" height={50} width={50} /\u003e\n  \u003c/div\u003e\n  ```\n- Render HomeRoute component when path in URL matches `/`\n- Render TeamMatchesRoute component when path in URL matches `/team-matches/:id`\n- No need to use the `BrowserRouter` in `App.js` as we have already included in `index.js` file\n- Each TeamMatchesRoute should have different gradient colors as background based on the selected team\n\n\u003c/details\u003e\n\n### Resources\n\n\u003cdetails\u003e\n\u003csummary\u003eImage URLs\u003c/summary\u003e\n\n- [https://assets.ccbp.in/frontend/react-js/ipl-dashboard-sm-bg.png](https://assets.ccbp.in/frontend/react-js/ipl-dashboard-sm-bg.png)\n- [https://assets.ccbp.in/frontend/react-js/ipl-dashboard-lg-bg.png](https://assets.ccbp.in/frontend/react-js/ipl-dashboard-lg-bg.png)\n- [https://assets.ccbp.in/frontend/react-js/ipl-logo-img.png](https://assets.ccbp.in/frontend/react-js/ipl-logo-img.png) alt should be **ipl logo**\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eColors\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n**Background Colors**:\n\n\u003cdiv style=\"background-color: #1e293b; width: 150px; padding: 10px; color: white\"\u003eHex: #1e293b\u003c/div\u003e\n\u003cdiv style=\"background-color: #a4261d; width: 150px; padding: 10px; color: white\"\u003eHex: #a4261d\u003c/div\u003e\n\u003cdiv style=\"background-color: #5755a7; width: 150px; padding: 10px; color: white\"\u003eHex: #5755a7\u003c/div\u003e\n\u003cdiv style=\"background-color: #d91c1f; width: 150px; padding: 10px; color: white\"\u003eHex: #d91c1f\u003c/div\u003e\n\u003cdiv style=\"background-color: #f7db00; width: 150px; padding: 10px; color: white\"\u003eHex: #f7db00\u003c/div\u003e\n\u003cdiv style=\"background-color: #ffffff33; width: 150px; padding: 10px; color: black\"\u003eHex: #ffffff33\u003c/div\u003e\n\u003cdiv style=\"background-color: #da237b; width: 150px; padding: 10px; color: white\"\u003eHex: #da237b\u003c/div\u003e\n\u003cdiv style=\"background-color: #13418b; width: 150px; padding: 10px; color: white\"\u003eHex: #13418b\u003c/div\u003e\n\u003cdiv style=\"background-color: #f26d22; width: 150px; padding: 10px; color: white\"\u003eHex: #f26d22\u003c/div\u003e\n\u003cdiv style=\"background-color: #4f5db0; width: 150px; padding: 10px; color: white\"\u003eHex: #4f5db0\u003c/div\u003e\n\u003cdiv style=\"background-color: #0f172a; width: 150px; padding: 10px; color: white\"\u003eHex: #0f172a\u003c/div\u003e\n\u003cbr/\u003e\n\n**Border Colors**\n\n\u003cdiv style=\"background-color: #ffffff; width: 150px; padding: 10px; color: black\"\u003eHex: #ffffff\u003c/div\u003e\n\u003cdiv style=\"background-color: #475569; width: 150px; padding: 10px; color: black\"\u003eHex: #475569\u003c/div\u003e\n\n\u003cbr /\u003e\n\n**Text Colors**\n\n\u003cdiv style=\"background-color: #ffffff; width: 150px; padding: 10px; color: black\"\u003eHex: #ffffff\u003c/div\u003e\n\u003cdiv style=\"background-color: #18ed66; width: 150px; padding: 10px; color: black\"\u003eHex: #18ed66\u003c/div\u003e\n\u003cdiv style=\"background-color: #e31a1a; width: 150px; padding: 10px; color: black\"\u003eHex: #e31a1a\u003c/div\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFont-families\u003c/summary\u003e\n\n- Bree Serif\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Fipl-dashboard-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalakrish001%2Fipl-dashboard-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Fipl-dashboard-app/lists"}