-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
made header, waiting for feedback #6192
base: master
Are you sure you want to change the base?
Conversation
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 most of the task requirements, there are a few critical issues that need to be addressed before we can approve the pull request:
-
Font Configuration: The task requires using only the Roboto font with specific settings. Currently, the Exo 2 font is included, which is not required. Please remove it to comply with the task requirements.
-
HTML Syntax: The
link
tag forfonts.gstatic.com
is missing a closing tag. This is important for ensuring proper HTML syntax.
These issues are critical as they directly impact the core requirements of the task. Once these are resolved, your code will be in great shape! Keep up the good work, and feel free to reach out if you have any questions. 👍
✨ 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/index.html
Outdated
<link rel="preconnect" href="https://fonts.gstatic.com" | ||
crossorigin="anonymous"> |
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 link
tag for fonts.gstatic.com
is missing a closing tag. It should be self-closing like this: <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />
.
src/index.html
Outdated
<a class="menu-link" href="index.html">Samsung</a> | ||
</li> | ||
<li> | ||
<a class="menu-link"href="index.html">Smartphones</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.
There is a missing space between class="menu-link"
and href="index.html"
. Adding a space will improve readability and maintain consistency with other anchor tags.
src/style.css
Outdated
body { | ||
font-family: Roboto , 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.
There is an extra space before the comma in the font-family
property. It should be font-family: Roboto, sans-serif;
to ensure proper font fallback.
src/style.css
Outdated
font-weight: 500; | ||
font-size: 15px; | ||
font-style: normal; | ||
font-variation-settings:"wdth" 100; |
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.
There should be a space after the colon in font-variation-settings:"wdth" 100;
. It should be font-variation-settings: "wdth" 100;
for consistency and readability.
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 job on addressing the previous issues! 🎉 Your code now correctly includes only the Roboto font with the specified settings, and the HTML syntax has been fixed. The .stylelintrc.json
and index.html
files are well-configured and meet the task requirements.
However, there's a minor issue with the font-variation-settings
property in your style.css
file. The Roboto font is not a variable font with a width axis, so the value 'wdth' 10
might not be appropriate. Consider removing or adjusting this property to ensure proper font rendering.
Overall, your implementation is correct, and the task requirements are met. This decision is made to help you move forward with your learning. Please review the comments to improve your code, and remember to address any critical issues in the future to avoid similar problems. Keep up the good work and continue learning from your experiences! 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
font-weight: 500; | ||
font-size: 12px; | ||
font-style: normal; | ||
font-variation-settings: 'wdth' 10; |
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-variation-settings
property is used for variable fonts to adjust specific axes. The value 'wdth' 10
might not be appropriate for the Roboto font, as it is not a variable font with a width axis. Consider removing or adjusting this property.
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.
Good job 👍
Let's improve your code
- [DEMO LINK](https://denysherych.github.io/layout_moyo-header/) | ||
- [TEST REPORT LINK](https://denysherych.github.io/layout_moyo-header/report/html_report/) |
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.
@@ -17,6 +31,88 @@ | |||
/> | |||
</head> | |||
<body> | |||
<h1>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"> |
@@ -17,6 +31,88 @@ | |||
/> | |||
</head> | |||
<body> | |||
<h1>Moyo header</h1> | |||
<header> | |||
<div class="menu"> |
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.
This wrapper is redundant
<div class="menu"> |
</a> | ||
<nav class="nav"> |
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.
</a> | |
<nav class="nav"> | |
</a> | |
<nav class="nav"> |
</li> | ||
<li class="nav-item"> |
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 class="nav-item"> | |
</li> | |
<li class="nav-item"> |
max-height: 40px; | ||
} | ||
|
||
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.
Use only class selector
background-color: white; | ||
align-items: center; | ||
justify-content: space-between; | ||
margin: 0 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.
Use padding for the horizontal indents and move it to the header
I am not sure how to do exact same size of the elements as it is on figma muckup