Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean code s1e1 #51

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

Sushkov-Maxim
Copy link

  1. Task: task Clean code s1e1 description
  2. Screenshot: image
  3. Deploy: task Clean code s1e1 deploy
  4. Done 08.01.2024 / deadline 09.01.2024
  5. Score: 45 / 45
    Basic 1.1 'Indentation' from html-and-css is followed throughout the entire project: tabs are not used, all indentations are made with a space character +2
    Basic 1.2 'Lower case writing' from html-and-css is implemented throughout the entire project: all HTML tags, value attributes, selectors and their values are written in lower case +2
    Basic 1.3 'Quotes in HTML/CSS document' from html-and-css is followed throughout the entire project: only double quotes are used in HTML and CSS files +2
    Basic 2.1 'Formatting' from html-and-css is carried out throughout the entire project: all block, table and list elements are moved to a separate line and indented in accordance with the nesting ladder +2
    Basic 2.2 'Document Type' from html-and-css is carried out throughout the project: doctype is present as the first tag in the html document and corresponds to the html5 +2 type
    Basic 2.3 'Mnemonic symbols' from html-and-css is followed throughout the entire project: mnemonic symbols are not used in html files +2
    Basic 2.4 The 'type' attribute from html-and-css is executed throughout the entire project: CSS styles and JS scripts are included without using this attribute +2
    Basic 3.5 'Indentations in blocks' from html-and-css is carried out throughout the entire project: the contents of all blocks are separated by +2 indentations
    Basic 3.6 'Space after property names' from html-and-css is enforced throughout the entire project: CSS property values are separated by spaces after the colon +2
    Basic 3.7 'Semicolon after properties' from html-and-css is enforced throughout the project: after each CSS rule there is a semicolon +2
    Basic 3.8 'Separating selectors and properties' from html-and-css is carried out throughout the entire project: each selector in the group enumeration of a CSS block is separated by a line break +2
    Extended 1.1 'Semantics' from html-and-css-extended is followed: all html tags are used in accordance with their purpose. At the same time, the use of div elements is reduced to a minimum, where possible they are replaced with semantic html5 elements +5
    Extended 1.2 'Alternative for multimedia' from html-and-css-extended is followed: each multimedia element (in this task img) has an alt attribute with meaningful content corresponding to the content of the elements. At the same time, purely decorative pictures have an empty alt value. +5
    Extended 2.1 'BEM' from html-and-css-extended is followed: all classes are named according to BEM notation +5
    Rules basic 3.1 - 3.4 have been corrected by rule extended 2.1, which is allowed according to the requirements of the task

Basic 3.1 'Uniform naming style for selectors (classes / id)' from html-and-css is followed throughout the entire project: all selectors are named in the same style, either in accordance with BEM, or all words are in lowercase and separated by a hyphen +2
Basic 3.2 'Meaningful names of identifiers and classes' from html-and-css is followed throughout the entire project: all class and identifier names have either meaningful names according to their functional meaning (!but NOT APPEARANCE!), or template name (also corresponding to the purpose of the element) +2
Basic 3.3 'Conciseness of identifier and class names' from html-and-css is followed throughout the entire project: all id and class names are clear, long enough to understand their purpose, and at the same time concise +2
Basic 3.4 'Tag selectors' from html-and-css is followed throughout the entire project: tag selectors are not used (except for intentionally resetting default styles) +2

Refactor HTML code:
- Improved code structure and formatting for better readability and maintainability
- Added appropriate alt attributes to image tags for accessibility
- Updated class names for consistency and clarity
- Fixed missing closing tags and added proper indentation
- Replaced uppercase tags with lowercase tags for HTML5 compliance
- Corrected attribute values for media and type attributes in link tags
- Changed script tag attribute from SRC to src
- Moved script tag to the end of the body for optimized page loading

Update CSS styles:
- Reorganized and optimized CSS styles for better readability and maintainability
- Adjusted container width and centered it horizontally
- Updated class names for clarity and consistency
- Added responsive styles for smaller screen sizes using media queries
- Aligned task items and improved spacing and margins
- Updated button styles and added hover effects
- Improved input field styles and focus state
- Added comments for better code documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant