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

add task solution #5352

Closed
wants to merge 4 commits into from
Closed

add task solution #5352

wants to merge 4 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.

Hey there! 👋 It looks like there are a few important aspects to address in your code. Remember to use semantic tags correctly, provide meaningful class names, and ensure proper indentation for better readability. Also, don't forget to include fallback fonts and avoid using the * selector for performance reasons. Keep up the good work, and with a bit of polishing, your code will be top-notch! 🚀

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

src/index.html Outdated
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet"
/>
>

Choose a reason for hiding this comment

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

There is an extraneous '>' character at the end of line 17 which should be removed.

src/index.html Outdated
<body>
<h1>Moyo header</h1>
</body>
<header>

Choose a reason for hiding this comment

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

The 'header' element should be inside the 'body' tag, not directly under the 'html' tag.

src/index.html Outdated
src="images/logo.png"
alt="logo"
/>
</a>

Choose a reason for hiding this comment

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

The 'alt' attribute for images should describe the image content, not just say 'logo'. For example, 'Company Logo' would be more descriptive.

src/index.html Outdated
/>
</a>
<nav>
<ul>

Choose a reason for hiding this comment

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

Add empty lines between multiline sibling blocks of HTML to improve readability. There should be an empty line before and after the 'ul' element.

src/index.html Outdated
Apple
</a>
</li>
<li><a href="#">Samsung</a></li>

Choose a reason for hiding this comment

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

Remember about correct indentation between parent and child elements. The 'a' tags within the 'li' elements should be indented.

src/index.html Outdated
<li><a href="#">Tablets</a></li>
<li><a href="#">Photo</a></li>
<li><a href="#">Video</a></li>
</ul>

Choose a reason for hiding this comment

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

Class names represent the meaning of the content. Instead of generic classes like 'is-active', use more descriptive class names that represent the content or the role of the element, such as 'nav__link--active'.

src/style.css Outdated
Comment on lines 5 to 8
* {
margin: 0;
padding: 0;
box-sizing: border-box;

Choose a reason for hiding this comment

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

Don't use the * selector as it impacts performance. It is better to set styles only for elements that require them.

src/style.css Outdated
Comment on lines 11 to 22
header {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #fff;
margin: 0;
font-family: Roboto, sans-serif;
font-size: 12px;
font-weight: 500;
line-height: 60px;
text-transform: uppercase;

Choose a reason for hiding this comment

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

Avoid fixing container sizes such as width: 100%; on the header unless there is a specific requirement for it. Let the content define the size to prevent overflow or accidental scroll bars.

src/style.css Outdated
margin: 0;
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 in the font-family property to ensure text is displayed with a default font in case the primary font fails to load.

src/style.css Outdated
Comment on lines 44 to 47
ul {
display: flex;
align-items: center;
list-style: none;

Choose a reason for hiding this comment

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

Don't use tag names for styling. Instead, use classes to style your elements. For example, apply a class to the ul element and style that class.

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 👍
Don't forget about the checklisst.
Also, fix your demo and test report links in PR as they point to the repository itself instead

src/index.html Show resolved Hide resolved
src/style.css Show resolved Hide resolved
@Krrampuss Krrampuss closed this by deleting the head repository Sep 14, 2024
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