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

Develop #5380

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Develop #5380

wants to merge 15 commits into from

Conversation

Krrampuss
Copy link

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your progress is commendable! 🌟 While the Pull Request has been approved, please take a moment to address the points mentioned in the comments. These include using fallback fonts, selecting elements appropriately in CSS, avoiding unnecessary classes, being cautious with the universal selector for performance reasons, formatting href attributes correctly, providing descriptive alt text for images, and keeping your HTML attributes neatly formatted. Keep up the good work, and use these tips to enhance your code in the future! 💪 Remember, refining your code is a continuous journey. Happy coding! 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines +2 to +4
<html
class="html"
lang="en"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The class attribute on the html tag is not necessary unless it's being used for a specific purpose in CSS or JavaScript. If it's not used, it's better to remove it to keep the markup clean.

Comment on lines +36 to +40
<a href="#">
<img
class="img"
src="images/logo.png"
alt="MOYO_main_logo"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The href attribute in the anchor tag should not be empty or contain just '#'. If this is a placeholder, consider adding a comment or using a more descriptive placeholder. Also, the alt attribute should describe the image content, 'MOYO_main_logo' could be more descriptive to improve accessibility and SEO.

Comment on lines +46 to +49
<a
class="nav__link is-active"
href="#"
>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using spaces in the href attribute of an anchor tag. Anchor links should start with the # symbol followed by a meaningful identifier corresponding to an id of an element on the page.

Comment on lines +1 to +4
* {
margin: 0;
padding: 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use * selector (it impacts performance). Set styles only for elements that require them. Instead, you can set margin: 0 and padding: 0 in the body tag if you need to reset the default browser styling.

Comment on lines +6 to +8
.html {
--header-link-color: #00acdc;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not common practice to create a class named .html. If you want to define CSS variables or set styles for the entire document, you should place them within the :root selector.

Comment on lines +10 to +12
.body {
margin: 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the .html class, it is unusual to have a .body class. If you are trying to style the <body> element, you should use the body tag selector.

Comment on lines +14 to +16
.img {
display: block;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using tag names for styling like .img. If you need to apply a style to all <img> elements, it's better to use the img tag directly, unless there's a specific reason to use a class.

justify-content: space-between;
align-items: center;
padding: 0 50px;
font-family: Roboto, sans-serif;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to use fallback fonts - alternative font-family in case the main one doesn't work. For example, font-family: Roboto, Arial, sans-serif;.

Copy link

@BudnikOleksii BudnikOleksii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work 👍

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.

3 participants