├── public ├── robots.txt ├── favicon.ico ├── logo192.png ├── logo512.png ├── manifest.json └── index.html ├── src ├── setupTests.js ├── App.test.js ├── reportWebVitals.js ├── index.js ├── components │ ├── Board.js │ ├── NavBar.js │ ├── searchModal.js │ └── formModal.js ├── App.css └── App.js ├── .gitignore ├── README.md ├── package.json └── .eslintcache /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alitahir4024/note-taking-app-reactjs/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alitahir4024/note-taking-app-reactjs/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alitahir4024/note-taking-app-reactjs/HEAD/public/logo512.png -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen } from '@testing-library/react'; 2 | import App from './App'; 3 | 4 | test('renders learn react link', () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- 1 | const reportWebVitals = onPerfEntry => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 4 | getCLS(onPerfEntry); 5 | getFID(onPerfEntry); 6 | getFCP(onPerfEntry); 7 | getLCP(onPerfEntry); 8 | getTTFB(onPerfEntry); 9 | }); 10 | } 11 | }; 12 | 13 | export default reportWebVitals; 14 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import App from "./App"; 4 | import reportWebVitals from "./reportWebVitals"; 5 | 6 | ReactDOM.render(, document.getElementById("root")); 7 | 8 | // If you want to start measuring performance in your app, pass a function 9 | // to log results (for example: reportWebVitals(console.log)) 10 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 11 | reportWebVitals(); 12 | -------------------------------------------------------------------------------- /src/components/Board.js: -------------------------------------------------------------------------------- 1 | const Board = ({ notesData }) => { 2 | return ( 3 |
4 | {notesData.map((noteObj, noteIndex) => { 5 | return ( 6 |
7 |
8 |

{noteObj.noteMainTitle}

9 |

{noteObj.noteSubTitle}

10 |

{noteObj.noteDescription}

11 |
12 |
13 | ); 14 | })} 15 |
16 | ); 17 | }; 18 | 19 | export default Board; 20 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Note Taking App ReactJS. 2 | 3 | Note Taking App developed using ReactJS and its features. 4 | 5 | ## Technologies Used: 6 | 7 | * HTML. 8 | * CSS. 9 | * ReactJS. 10 | * React Hooks. 11 | * Functional Components. 12 | * React Responsive Modal. 13 | 14 | ## Silent Features: 15 | 16 | * User can add unlimited notes. 17 | * User can add main and sub title and also some description of the note. 18 | * User can search between the notes based on the note main titile. 19 | * Modal is used for serching and adding the notes. 20 | 21 | ## Project Preview: 22 | 23 | [Note Taking App](https://alitahir4024.github.io/note-taking-app-reactjs/) 24 | -------------------------------------------------------------------------------- /src/components/NavBar.js: -------------------------------------------------------------------------------- 1 | import { FaPlus, FaSearch, FaSyncAlt } from "react-icons/fa"; 2 | 3 | const NavBar = ({ 4 | showFormModalFunction, 5 | noteClearanceFunction, 6 | showSearchModalFunction, 7 | }) => { 8 | return ( 9 | 17 | ); 18 | }; 19 | 20 | export default NavBar; 21 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 14 | Note Taking App ReactJS 15 | 16 | 17 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /src/components/searchModal.js: -------------------------------------------------------------------------------- 1 | import "react-responsive-modal/styles.css"; 2 | import { Modal } from "react-responsive-modal"; 3 | 4 | const SearchModal = (props) => { 5 | return ( 6 | 15 |
16 |

Search Note

17 |
18 | 26 | 29 |
30 |
31 |
32 | ); 33 | }; 34 | 35 | export default SearchModal; 36 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "note-taking-app-reactjs-final", 3 | "homepage": "http://alitahir4024.github.io/note-taking-app-reactjs", 4 | "version": "0.1.0", 5 | "private": true, 6 | "dependencies": { 7 | "@testing-library/jest-dom": "^5.11.6", 8 | "@testing-library/react": "^11.2.2", 9 | "@testing-library/user-event": "^12.5.0", 10 | "gh-pages": "^3.1.0", 11 | "react": "^17.0.1", 12 | "react-dom": "^17.0.1", 13 | "react-icons": "^4.1.0", 14 | "react-responsive-modal": "^6.0.0", 15 | "react-scripts": "4.0.1", 16 | "web-vitals": "^0.2.4" 17 | }, 18 | "scripts": { 19 | "start": "react-scripts start", 20 | "build": "react-scripts build", 21 | "test": "react-scripts test", 22 | "eject": "react-scripts eject", 23 | "predeploy": "npm run build", 24 | "deploy": "gh-pages -d build" 25 | }, 26 | "eslintConfig": { 27 | "extends": [ 28 | "react-app", 29 | "react-app/jest" 30 | ] 31 | }, 32 | "browserslist": { 33 | "production": [ 34 | ">0.2%", 35 | "not dead", 36 | "not op_mini all" 37 | ], 38 | "development": [ 39 | "last 1 chrome version", 40 | "last 1 firefox version", 41 | "last 1 safari version" 42 | ] 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/components/formModal.js: -------------------------------------------------------------------------------- 1 | import "react-responsive-modal/styles.css"; 2 | import { Modal } from "react-responsive-modal"; 3 | 4 | const FormModal = (props) => { 5 | return ( 6 | 15 |
16 |

Create Your Note

17 |
18 | 26 | 34 |