-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 #4691
base: master
Are you sure you want to change the base?
add task solution #4691
Conversation
Pjankusha
commented
Mar 6, 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.
if you have some problems with tests then feel free to ask for some help in the chat
I added changes, please review |
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.
your demo link doesn't work and all tests failed, don't hesitate to ask for some help in the chat
✅Header height is set in 1 place (for the links) |
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.
looking good, left a few suggestions
src/index.html
Outdated
<nav class="nav"> | ||
<ul class="nav__list"> | ||
<li class="nav__item"> | ||
<a href="#" class="nav__link is-active blue-link">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.
I believe that you don't need this class
<a href="#" class="nav__link is-active blue-link">Apple</a> | |
<a href="#" class="nav__link 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.
is-active
is enough for such case
src/style.css
Outdated
width: 100%; | ||
margin: 0; | ||
padding:0; | ||
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.
width: 100%; | |
margin: 0; | |
padding:0; | |
font-family: Roboto, sans-serif; | |
margin: 0; | |
font-family: Roboto, sans-serif; |
src/style.css
Outdated
.nav__link { | ||
display: flex; | ||
position: relative; | ||
height: 60px; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
text-decoration: none; | ||
color: var(--main-text-color); | ||
} |
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 { | |
display: flex; | |
position: relative; | |
height: 60px; | |
justify-content: center; | |
align-items: center; | |
flex-direction: column; | |
text-decoration: none; | |
color: var(--main-text-color); | |
} | |
.nav__link { | |
position: relative; | |
height: 60px; | |
text-decoration: none; | |
color: var(--main-text-color); | |
} |
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 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.
You can try just to add 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.
src/style.css
Outdated
.nav__item{ | ||
margin-left: 20px; | ||
} | ||
|
||
.nav__list > :first-child{ | ||
margin-left: 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.
you can just use not:first-child
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 suggestion. It is looks better.
src/style.css
Outdated
.blue-link, | ||
.nav__link:hover { | ||
color: var(--edit-text-color); | ||
} |
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.
.blue-link, | |
.nav__link:hover { | |
color: var(--edit-text-color); | |
} | |
.is-active, | |
.nav__link:hover { | |
color: var(--edit-text-color); | |
} |
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 this suggestion
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.
Make sure to deploy your page. Feel free to ask for help in the chat
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
html, body { | ||
margin: 0; | ||
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.
html doesn't have default margin
html, body { | |
margin: 0; | |
font-family: Roboto, sans-serif; | |
} | |
html { | |
font-family: Roboto, sans-serif; | |
} | |
body { | |
margin: 0; | |
} |
src/style.css
Outdated
.nav__link { | ||
display: flex; | ||
position: relative; | ||
height: 60px; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
text-decoration: none; | ||
color: var(--main-text-color); | ||
} |
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.
You can try just to add text-align: center