-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Task solution(develop) #6105
base: master
Are you sure you want to change the base?
Task solution(develop) #6105
Conversation
aholubko
commented
Feb 9, 2025
- 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! 😊 There are a few critical issues that need to be addressed before we can approve the pull request. The href
attribute for the "Laptops & Computers" link contains a space, which is not valid in URLs and affects the functionality. Additionally, the CSS file specifies the font family incorrectly, which does not meet the task requirements. Please make these changes to ensure your code meets the core requirements. Once these are resolved, your work will be in great shape! Keep up the great effort! 🚀
✨ 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
<li><a href="#samsung">SAMSUNG</a></li> | ||
<li><a href="#smartphones">SMARTPHONES</a></li> | ||
<li data-qa="hover"> | ||
<a href="#laptops & Computers">LAPTOP & COMPUTERS</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.
The 'href' attribute value '#laptops & Computers' contains a space, which is not valid in URLs. Consider replacing the space with '%20' or using a hyphen or underscore.
src/index.html
Outdated
> | ||
<img | ||
src="./images/logo.png" | ||
alt="logo" |
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.
Consider providing a more descriptive 'alt' attribute for the logo image to improve accessibility. For example, 'Company Logo' or 'Moyo Logo'.
font-optical-sizing: auto; | ||
font-weight: 500; | ||
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.
The 'font-variation-settings' property may not be supported in all browsers. Consider providing a fallback font style for better cross-browser compatibility.
src/style.css
Outdated
|
||
.header { | ||
font-family: Roboto, serif; | ||
font-optical-sizing: auto; |
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-optical-sizing' property may not be supported in all browsers. Consider providing a fallback font size or style for better cross-browser compatibility.
src/style.css
Outdated
font-variation-settings: 'wdth' 100; | ||
color: black; | ||
height: 60px; | ||
font-size: 12.3px; |
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-size' is set to 12.3px, which is an uncommon value. Consider using a standard font size like 12px or 14px for consistency.
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! 🎉 The HTML and CSS files have been updated to meet the task requirements. The href
attribute for the "Laptops & Computers" link is now correctly formatted, and the font family in the CSS is specified as "Roboto" with appropriate fallbacks.
While the code meets the task requirements, remember to review the comments to further improve your code. Addressing any critical issues in the future will help you avoid similar problems and enhance your learning experience. Keep up the good work and continue to learn from your mistakes! 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
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
<nav class="nav"> | ||
<ul> | ||
<li> | ||
<a | ||
href="#apple" | ||
class="is-active" |
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 class="nav"> | |
<ul> | |
<li> | |
<a | |
href="#apple" | |
class="is-active" | |
<nav class="nav"> | |
<ul class="nav__list"> | |
<li class="nav__item"> | |
<a | |
href="#apple" | |
class="nav__link is-active" |
src/index.html
Outdated
APPLE | ||
</a> | ||
</li> | ||
<li><a href="#samsung">SAMSUNG</a></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.
Fix code styles and add classes everywhere
<li><a href="#samsung">SAMSUNG</a></li> | |
<li class="nav__item"> | |
<a href="#samsung" class="nav__link">SAMSUNG</a> | |
</li> |
src/style.css
Outdated
position: relative; | ||
} | ||
|
||
.nav a.is-active::after { |
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.
.nav a.is-active::after { | |
.is-active::after { |
src/style.css
Outdated
} | ||
|
||
.nav a:hover { | ||
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
margin-left: 50px; | ||
} | ||
|
||
.nav a: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.
.nav a:hover { | |
.nav__link: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.
Seems like there are still problems with your deploy. Please feel free to ask for help in fe_chat.
align-items: center; | ||
margin: 0; | ||
padding: 0; | ||
height: 60px; |
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 height should be setted on link instead of list.
display: flex; | ||
width: 40px; | ||
height: 40px; | ||
margin-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.
horizontal margin should be placed on header as padding
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.
Hi, the demo link still not fixed pls feel free in the fe_chat for help