-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
base: master
Are you sure you want to change the base?
add task solution #5805
Conversation
katerinaasss
commented
Dec 11, 2024
- DEMO LINK
- TEST REPORT LINK
There was a problem hiding this 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:
-
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. -
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. -
Header Height Alignment: The
nav__link
class has aheight
of60px
, but theline-height
is set to70px
. This discrepancy may not align with the design specifications. Please ensure the header height is consistent with the design. -
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. -
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
width: 1200px; | ||
height: 60px; | ||
left: -600px; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/index.html
Outdated
@@ -17,6 +17,84 @@ | |||
/> | |||
</head> | |||
<body> | |||
<h1>Moyo header</h1> | |||
<h1 class="heading">Moyo header</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove it
<h1 class="heading">Moyo header</h1> |
src/index.html
Outdated
<nav> | ||
<ul class="nav__list"> | ||
<li> | ||
<a | ||
href="#apple" | ||
class="is-active" | ||
> | ||
Apple | ||
</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add classes everywhere
<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
</li> | ||
<li> |
There was a problem hiding this comment.
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
</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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<header> | |
<header class="header"> |
src/style.css
Outdated
.heading { | ||
text-align: center; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.heading { | |
text-align: center; | |
} |
src/style.css
Outdated
header { | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
background-color: #f8f8f8; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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'] { |
There was a problem hiding this comment.
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
There was a problem hiding this 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
There was a problem hiding this 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
width: 37px; | |
width: 100%; |
|
||
.is-active { | ||
position: relative; | ||
color: #00acdc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.