{"id":20047442,"url":"https://github.com/balakrish001/navbar-with-context-dark-light-mode","last_synced_at":"2026-05-01T21:01:24.337Z","repository":{"id":256777320,"uuid":"856393218","full_name":"Balakrish001/Navbar-with-Context-Dark-Light-Mode","owner":"Balakrish001","description":"Nav Bar With Context Using React.JS","archived":false,"fork":false,"pushed_at":"2024-09-12T14:06:19.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T08:19:09.711Z","etag":null,"topics":["css","html5","javascript","react-context","react-provider","reactjs"],"latest_commit_sha":null,"homepage":"https://navbar9.ccbp.tech/","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-12T14:02:54.000Z","updated_at":"2024-09-12T14:17:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"0800f508-0478-4da7-a90e-ffebc7e97c39","html_url":"https://github.com/Balakrish001/Navbar-with-Context-Dark-Light-Mode","commit_stats":null,"previous_names":["balakrish001/navbar-with-context-dark-light-mode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Balakrish001/Navbar-with-Context-Dark-Light-Mode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FNavbar-with-Context-Dark-Light-Mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FNavbar-with-Context-Dark-Light-Mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FNavbar-with-Context-Dark-Light-Mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FNavbar-with-Context-Dark-Light-Mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Balakrish001","download_url":"https://codeload.github.com/Balakrish001/Navbar-with-Context-Dark-Light-Mode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FNavbar-with-Context-Dark-Light-Mode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["css","html5","javascript","react-context","react-provider","reactjs"],"created_at":"2024-11-13T11:36:19.044Z","updated_at":"2026-05-01T21:01:24.283Z","avatar_url":"https://github.com/Balakrish001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"In this project, let's build a **Navbar with Context** 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/navbar-with-context-output.gif\" alt=\"navbar with context 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/navbar-with-context-home-sm-outputs.png)\n- [Extra Small (Size \u003c 576px) and Small (Size \u003e= 576px) - About](https://assets.ccbp.in/frontend/content/react-js/navbar-with-context-about-sm-outputs.png)\n- [Extra Small (Size \u003c 576px) and Small (Size \u003e= 576px) - Not Found](https://assets.ccbp.in/frontend/content/react-js/navbar-with-context-not-found-sm-outputs.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - Home Light Theme](https://assets.ccbp.in/frontend/content/react-js/navbar-with-context-home-light-theme-lg-output.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - Home Dark Theme](https://assets.ccbp.in/frontend/content/react-js/navbar-with-context-home-dark-theme-lg-output.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - About Light Theme](https://assets.ccbp.in/frontend/content/react-js/navbar-with-context-about-light-theme-lg-output.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - About Dark Theme](https://assets.ccbp.in/frontend/content/react-js/navbar-with-context-about-dark-theme-lg-output.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - Not Found Light Theme](https://assets.ccbp.in/frontend/content/react-js/navbar-with-context-not-found-light-theme-lg-output.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - Not Found Dark Theme](https://assets.ccbp.in/frontend/content/react-js/navbar-with-context-not-found-dark-theme-lg-output.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 app should consists of light theme\n- When the dark theme image is clicked in the respective route\n  - The dark theme image should be changed to light theme image\n  - The app should be changed to dark mode\n- when the light theme image is clicked in the Respective route\n  - The light theme image should be changed to dark theme image\n  - The app should be changed to light mode\n- The Theme Context has an object as a value with the following properties\n  - `isDarkTheme` - this key is used to change the theme\n  - `toggleTheme` - this method is used to update the value of the `isDarkTheme`\n- When an undefined path is provided in the URL then the page should navigate to the NotFound Route\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/navbar-with-context-component-structure-breakdown-home.png\" alt=\"component structure breakdown Home\" 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\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/navbar-with-context-component-structure-breakdown-about.png\" alt=\"component structure breakdown About\" 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/About/index.js`\n- `src/components/About/index.css`\n- `src/components/Navbar/index.js`\n- `src/components/Navbar/index.css`\n- `src/components/NotFound/index.css`\n- `src/components/NotFound/index.js`\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 **Home** image for light theme and dark theme should have the alt attribute value as `home`\n- The **About** image for light theme and dark theme should have the alt attribute value as `about`\n- The **Website Logo** image for light theme and dark theme should have the alt attribute value as `website logo`\n- The **Theme** image for light theme and dark theme should have the alt attribute value as `theme`\n- The Theme button should have the data-testid as `theme`\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/home-light-img.png](https://assets.ccbp.in/frontend/react-js/home-light-img.png)\n\n- [https://assets.ccbp.in/frontend/react-js/home-dark-img.png](https://assets.ccbp.in/frontend/react-js/home-dark-img.png)\n\n- [https://assets.ccbp.in/frontend/react-js/about-light-img.png](https://assets.ccbp.in/frontend/react-js/about-light-img.png)\n\n- [https://assets.ccbp.in/frontend/react-js/about-dark-img.png](https://assets.ccbp.in/frontend/react-js/about-dark-img.png)\n\n- [https://assets.ccbp.in/frontend/react-js/website-logo-light-theme-img.png](https://assets.ccbp.in/frontend/react-js/website-logo-light-theme-img.png)\n\n- [https://assets.ccbp.in/frontend/react-js/website-logo-dark-theme-img.png](https://assets.ccbp.in/frontend/react-js/website-logo-dark-theme-img.png)\n\n- [https://assets.ccbp.in/frontend/react-js/light-theme-img.png](https://assets.ccbp.in/frontend/react-js/light-theme-img.png)\n\n- [https://assets.ccbp.in/frontend/react-js/dark-theme-img.png](https://assets.ccbp.in/frontend/react-js/dark-theme-img.png)\n\n- [https://assets.ccbp.in/frontend/react-js/not-found-img.png](https://assets.ccbp.in/frontend/react-js/not-found-img.png) alt should be **not found**\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eColors\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv style=\"background-color: #000000; width: 150px; padding: 10px; color: white\"\u003eHex: #000000\u003c/div\u003e\n\u003cdiv style=\"background-color: #ffffff; width: 150px; padding: 10px; color: black\"\u003eHex: #ffffff\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: #333333; width: 150px; padding: 10px; color: white\"\u003eHex: #333333\u003c/div\u003e\n\u003cdiv style=\"background-color: #dcdcdc; width: 150px; padding: 10px; color: black\"\u003eHex: #dcdcdc\u003c/div\u003e\n\u003cdiv style=\"background-color: #171f46; width: 150px; padding: 10px; color: white\"\u003eHex: #171f46\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: #64748b; width: 150px; padding: 10px; color: white\"\u003eHex: #64748b\u003c/div\u003e\n\u003cdiv style=\"background-color: #f8fafc; width: 150px; padding: 10px; color: black\"\u003eHex: #f8fafc\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%2Fnavbar-with-context-dark-light-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalakrish001%2Fnavbar-with-context-dark-light-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Fnavbar-with-context-dark-light-mode/lists"}