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

Moyo Header #5376

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

Moyo Header #5376

wants to merge 2 commits into from

Conversation

rssydorenko
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 your Pull Request! You've made some good progress. Just a few minor things to keep in mind for the future: try to stick to BEM naming conventions for your classes, remember to include fallback fonts, avoid using the * selector for better performance, and watch out for spaces in your href attributes. Keep up the good work! 👍🎉

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

src/index.html Outdated
</a>

<nav class="nav">
<ul class="nav_list">

Choose a reason for hiding this comment

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

Class name 'nav_list' should be 'nav__list' to maintain BEM naming conventions which represent the meaning of the content and not the styles or tag names.

src/index.html Outdated

<nav class="nav">
<ul class="nav_list">
<li class="nav_item">

Choose a reason for hiding this comment

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

Class name 'nav_item' should be 'nav__item' to maintain BEM naming conventions which represent the meaning of the content and not the styles or tag names.

src/index.html Outdated
Comment on lines 49 to 52
<a
href="#apple"
class="nav_link is-active"
>

Choose a reason for hiding this comment

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

Class name 'nav_link' should be 'nav__link' to maintain BEM naming conventions which represent the meaning of the content and not the styles or tag names.

src/index.html Outdated
Comment on lines 77 to 81
href="#laptops-computers"
class="nav_link"
data-qa="hover"
>
Laptops & Computers

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 the <a> tag's href property. The correct value should be '#laptops-computers' without the space.

src/style.css Outdated
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.

src/style.css Outdated

html {
font-size: 16px;
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;.

src/style.css Outdated
width: 40px;
}

.nav_list {

Choose a reason for hiding this comment

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

Class names should represent the meaning of the content, not the styles or tag names. Here, .nav_list should be .nav__list to follow the BEM naming convention.

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Good job 👍
Let's make your code better

src/style.css Outdated
Comment on lines 23 to 24
max-width: 1200px;
margin: 0 auto;

Choose a reason for hiding this comment

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

Suggested change
max-width: 1200px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;

src/style.css Outdated
}

.nav_item:hover {
color: #00acdc;

Choose a reason for hiding this comment

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

Create a variable for repeated color and use it everywhere

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Well done! 🔥

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