├── src ├── del.png ├── note.png ├── setupTests.js ├── App.test.js ├── reportWebVitals.js ├── index.js ├── Trash.js ├── TakeNote.js ├── logo.svg ├── Home.js ├── App.js └── index.css ├── public ├── del.png ├── del1.png ├── logo.png ├── note.png ├── image.png ├── favicon.ico ├── logo192.png ├── logo512.png ├── push-pin.png ├── robots.txt ├── manifest.json ├── index.html └── notes.svg ├── .gitignore ├── scripts └── build.js ├── package.json └── README.md /src/del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/src/del.png -------------------------------------------------------------------------------- /src/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/src/note.png -------------------------------------------------------------------------------- /public/del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/public/del.png -------------------------------------------------------------------------------- /public/del1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/public/del1.png -------------------------------------------------------------------------------- /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/public/logo.png -------------------------------------------------------------------------------- /public/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/public/note.png -------------------------------------------------------------------------------- /public/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/public/image.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/push-pin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shambhavijs/gkeep-lite/HEAD/public/push-pin.png -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /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 './index.css'; 4 | import App from './App'; 5 | import reportWebVitals from './reportWebVitals'; 6 | 7 | ReactDOM.render( 8 | 9 | 10 | , 11 | document.getElementById('root') 12 | ); 13 | 14 | // If you want to start measuring performance in your app, pass a function 15 | // to log results (for example: reportWebVitals(console.log)) 16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 17 | reportWebVitals(); 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/Trash.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import Masonry from 'react-masonry-css'; 3 | 4 | const Trash = ({state, ...actions}) => { 5 | return( 6 |
7 | 20 |
21 | ); 22 | } 23 | 24 | export default Trash; -------------------------------------------------------------------------------- /scripts/build.js: -------------------------------------------------------------------------------- 1 | const rewire = require('rewire'); 2 | const path = require('path'); 3 | 4 | // Pointing to file which we want to re-wire — this is original build script 5 | const defaults = rewire('react-scripts/scripts/build.js'); 6 | 7 | // Getting configuration from original build script 8 | let config = defaults.__get__('config'); 9 | 10 | // If we want to move build result into a different folder, we can do that! 11 | // Please note: that should be an absolute path! 12 | config.output.path = path.join(path.dirname(__dirname), 'build'); 13 | 14 | // If we want to rename resulting bundle file to not have hashes, we can do that! 15 | config.output.filename = 'bundle.js'; 16 | 17 | // And the last thing: disabling splitting 18 | config.optimization.splitChunks = { 19 | cacheGroups: { 20 | default: false, 21 | }, 22 | }; 23 | config.optimization.runtimeChunk = false; 24 | -------------------------------------------------------------------------------- /src/TakeNote.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const TakeNote = ({state, ...actions}) => { 4 | return( 5 |
6 | { 7 | state.visible === false 8 | ? 9 |
10 | null}/> 11 |
12 | : 13 |
14 | actions.handleChangeNote(e.target.value,"title")}/>

15 | actions.handleChangeNote(e.target.value,"input")} className="take-note" autoFocus="autofocus " /> 16 | 17 | 18 |
19 | } 20 |
21 | ); 22 | } 23 | 24 | export default TakeNote; -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "to-do-list", 3 | "version": "0.1.0", 4 | "private": true, 5 | "config-overrides-path": "node_modules/react-app-rewire-disable-chunks", 6 | "dependencies": { 7 | "@testing-library/jest-dom": "^5.11.9", 8 | "@testing-library/react": "^11.2.5", 9 | "@testing-library/user-event": "^12.6.3", 10 | "react": "^17.0.1", 11 | "react-app-rewire-disable-chunks": "0.0.1", 12 | "react-dom": "^17.0.1", 13 | "rewire": "^5.0.0", 14 | "react-masonry-css": "^1.0.14", 15 | "react-router-dom": "^5.2.0", 16 | "react-scripts": "^4.0.3", 17 | "web-vitals": "^1.1.0" 18 | }, 19 | "scripts": { 20 | "start": "react-scripts start", 21 | "build": "react-scripts build", 22 | "test": "react-scripts test", 23 | "eject": "react-scripts eject" 24 | }, 25 | "eslintConfig": { 26 | "extends": [ 27 | "react-app", 28 | "react-app/jest" 29 | ] 30 | }, 31 | "browserslist": { 32 | "production": [ 33 | ">0.2%", 34 | "not dead", 35 | "not op_mini all" 36 | ], 37 | "development": [ 38 | "last 1 chrome version", 39 | "last 1 firefox version", 40 | "last 1 safari version" 41 | ] 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | Google Keep Lite 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/notes.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 37 | 38 | 39 | 40 | 41 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/Home.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import Masonry from 'react-masonry-css'; 3 | import TakeNote from './TakeNote'; 4 | 5 | const PinnedNote = ({state, removeFromNotes, removePin}) => { 6 | if(state.pinned_id){ 7 | return ( 8 |
9 |

Pinned

10 | {state.notes_list.filter(n=>{ return n.id === state.pinned_id }).map((item,index)=> 11 |

12 | {item.title} 13 | {item.input} 14 | 15 |

16 | )} 17 |
18 |
19 | ); 20 | } 21 | else { 22 | return null; 23 | } 24 | } 25 | const Home = ({state, styles, ...actions}) => { 26 | return( 27 |
28 | 29 |
30 |

31 | actions.handleChangeNote(e.target.value,"title", "edited_note")}/> 32 | actions.handleChangeNote(e.target.value,"input", "edited_note")} className="edit-input" /> 33 | 34 | 35 |

36 |
37 | 38 |
    39 | 43 | {(!state.search ? state.notes_list : state.search_list).filter(n=>{ return ((n.id !== state.pinned_id) && (n.id !== state.popUp_id)) }).map((item,index)=> 44 |
  • 45 | {item.title} 46 | {item.input} 47 | 48 |
  • )} 49 |
    50 |
51 |
52 | ); 53 | } 54 | 55 | export default Home; -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 13 | 14 | The page will reload if you make edits.\ 15 | You will also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 35 | 36 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 39 | 40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 55 | 56 | ### Making a Progressive Web App 57 | 58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 59 | 60 | ### Advanced Configuration 61 | 62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `npm run build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import Home from './Home'; 3 | import { 4 | BrowserRouter as Router, 5 | Switch, 6 | Route, 7 | Link 8 | } from "react-router-dom"; 9 | import Trash from './Trash'; 10 | 11 | class App extends React.Component{ 12 | constructor(props){ 13 | super(props); 14 | this.state = { 15 | search: null, 16 | edited_note: { 17 | title: "", 18 | input: "" 19 | }, 20 | notes: { 21 | title: "", 22 | input: "" 23 | }, 24 | deleted_note: { 25 | title: "", 26 | input: "" 27 | }, 28 | search_list: [], 29 | notes_list: [], 30 | visible: false, 31 | pinned_id: null, 32 | showPopUp: false, 33 | popUp_id: null, 34 | trash_list: [] 35 | }; 36 | this.handleClick = this.handleClick.bind(this); 37 | this.handleSearch = this.handleSearch.bind(this); 38 | this.handleChangeNote = this.handleChangeNote.bind(this); 39 | this.addToNotes = this.addToNotes.bind(this); 40 | this.removeFromNotes = this.removeFromNotes.bind(this); 41 | this.removePin = this.removePin.bind(this); 42 | this.pinNote = this.pinNote.bind(this); 43 | this.showNote = this.showNote.bind(this); 44 | this.updateNote = this.updateNote.bind(this); 45 | this.removeFromTrash = this.removeFromTrash.bind(this); 46 | this.actions = { 47 | handleClick: this.handleClick, 48 | handleChangeNote: this.handleChangeNote, 49 | addToNotes: this.addToNotes, 50 | removeFromNotes: this.removeFromNotes, 51 | removePin: this.removePin, 52 | pinNote: this.pinNote, 53 | showNote: this.showNote, 54 | updateNote: this.updateNote, 55 | removeFromTrash: this.removeFromTrash 56 | }; 57 | } 58 | 59 | componentDidMount() { 60 | const trash_string = localStorage.getItem('trash'); 61 | const trash_list = JSON.parse(trash_string); 62 | const list_string = localStorage.getItem('list'); 63 | const notes_list = JSON.parse(list_string); 64 | this.setState({ 65 | ...this.state, 66 | notes_list: (notes_list? notes_list : []), 67 | trash_list: (trash_list? trash_list : []) 68 | }); 69 | } 70 | 71 | handleClick(){ 72 | this.setState({ 73 | ...this.state, 74 | visible: true 75 | }); 76 | } 77 | handleSearch(value){ 78 | if(value.length > 0) { 79 | this.setState({ 80 | ...this.state, 81 | search: value, 82 | search_list: this.state.notes_list.filter(note=>{ return (note.title.includes(value) || note.input.includes(value))}) 83 | }); 84 | } 85 | else { 86 | this.setState({ 87 | ...this.state, 88 | search: null, 89 | search_list: [] 90 | }); 91 | } 92 | } 93 | handleChangeNote(value,key, obj="notes"){ 94 | this.setState({ 95 | ...this.state, 96 | [obj]: { 97 | ...this.state[obj], 98 | [key]: value 99 | } 100 | }); 101 | } 102 | addToNotes() { 103 | const notes_list = this.state.notes_list; 104 | if((this.state.notes.input.length)>0 || (this.state.notes.title.length)>0){ 105 | notes_list.unshift({ 106 | id: Date.now(), 107 | ...this.state.notes 108 | }); 109 | this.setState({ 110 | ...this.state, 111 | notes_list: notes_list, 112 | notes: { 113 | ...this.state.notes, 114 | title:"", 115 | input: "" 116 | }, 117 | visible: false 118 | }); 119 | localStorage.setItem("list",JSON.stringify(notes_list)); 120 | } 121 | else{ 122 | this.setState({ 123 | ...this.state, 124 | visible: false 125 | }); 126 | } 127 | } 128 | removeFromNotes(i,id) { 129 | let deleted_note = this.state.notes_list.filter(item => {return item.id === id})[0]; 130 | const trash_list = this.state.trash_list; 131 | trash_list.unshift(deleted_note); 132 | this.setState({ 133 | trash_list: trash_list 134 | }); 135 | const notes_list = this.state.notes_list.filter((note,index)=> { return index !== i; }); 136 | if(this.state.pinned_id){ 137 | this.setState({ 138 | notes_list: notes_list, 139 | pinned_id: null 140 | });} 141 | else{ 142 | this.setState({ 143 | showPopUp: false, 144 | notes_list: notes_list, 145 | }); 146 | } 147 | localStorage.setItem("list", JSON.stringify(notes_list)); 148 | localStorage.setItem("trash",JSON.stringify(trash_list)); 149 | } 150 | pinNote(id) { 151 | this.setState({ 152 | ...this.state, 153 | pinned_id: id 154 | }); 155 | } 156 | removePin() { 157 | this.setState({ 158 | ...this.state, 159 | pinned_id: null 160 | }); 161 | } 162 | showNote(id) { 163 | let edited_note = this.state.notes_list.filter(item=>{return item.id === id})[0]; 164 | this.setState({ 165 | ...this.state, 166 | edited_note, 167 | showPopUp: true, 168 | popUp_id: id 169 | }); 170 | } 171 | updateNote(id) { 172 | let note = this.state.edited_note; 173 | let containsOnlyOneElement = this.state.notes_list.length === 1; 174 | this.setState({ 175 | ...this.state, 176 | notes_list: (containsOnlyOneElement ? [{id, ...note}] : [{id, ...note}, ...this.state.notes_list.filter(item=>item.id!==id)]), 177 | edited_note: { 178 | title: "", 179 | input: "" 180 | }, 181 | showPopUp: false, 182 | popUp_id: null 183 | }); 184 | } 185 | removeFromTrash(id) { 186 | const trash_list = this.state.trash_list.filter((item) => { return item.id !== id}); 187 | this.setState({ 188 | ...this.state, 189 | trash_list: trash_list 190 | }); 191 | } 192 | 193 | render() { 194 | let styles = { 195 | inputStyle: { 196 | display: 'flex' 197 | }, 198 | inputStyle1: { 199 | display: 'none' 200 | } 201 | }; 202 | return( 203 | 204 |
205 |
206 | 207 |

Keep

208 | this.handleSearch(e.target.value)}/> 209 |
210 |
211 |
212 | 213 |
214 | home 215 | trash 216 |
217 | 218 | }/> 219 | }/> 220 | 221 |
222 |
223 |
224 | ); 225 | }; 226 | } 227 | 228 | export default App; 229 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600&display=swap'); 2 | body{ 3 | margin: 0; 4 | padding:0 5 | } 6 | .header{ 7 | display: grid; 8 | grid-template-columns: auto auto 1fr; 9 | grid-gap: 15px; 10 | align-items: start; 11 | padding-left: 30px; 12 | padding-right: 100px; 13 | margin-bottom: 0px; 14 | margin-top: 2px; 15 | padding-top: 0px; 16 | padding-bottom:0px; 17 | margin-bottom: 0px; 18 | height: 50px; 19 | } 20 | .header img{ 21 | height: 38px; 22 | width: 28px; 23 | padding-top: 8px; 24 | } 25 | .header h3{ 26 | font-family: 'Quicksand', sans-serif; 27 | font-size: 20px; 28 | color: #808080; 29 | font-weight: 550; 30 | margin-top: 0px; 31 | padding-top: 15px; 32 | } 33 | .search{ 34 | height: 42px; 35 | width: 900px; 36 | border-style: none; 37 | border-radius: 10px; 38 | background-color: #ededed; 39 | font-family: 'Quicksand', sans-serif; 40 | font-size: 15px; 41 | font-weight: 500; 42 | color: #808080; 43 | padding-left: 40px; 44 | margin-left: 70px; 45 | margin-top: 5px; 46 | } 47 | .search:focus{ 48 | outline: none; 49 | background-color: white; 50 | box-shadow: 2px 2px 5px 2px rgba(201,199,199,0.8); 51 | } 52 | .content{ 53 | display: grid; 54 | grid-template-columns: auto 1fr; 55 | } 56 | .navigation{ 57 | display: grid; 58 | grid-template-rows: auto auto; 59 | height: 100px; 60 | grid-gap: 0px; 61 | } 62 | .nav-home, .nav-trash{ 63 | background-color: white; 64 | height: 40px; 65 | width: 40px; 66 | border-radius: 50%; 67 | border-style: none; 68 | padding-top: 6px; 69 | padding-left: 6px; 70 | margin-left: 10px; 71 | } 72 | .home{ 73 | height: 20px; 74 | width: 20px; 75 | padding-left: 4px; 76 | padding-top: 2px; 77 | opacity: 0.8; 78 | padding-top: 7px; 79 | padding-left: 7px; 80 | } 81 | .trash{ 82 | height: 20px; 83 | width: 20px; 84 | opacity: 0.8; 85 | padding-top: 6px; 86 | padding-left: 6px; 87 | } 88 | .nav-home:hover, .nav-trash:hover{ 89 | background-color: #feefc3; 90 | } 91 | .nav-home:focus,.nav-trash:focus{ 92 | outline: none; 93 | } 94 | .nav-home:active{ 95 | background-color: #feefc3; 96 | } 97 | .take-notes1{ 98 | margin-top: 30px; 99 | margin-left: auto; 100 | margin-right: auto; 101 | display: grid; 102 | grid-template-columns: 1fr auto auto auto; 103 | grid-gap: 10px; 104 | border-style: none; 105 | border-radius: 6px; 106 | box-shadow: 2px 2px 4px 2px rgba(201,199,199,0.8); 107 | padding-top: 10px; 108 | padding-bottom: 10px; 109 | padding-left: 20px; 110 | padding-right: 20px; 111 | width: 600px; 112 | font-family: 'Quicksand', sans-serif; 113 | font-size: 15px; 114 | color:#808080; 115 | } 116 | .take-notes1 input{ 117 | font-weight: 800; 118 | } 119 | .take-notes1:focus{ 120 | outline: none; 121 | } 122 | .take-notes1 button{ 123 | height: 32px; 124 | width:32px; 125 | border-radius: 50%; 126 | padding-top: 5px; 127 | border-style: none; 128 | background-color: white; 129 | outline: none; 130 | } 131 | .take-notes1 button:hover{ 132 | background-color: rgb(240, 238, 238); 133 | } 134 | .icon{ 135 | height: 14px; 136 | width: 14px; 137 | justify-self: center; 138 | opacity:80%; 139 | } 140 | .initial{ 141 | font-family: 'Quicksand', sans-serif; 142 | font-size: 15px; 143 | font-weight: 600; 144 | color:#808080; 145 | border-style: none; 146 | } 147 | .initial:focus{ 148 | outline:none; 149 | } 150 | .take-notes2{ 151 | margin-top: 40px; 152 | margin-left: auto; 153 | margin-right: auto; 154 | display: grid; 155 | grid-template-rows: 1fr 1fr auto; 156 | grid-gap: 15px; 157 | border-style: none; 158 | border-radius: 6px; 159 | box-shadow: 2px 2px 10px 2px rgba(201,199,199,0.8); 160 | padding-top: 10px; 161 | padding-bottom: 10px; 162 | padding-left: 20px; 163 | padding-right: 20px; 164 | width: 600px; 165 | } 166 | .title, .take-note{ 167 | border-style: none; 168 | border-radius: 12px; 169 | font-family: 'Quicksand', sans-serif; 170 | font-size: 15px; 171 | font-weight: 600; 172 | color:#808080; 173 | padding-left: 10px; 174 | padding-right: 10px; 175 | } 176 | .title:focus{ 177 | outline: none; 178 | } 179 | .take-note:focus{ 180 | outline: none; 181 | } 182 | .take-notes2 button{ 183 | border-style: none; 184 | background-color: white; 185 | font-family: 'Quicksand', sans-serif; 186 | font-size: 15px; 187 | font-weight:600; 188 | color:#808080; 189 | width: 50px; 190 | justify-self: end; 191 | } 192 | .take-notes2 button:focus{ 193 | outline: none; 194 | } 195 | .my-masonry-grid { 196 | display: -webkit-box; /* Not needed if autoprefixing */ 197 | display: -ms-flexbox; /* Not needed if autoprefixing */ 198 | display: flex; 199 | margin-left: 70px; 200 | margin-right:50px; 201 | margin-top: 80px; /* gutter size offset */ 202 | width: auto; 203 | height: auto; 204 | } 205 | .my-masonry-grid_column { 206 | padding-left: 20px; /* gutter size */ 207 | } 208 | .list-item{ 209 | border-style: solid; 210 | border-width: thin; 211 | border-color: rgba(214, 214, 214, 0.8); 212 | border-radius: 8px; 213 | display: grid; 214 | grid-template-rows: auto auto auto auto; 215 | grid-gap: 10px; 216 | background-color: white; 217 | font-family: 'Quicksand', sans-serif; 218 | font-size: 15px; 219 | font-weight:600; 220 | width: 200px; 221 | padding-left: 11px; 222 | padding-right:11px; 223 | padding-top: 8px; 224 | padding-bottom: 8px; 225 | margin-bottom: 20px; 226 | 227 | } 228 | .pin-button{ 229 | display: none; 230 | background-color: white; 231 | } 232 | .list-item:hover .pin-button{ 233 | display: block; 234 | height: 32px; 235 | width:32px; 236 | border-radius: 50%; 237 | padding-top: 5px; 238 | border-style: none; 239 | justify-self: end; 240 | align-self: flex-end; 241 | padding-left: 4px; 242 | padding-right: 4px; 243 | } 244 | .pin-button:hover{ 245 | background-color: rgb(233, 229, 229); 246 | } 247 | 248 | .list-button{ 249 | border-style: none; 250 | background-color: white; 251 | font-family: 'Quicksand', sans-serif; 252 | font-size: 15px; 253 | font-weight:600; 254 | color:#808080; 255 | width: auto; 256 | justify-self: end; 257 | align-self: flex-end; 258 | padding-left: 4px; 259 | padding-right: 4px; 260 | } 261 | .list-item:hover{ 262 | box-shadow: 1px 1px 3px 2px rgba(223, 222, 222, 0.8); 263 | border-style: none; 264 | } 265 | 266 | .list-button:focus{ 267 | outline: none; 268 | } 269 | .pin-button:focus{ 270 | outline: none; 271 | } 272 | .list-button:hover{ 273 | background-color: black; 274 | color: white; 275 | border-radius: 5px; 276 | } 277 | .span1{ 278 | display: grid; 279 | grid-template-columns: 1fr auto; 280 | font-weight:700; 281 | font-size: 20px; 282 | color:hsl(0, 0%, 49%); 283 | width: auto; 284 | word-break: break-all; 285 | height: 35px; 286 | } 287 | .span1:focus{ 288 | outline: none; 289 | } 290 | .span2{ 291 | width:auto; 292 | word-break: break-all; 293 | overflow-wrap: break-word; 294 | color:#9c9a9a; 295 | } 296 | .span2:focus{ 297 | outline: none; 298 | } 299 | 300 | .pin{ 301 | height: 20px; 302 | width: 20px; 303 | justify-self: center; 304 | opacity:0.7; 305 | } 306 | .pinned{ 307 | margin-left: 180px; 308 | margin-right: 180px; 309 | margin-top: 50px; 310 | } 311 | .pinned h4{ 312 | font-family: 'Quicksand', sans-serif; 313 | font-size: 15px; 314 | font-weight:600; 315 | color:#808080; 316 | margin-left: 10px; 317 | } 318 | 319 | #li{ 320 | animation-name: up; 321 | animation-duration: .2s; 322 | } 323 | @keyframes up{ 324 | 0%{ 325 | transform: translateY(50px); 326 | opacity: 0%; 327 | } 328 | 100%{ 329 | transform: translateY(0px); 330 | opacity: 100%; 331 | } 332 | } 333 | .popup{ 334 | z-index:10; 335 | position: absolute; 336 | top: 0; 337 | left: 0; 338 | background-color:rgba(56, 55, 55, 0.6); 339 | height: 150vh; 340 | width: 100%; 341 | } 342 | .text{ 343 | height: 200px; 344 | width: 550px; 345 | display: grid; 346 | grid-template-rows: auto auto auto auto; 347 | grid-gap: 0px; 348 | background-color: white; 349 | border-radius: 10px; 350 | margin-top: 80px; 351 | margin-left: auto; 352 | margin-right: auto; 353 | animation: pop; 354 | animation-duration: 0.7s; 355 | padding-bottom: 12px; 356 | padding-top: 10px; 357 | } 358 | @keyframes pop{ 359 | 0%{ 360 | transform: translateZ(-20px) scaleX(0) scaleY(0) ; 361 | opacity: 0%; 362 | } 363 | 100%{ 364 | transform: translateZ(0px) scaleX(1) scaleY(1) ; 365 | opacity: 100%; 366 | } 367 | } 368 | .edit-title{ 369 | font-weight:700; 370 | font-size: 20px; 371 | color:hsl(0, 1%, 36%); 372 | border-style: none; 373 | width: auto; 374 | word-break: break-all; 375 | display: grid; 376 | grid-template-columns: 1fr auto; 377 | padding-left: 15px; 378 | padding-right: 15px; 379 | } 380 | .edit-title input{ 381 | font-family: 'Quicksand', sans-serif; 382 | font-weight:700; 383 | font-size: 22px; 384 | color:hsl(0, 1%, 36%); 385 | border-style: none; 386 | width: auto; 387 | word-break: break-all; 388 | } 389 | .edit-title button{ 390 | align-self: center; 391 | justify-self: end; 392 | background-color: white; 393 | border-radius: 50%; 394 | border-style: none; 395 | height: 32px; 396 | width:32px; 397 | } 398 | .edit-title button:hover{ 399 | background-color: rgb(233, 229, 229); 400 | } 401 | .edit-input{ 402 | font-family: 'Quicksand', sans-serif; 403 | font-weight:600; 404 | font-size: 15px; 405 | width:450px; 406 | border-style: none; 407 | word-break: break-all; 408 | overflow-wrap: break-word; 409 | color:#646464; 410 | padding-left: 18px; 411 | padding-right: 15px; 412 | } 413 | .edit-input:focus{ 414 | outline:none; 415 | } 416 | .edit-title input:focus{ 417 | outline: none; 418 | } 419 | .close, .delete{ 420 | margin-right: 12px; 421 | border-style: none; 422 | background-color: white; 423 | font-family: 'Quicksand', sans-serif; 424 | font-size: 16px; 425 | font-weight:600; 426 | color:#808080; 427 | width: 60px; 428 | justify-self: end; 429 | align-self: flex-end; 430 | padding-left: 4px; 431 | padding-right: 4px; 432 | border-radius: 5px; 433 | } 434 | .close:hover, .delete:hover{ 435 | background-color: black; 436 | color: white; 437 | } 438 | .trash-item{ 439 | border-style: solid; 440 | border-width: thin; 441 | border-color: rgba(214, 214, 214, 0.8); 442 | border-radius: 8px; 443 | display: grid; 444 | grid-template-rows: auto auto auto; 445 | grid-gap: 20px; 446 | background-color: white; 447 | font-family: 'Quicksand', sans-serif; 448 | font-size: 15px; 449 | font-weight:600; 450 | width: 200px; 451 | padding-left: 11px; 452 | padding-right:11px; 453 | padding-top: 8px; 454 | padding-bottom: 8px; 455 | margin-bottom: 20px; 456 | } 457 | .trash-item:hover{ 458 | box-shadow: 1px 1px 3px 2px rgba(223, 222, 222, 0.8); 459 | border-style: none; 460 | } 461 | .delete-forever{ 462 | display: none; 463 | height: 32px; 464 | width: 32px; 465 | background-color: white; 466 | border-radius: 50%; 467 | border-style: none; 468 | margin-left: auto; 469 | margin-right: auto; 470 | } 471 | .trash-item:hover .delete-forever{ 472 | display: block; 473 | } 474 | .delete-forever:hover { 475 | background-color: #e4e2e2; 476 | } 477 | .delete-forever:focus{ 478 | outline: none; 479 | } 480 | .del-forever{ 481 | height: 18px; 482 | width: 18px; 483 | padding-left: 3px; 484 | } --------------------------------------------------------------------------------