-
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
Develop #5711
base: master
Are you sure you want to change the base?
Develop #5711
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! 😊 There are a few critical issues that need to be addressed before we can approve the pull request. Specifically, the repeated use of placeholder URLs in the href
attributes is a significant issue, as it affects the functionality of the navigation links. Additionally, there are inconsistencies between the HTML and CSS class names, and incorrect CSS selectors that need to be corrected to ensure the styles are applied as intended. Please make these changes, and feel free to reach out if you need any help! Keep up the great work! 🚀
✨ 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.
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.
Review Summary
Great effort on your project! 🎉 While your code is on the right track, there are a few critical areas that need attention to enhance both functionality and styling:
-
Placeholder URLs: The
href
attributes in your navigation links are still using placeholder URLs (index.html
). These should be updated to reflect the actual sections or pages they are intended to link to, such as 'video', 'photo', 'tablets', 'gadgets', 'laptops & computers', 'smartphones', 'samsung', and 'apple'. -
CSS Selectors: Avoid using the universal selector
*
to reset margins and paddings due to performance concerns. Instead, consider using more specific selectors. -
Class Name Consistency: Ensure that the class names in your HTML match those defined in your CSS file. For example, the class
blue
is used in the HTML but not defined in the CSS. This inconsistency can lead to styling issues. -
Semantic Tags: Make sure to use semantic HTML tags like
<header>
,<nav>
,<ul>
,<li>
, and<a>
to improve the structure and accessibility of your webpage. -
CSS Styling: Use class selectors for styling instead of tag names, except for
html
andbody
. This will help maintain a clean and efficient stylesheet. -
CSS Fallback Fonts: Include fallback fonts in your
font-family
declarations to ensure consistent typography across different browsers and devices. -
Vertical Margins: Maintain consistency with vertical margins by adding only top or bottom margins, but not both, to avoid layout issues.
-
Active Link Styling: Ensure that the
a.is-active::after
selector is applied correctly in the HTML to style active links as intended.
By addressing these points, you will improve the overall quality and functionality of your project. Remember, learning from these observations will help you grow as a developer. Keep up the good work and continue refining your skills! 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
src/index.html
Outdated
|
||
<nav> | ||
<ul class="nav__list"> | ||
<li class="nav 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.
There is a class name inconsistency here. Ensure that the class names used in the HTML match those defined in the CSS file to avoid styling issues.
src/style.css
Outdated
/* top: 10px; */ | ||
} | ||
|
||
a.blue { |
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 class a.blue
is used in the HTML, but ensure that it is consistently applied and matches the intended design. Verify that all elements using this class are styled as expected.
color: var(--main-color); | ||
} | ||
|
||
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.
The a.is-active::after
selector is used to style active links. Ensure that this class is applied correctly in the HTML to the intended elements to achieve the desired effect.
src/index.html
Outdated
<body> | ||
<h1>Moyo header</h1> | ||
<div class="container"> |
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.
Container (additional wrapper is redundant here)
src/index.html
Outdated
|
||
<nav> | ||
<ul class="nav__list"> | ||
<li class="nav 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.
check BEM rules - you can't use nav
class here
set nav
class to nav tag and remove from items
src/index.html
Outdated
<ul class="nav__list"> | ||
<li class="nav nav__item"> | ||
<a | ||
class="nav__link is-active blue" |
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.
do not add a separate blue
class - you already have is-active
for it
src/style.css
Outdated
margin: 0; | ||
padding: 0; |
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.
do not reset margin and padding in *
selector
Do it for the list of tags you really need
src/style.css
Outdated
|
||
/* width: 100%; */ | ||
margin-bottom: 20px; | ||
width: 1024px; |
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.
do not set width here (in figma you just have examples on how it looks on different screen sizes)
src/style.css
Outdated
.nav__list { | ||
display: flex; | ||
align-items: center; | ||
margin: 20px; |
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.
Do you need it? - redundant
Set correct height for each link
src/style.css
Outdated
text-transform: uppercase; | ||
justify-content: center; | ||
margin-right: 20px; | ||
padding-bottom: 23px; |
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.
set correct height instead
.nav__item { | ||
text-transform: uppercase; | ||
justify-content: center; | ||
margin-right: 20px; |
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 last item shouldn't have margin-right (read about :last-child) - it's said in description
src/style.css
Outdated
.nav__link { | ||
display: block; | ||
text-decoration: none; | ||
padding: 22px 0 0; |
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.
set correct height instead
src/style.css
Outdated
content: ''; | ||
position: relative; | ||
display: block; | ||
top: 12px; |
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.
it will be easier to place it using bottom
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
/* * { | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; |
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 comments
/* * { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; |
src/style.css
Outdated
body { | ||
margin: 0; | ||
font-family: Roboto, sans-serif, Arial, Helvetica; | ||
display: flex; |
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.
Redundant
display: flex; |
src/style.css
Outdated
/* width: 100%; */ | ||
margin-bottom: 20px; | ||
width: 1024px; |
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: 100%; */ | |
margin-bottom: 20px; | |
width: 1024px; | |
width: 100%; |
src/style.css
Outdated
/* display: flex; */ | ||
} | ||
|
||
a.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.
Fix it everywhere
a.is-active { | |
.is-active { |
src/style.css
Outdated
|
||
a.is-active::after { | ||
content: ''; | ||
position: relative; |
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 absolute position here for this line
src/style.css
Outdated
position: relative; | ||
display: block; | ||
bottom: -17px; | ||
width: 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.
width: 100%; /* Ширина лінії дорівнює ширині тексту */ | |
width: 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.
i did all changes and everything broke at all :)))
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-bottom: 20px; | ||
width: 1024px; */ |
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 all comments
/* margin-bottom: 20px; | |
width: 1024px; */ |
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 start.
Try to pass all tests.
Check comments - they can help to fix tests.
If will have any questions - feel free to ask in chat.
And I see such behavior in demo link.
Screen.Recording.2024-12-19.at.14.21.16.mov
align-items: center; | ||
list-style: none; | ||
justify-content: 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.
ul has default vertical margins and left paddins. you need to reset them
height: 15px; | ||
color: #000; | ||
justify-content: center; | ||
align-items: 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.
nav link should be on full width of height. add vettical padings and line-heitght which should make height 60px
color: var(--main-color); | ||
} | ||
|
||
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.
line under first link not visible. add position relative for .is-active class.
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 in the chat for some help how to pass tests
DEMO LINK
TEST REPORT LINK
Header height is set in 1 place (for the links)
[X ] Content is vertically centered (for any header height)
CSS is used to show all letters in Uppercase (don't type them in HTML)
Logo is an image wrapped with a link
CSS Variable is used for a blue color
Pseudo-element is used for a blue line below the active link
Code follows all the Code Style Rules ❗️