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

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

Conversation

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


Thank you for your hard work on this project! 😊 While your code meets many of the task requirements, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. Font Specification: The CSS specifies 'Roboto font', sans-serif;, which is incorrect. It should be 'Roboto', sans-serif;. Please ensure the font is correctly loaded in your HTML or via a CSS import.

  2. CSS Variable for Blue Color: The task requires using a CSS variable for the blue color, but the code directly uses the color #00acdc. Please define this color as a CSS variable.

  3. Header Height Alignment: The nav__link class has a height of 60px, but the line-height is set to 70px. This discrepancy may not align with the design specifications. Please ensure the header height is consistent with the design.

  4. Responsiveness: The use of fixed width, height, and left properties for .nav__link can lead to layout issues on different screen sizes. Consider using relative units or flexbox properties to ensure better responsiveness.

  5. Positioning Context: The use of left in the context of .logo might not have the intended effect since .logo is not positioned absolutely or relatively. Consider removing it or ensuring the positioning context is set.

Once these issues are resolved, your code will be in great shape! Keep up the great work and don't hesitate to reach out if you need any help. 🚀

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

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

src/style.css Outdated
margin: 0;
padding: 0;
font-family: 'Roboto font', sans-serif;

Choose a reason for hiding this comment

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

The font-family 'Roboto font' seems incorrect. It should be 'Roboto', sans-serif. Ensure that the font is correctly loaded in your HTML or via a CSS import.

src/style.css Outdated
margin: 0 40px;
width: 40px;
height: 40px;
left: 50px;

Choose a reason for hiding this comment

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

Using 'left' in this context might not have the intended effect since '.logo' is not positioned absolutely or relatively. Consider removing it or ensuring the positioning context is set.

src/style.css Outdated
Comment on lines 48 to 50
width: 1200px;
height: 60px;
left: -600px;

Choose a reason for hiding this comment

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

The use of fixed width, height, and left properties for '.nav__link' can lead to layout issues on different screen sizes. Consider using relative units or flexbox properties to ensure better responsiveness.

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 improve your page

  1. The height for the links must be 60px
image
  1. The blue color for all these links should only be on hover.
image

src/index.html Outdated
@@ -17,6 +17,84 @@
/>
</head>
<body>
<h1>Moyo header</h1>
<h1 class="heading">Moyo header</h1>

Choose a reason for hiding this comment

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

Remove it

Suggested change
<h1 class="heading">Moyo header</h1>

src/index.html Outdated
Comment on lines 29 to 37
<nav>
<ul class="nav__list">
<li>
<a
href="#apple"
class="is-active"
>
Apple
</a>

Choose a reason for hiding this comment

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

Add classes everywhere

Suggested change
<nav>
<ul class="nav__list">
<li>
<a
href="#apple"
class="is-active"
>
Apple
</a>
<nav class="nav">
<ul class="nav__list">
<li class="nav__item">
<a
href="#apple"
class="nav__link is-active"
>
Apple
</a>

src/index.html Outdated
Comment on lines 38 to 39
</li>
<li>

Choose a reason for hiding this comment

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

Add the blank line between the links

Suggested change
</li>
<li>
</li>
<li>

src/index.html Outdated
@@ -17,6 +17,84 @@
/>
</head>
<body>
<h1>Moyo header</h1>
<h1 class="heading">Moyo header</h1>
<header>

Choose a reason for hiding this comment

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

Suggested change
<header>
<header class="header">

src/style.css Outdated
Comment on lines 8 to 10
.heading {
text-align: center;
}

Choose a reason for hiding this comment

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

Suggested change
.heading {
text-align: center;
}

src/style.css Outdated
Comment on lines 12 to 17
header {
width: 100%;
display: flex;
align-items: center;
background-color: #f8f8f8;
}

Choose a reason for hiding this comment

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

Suggested change
header {
width: 100%;
display: flex;
align-items: center;
background-color: #f8f8f8;
}
.header {
width: 100%;
display: flex;
align-items: center;
padding: 0 50px;
box-sizing: border-box;
}


.is-active {
position: relative;
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

Choose a reason for hiding this comment

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

src/style.css Outdated
bottom: -15px;
}

[data-qa='hover'] {

Choose a reason for hiding this comment

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

Use only class as css selectors

Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

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

please, don't hesitate to ask how to fix those tests in the chat, you need to pass them

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!

content: '';
bottom: 0;
top: auto;
width: 37px;

Choose a reason for hiding this comment

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

Suggested change
width: 37px;
width: 100%;


.is-active {
position: relative;
color: #00acdc;

Choose a reason for hiding this comment

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

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