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 #5378

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

Conversation

miroshnykow
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.

Great job on the Pull Request! 🌟 There are a few minor issues pointed out, such as styling with tag names, missing fallback fonts, and using the * selector, which can be improved in future work. However, none of these issues are critical enough to warrant a request for changes. Keep up the good work, and consider these tips to enhance your code quality for the next time! 👍

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

Comment on lines +32 to +41
<header class="header">
<a
class="logo"
href="#"
>
<img
src="/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.

Remember about correct indentation between parent and child elements. The img element should have a 2-space offset from the a element.

Comment on lines +37 to +39
<img
src="/src/images/logo.png"
alt="logo"

Choose a reason for hiding this comment

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

The alt attribute should describe the image content, not just say 'logo'. It should ideally describe what the logo is about or what company it represents.

Comment on lines +44 to +112
<ul class="nav__list">
<li class="nav__item">
<a
href="#"
class="nav__link is-active"
>
Apple
</a>
</li>
<li class="nav__item">
<a
href="#"
class="nav__link"
>
Samsung
</a>
</li>
<li class="nav__item">
<a
href="#"
class="nav__link"
>
Smartphones
</a>
</li>
<li
class="nav__item"
data-qa="hover"
>
<a
href="#"
class="nav__link"
>
Laptops & Computers
</a>
</li>
<li class="nav__item">
<a
href="#"
class="nav__link"
>
Gadgets
</a>
</li>
<li class="nav__item">
<a
href="#"
class="nav__link"
>
Tablets
</a>
</li>
<li class="nav__item">
<a
href="#"
class="nav__link"
>
Photo
</a>
</li>
<li class="nav__item">
<a
href="#"
class="nav__link"
>
Video
</a>
</li>
</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. There should be an empty line between each li element to improve readability.

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

Choose a reason for hiding this comment

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

Don't use spaces in <a> tag's href property. If these are placeholder links, consider using # without any following space.

Comment on lines +1 to +5
* {
margin: 0;
padding: 0;
box-sizing: border-box;
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 * selector (it impacts performance). Set styles only for elements that require them. Zeroing out your margins, paddings or other styles with '*' is still inefficient for the browser.

display: flex;
justify-content: space-between;
align-items: center;
font-family: Roboto, system-ui;

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, 'Roboto', Arial, sans-serif.

Comment on lines +40 to +41
.nav__item {
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 (except html and body). Style all elements using .class. Also, the .nav__item class already sets list-style: none;, so it's redundant to declare it here again.

Copy link

@anastasiiavorobiova anastasiiavorobiova left a comment

Choose a reason for hiding this comment

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

Great work! Almost done!

src/style.css Outdated
border-radius: 2px;
}

.nav__item[data-qa='hover']:hover .nav__link {

Choose a reason for hiding this comment

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

Suggested change
.nav__item[data-qa='hover']:hover .nav__link {
.nav__link::hover {

src/style.css Outdated
.nav__item[data-qa='hover']:hover .nav__link {
color: #00acdc;
}
/* stylelint-disable-next-line rule-empty-line-before */

Choose a reason for hiding this comment

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

Suggested change
/* stylelint-disable-next-line rule-empty-line-before */

src/style.css Outdated
}

.is-active {
color: #00acdc;

Choose a reason for hiding this comment

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

Consider using variables for repeating colors

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.

5 participants