agamjotsingh18 / codesetgo

Open Source Website of CodeSetGo
https://codesetgo.netlify.app/
MIT License
76 stars 236 forks source link

Refactor CSS code for improved organization and readability ✨ #691

Closed Nishitbaria closed 11 months ago

Nishitbaria commented 11 months ago

File Name: assets/css/join-us.css

Description: The current CSS code in our project could benefit from refactoring to enhance its organization and readability. The code contains repetitive properties and could be better organized to improve maintenance and collaboration among developers. Here are the proposed changes:

  1. Group Common Styles: We will consolidate common styles that are applied to multiple elements under relevant parent selectors. This will reduce repetition and make it easier to manage those styles.

  2. Alphabetical Order: To enhance readability and navigation, we will rearrange the CSS classes in alphabetical order. This will allow developers to find specific styles more quickly and maintain consistency.

  3. Remove Redundant Properties: We noticed that the .joinuser and .userupdate classes have duplicate padding: 20px; properties. We will remove the redundant one to keep the code clean and concise.

  4. Consolidate Box Shadow: Both .joinuser and .userupdate have identical box shadow properties. We will combine them into a single rule to eliminate duplication.

  5. Add Comments for Clarity: To improve code comprehension, we will insert descriptive comments that group related styles together, such as "User Show Styles" and "User Update Styles."

  6. Ensure Color Consistency: For a more consistent user interface, we will use #2ec18a for the background of .userAddButton and #5959ff for .btnsubmit.

By implementing these changes, we aim to make the CSS codebase more organized, easier to read, and maintainable. This will enhance collaboration among developers and improve the overall quality of our project.

Nishitbaria commented 11 months ago

Hey @agamjotsingh18 Please assign me this issue

agamjotsingh18 commented 11 months ago

Sure @Nishitbaria