{"id":15131281,"url":"https://github.com/balakrish001/gradient-generator-styled-components","last_synced_at":"2026-01-17T03:47:08.498Z","repository":{"id":257103398,"uuid":"857330303","full_name":"Balakrish001/Gradient-Generator-Styled-Components","owner":"Balakrish001","description":"The GradientGenerator app allows users to select a gradient direction and input custom colors to create a dynamic linear gradient background. With easy-to-use controls, users can instantly see their selected colors and direction applied upon clicking 'Generate'.","archived":false,"fork":false,"pushed_at":"2024-09-14T11:24:26.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T20:43:31.283Z","etag":null,"topics":["css-in-js","html-css-javascript","reactjs","styled-components"],"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-09-14T11:18:06.000Z","updated_at":"2024-09-14T11:29:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8e7c0c8-665e-4168-a4bf-9120e7d23493","html_url":"https://github.com/Balakrish001/Gradient-Generator-Styled-Components","commit_stats":null,"previous_names":["balakrish001/gradient-generator-styled-components"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FGradient-Generator-Styled-Components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FGradient-Generator-Styled-Components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FGradient-Generator-Styled-Components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FGradient-Generator-Styled-Components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Balakrish001","download_url":"https://codeload.github.com/Balakrish001/Gradient-Generator-Styled-Components/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399894,"owners_count":20932876,"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-in-js","html-css-javascript","reactjs","styled-components"],"created_at":"2024-09-26T03:40:28.819Z","updated_at":"2026-01-17T03:47:08.487Z","avatar_url":"https://github.com/Balakrish001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"In this project, let's build a **Gradient Generator** app by applying the React Styled Components concepts.\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/gradient-generator-output-v0.gif\" alt=\"gradient-generator\" 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)](https://assets.ccbp.in/frontend/content/react-js/gradient-generator-sm-output-v0.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px)](https://assets.ccbp.in/frontend/content/react-js/gradient-generator-lg-output-v0.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- Initially, the selected gradient direction should be the first value in the given `gradientDirectionsList`\n- The initial values for the HTML input elements with type color should be **#8ae323** and **#014f7b** respectively\n- When the values are provided for both the input elements with type color, then provided values should be the text content for the respective paragraph elements\n- When the **Generate** button is clicked after selecting the direction and picking the colors, the background of the app should have a linear gradient with the selected direction and colors provided\n\n- The `GradientGenerator` component will consist `gradientDirectionsList`. It consists of a list of gradient directions objects with the following properties in each gradient directions object\n\n  |    Key      | Data Type |\n  | :--------:  | :-------: |\n  | directionId |  String   |\n  |    value    |  String   |\n  | displayText |  string   |\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/gradient-generator-component-breakdown-structure.png\" alt=\"gradetient-generator-component-breakdown-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/components/GradientGenerator/index.js`\n- `src/components/GradientGenerator/styledComponents.js`\n- `src/components/GradientDirectionItem/index.js`\n- `src/components/GradientDirectionItem/styledComponents.js`\n\u003c/details\u003e\n\n### Quick Tips\n\n\u003cdetails close\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\u003cbr\u003e\n\n- The HTML input element with the type **color** is designed for the user to select the **color** from a color picker.\n\n  ```jsx\n  \u003cinput type=\"color\" /\u003e\n  ```\n\n- You can use the CSS **opacity** property to set the degree of transparency of an element. It has a value in the range of 0 to 1 inclusive.\n\n  ```\n   opacity: 0.5;\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 HTML container element for the linear gradient values are applied should have `data-testid` as **gradientGenerator**\n- When a gradient direction button is active then the button should have the CSS property opacity with the value **1**\n- When a gradient direction button is inactive then the button should have the CSS property opacity with the value **0.5**\n\n\u003c/details\u003e\n\n### Resources\n\n\u003cdetails\u003e\n\u003csummary\u003eColors\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv style=\"background-color: #8ae323; width: 150px; padding: 10px; color: black\"\u003eHex: #8ae323\u003c/div\u003e\n\u003cdiv style=\"background-color: #014f7b; width: 150px; padding: 10px; color: white\"\u003eHex: #014f7b\u003c/div\u003e\n\u003cdiv style=\"background-color: #ededed; width: 150px; padding: 10px; color: black\"\u003eHex: #ededed\u003c/div\u003e\n\u003cdiv style=\"background-color: #334155; width: 150px; padding: 10px; color: white\"\u003eHex: #334155\u003c/div\u003e\n\u003cdiv style=\"background-color: #ffffff79; width: 150px; padding: 10px; color: black\"\u003eHex: #ffffff79\u003c/div\u003e\n\u003cdiv style=\"background-color: #1e293b; width: 150px; padding: 10px; color: white\"\u003eHex: #1e293b\u003c/div\u003e\n\u003cdiv style=\"background-color: #00c9b7; width: 150px; padding: 10px; color: black\"\u003eHex: #00c9b7\u003c/div\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFont-families\u003c/summary\u003e\n\n- Roboto\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Fgradient-generator-styled-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalakrish001%2Fgradient-generator-styled-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Fgradient-generator-styled-components/lists"}