ishimwepati / To-Do-list

This is my To Do list built using CSS, HMTL and ES6 with WebPack
https://ishimwepati.github.io/To-Do-list/dist/
MIT License
3 stars 0 forks source link

Use semantic elements #4

Open ishimwepati opened 1 year ago

ishimwepati commented 1 year ago

Consider using more semantic HTML elements to improve the code's readability and accessibility. For example, use

for the to-do list title and
for the main content.

ishimwepati commented 1 year ago

Add appropriate CSS reset: It's a good practice to include a CSS reset or use a CSS normalization library to ensure consistent default styles across different browsers. This can help avoid unexpected styling variations. In index.html

ishimwepati commented 1 year ago

Separate CSS and Preprocessor Syntax: My Codes is a mix regular CSS and Sass-like syntax (using $primary-color variable). It's essential that I use a CSS preprocessor like Sass to leverage variables effectively. If using Sass, make sure to preprocess the styles before using them in production. In index.html

ishimwepati commented 1 year ago

Minimize Nesting Levels It's good to keep the nesting levels in CSS to a minimum. Deeply nested styles can become difficult to manage and lead to specificity issues. Try to keep the nesting level to a reasonable limit.

ishimwepati commented 1 year ago

Responsiveness: I need to ensure that the layout and styles are responsive across different screen sizes. Consider using media queries to adapt the styles to various devices.

ishimwepati commented 1 year ago

I need to Improve Code Reusability: cause some parts of the code, like adding and updating tasks, are repeated in multiple event listeners. Consider refactoring those parts to reusable functions to avoid code duplication. in index.js