├── README.md ├── css └── main.css ├── img └── favicon.ico ├── index.html └── js └── main.js /README.md: -------------------------------------------------------------------------------- 1 | ## .preview 2 |  3 | 4 | ## .features 5 | - [x] Show tasks list 6 | - [x] Add new task 7 | - [ ] Complete task 8 | - [x] Delete task 9 | - [x] Edit task 10 | - [x] Clear all tasks 11 | - [ ] Clear complete tasks 12 | - [x] Save on local storage 13 | - [x] Reverse sort by id 14 | - [x] Show message if not task 15 | - [x] Show toast when add, delete task 16 | - [x] Change alert box to modal 17 | - [x] Custom scrollbar 18 | - [x] Responsivity 19 | 20 | ## .tools 21 | - Css Framework: [Semantic UI](https://semantic-ui.com) 22 | - Toast or Notification: [Noty](https://ned.im/noty) 23 | 24 | ## .contact 25 | - Email: [dev.mehdineysi@gmail.com](mailto:dev.mehdineysi@gmail.com) 26 | - Instagram: [@neysidev](https://instagram.com/neysidev) 27 | - Twitter: [@neysidev](https://twitter.com/neysidev) 28 | -------------------------------------------------------------------------------- /css/main.css: -------------------------------------------------------------------------------- 1 | /* Variables */ 2 | :root { 3 | --dark: #1b1c1d; 4 | --blue: #2185d0; 5 | --green: #1ebc30; 6 | --red: #db2828; 7 | --white: #ffffff; 8 | --gray: #babac0; 9 | --secondary: #fbfdff; 10 | } 11 | 12 | /* Default Settings */ 13 | * { 14 | padding: 0; 15 | margin: 0; 16 | box-sizing: border-box; 17 | } 18 | body { 19 | color: var(--dark); 20 | background: var(--secondary); 21 | font-family: 'Lato', sans-serif; 22 | } 23 | .ui.grid + .grid { 24 | margin-top: 0; 25 | } 26 | 27 | /* Classes */ 28 | body::-webkit-scrollbar { 29 | background-color: var(--secondary); 30 | width: 16px; 31 | } 32 | body::-webkit-scrollbar-track { 33 | background-color: var(--secondary); 34 | } 35 | body::-webkit-scrollbar-thumb { 36 | background-color: var(--gray); 37 | border-radius: 16px; 38 | border: 4px solid var(--white); 39 | } 40 | 41 | /* Header */ 42 | .main-header { 43 | color: var(--white); 44 | background: var(--blue); 45 | padding: 1.5rem 0; 46 | text-align: center; 47 | } 48 | 49 | /* Add Task */ 50 | #add-task { 51 | width: 70%; 52 | margin: 0 auto; 53 | margin-top: 2rem; 54 | } 55 | #add-task input { 56 | margin: 1.5rem auto; 57 | } 58 | 59 | /* Buttons */ 60 | #buttons { 61 | width: 70%; 62 | margin: 0 auto; 63 | margin-bottom: 3rem; 64 | } 65 | 66 | /* Tasks List */ 67 | #tasks-list { 68 | margin: 0 auto; 69 | width: 70%; 70 | list-style: none; 71 | } 72 | #tasks-list li { 73 | width: 100%; 74 | } 75 | #tasks-list li .remove, 76 | #tasks-list li .edit { 77 | opacity: 0; 78 | transition: all 0.3s ease; 79 | } 80 | #tasks-list li:hover .remove, 81 | #tasks-list li:hover .edit { 82 | opacity: 1; 83 | } 84 | #tasks-list li .column:last-child { 85 | text-align: right; 86 | } 87 | #tasks-list li i { 88 | cursor: pointer !important; 89 | } 90 | 91 | /* Alert */ 92 | .alert { 93 | width: 70%; 94 | margin: 0 auto; 95 | margin-bottom: 1rem; 96 | text-align: center; 97 | padding: 0.75rrem 1.25rrem; 98 | border-radius: 10px; 99 | line-height: 1.6rem; 100 | } 101 | .alert-warning { 102 | color: #856404; 103 | background-color: #fff3cd; 104 | border-color: #ffeeba; 105 | } 106 | 107 | /* Noty */ 108 | .noty_theme__metroui.noty_bar .noty_body { 109 | background: var(--green); 110 | color: var(--white); 111 | border-radius: 0.28571429rem; 112 | box-shadow: 0 0 0 1px var(--green) inset, 0 0 0 0 transparent; 113 | } 114 | .noty_theme__metroui.noty_type__error { 115 | background: none; 116 | } 117 | .noty_theme__metroui.noty_bar.noty_type__error .noty_body { 118 | background: var(--red); 119 | color: var(--white); 120 | border-radius: 0.28571429rem !important; 121 | box-shadow: 0 0 0 1px var(--red) inset, 0 0 0 0 transparent; 122 | } 123 | 124 | /* Responsive */ 125 | @media screen and (max-width: 770px) { 126 | #add-task, 127 | #buttons, 128 | #tasks-list { 129 | width: 100%; 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neysidev/todo-list/28551eaf2b0faea4af5500b5fd0e43247ee150f5/img/favicon.ico -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |Are you sure you want to delete your task?
99 |Are you sure you want to clear all tasks?
118 |Are you sure you want to clear completed tasks?
141 |