-
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 #4451
base: master
Are you sure you want to change the base?
add task solution #4451
Conversation
Ehulinian
commented
Jan 27, 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.
Good job 👍
Let's improve your code
src/index.html
Outdated
<link rel="preconnect" | ||
href="https://fonts.gstatic.com/" | ||
crossorigin="true"> |
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.
Need to fix code style everywhere
<link rel="preconnect" | |
href="https://fonts.gstatic.com/" | |
crossorigin="true"> | |
<link | |
rel="preconnect" | |
href="https://fonts.gstatic.com/" | |
crossorigin="true" | |
> |
src/index.html
Outdated
<img src="./images/logo.png" alt="Moyo logo" | ||
class="logo__image"> |
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 same as above, check and fix it everywhere
<img src="./images/logo.png" alt="Moyo logo" | |
class="logo__image"> | |
<img | |
src="./images/logo.png" | |
alt="Moyo logo" | |
class="logo__image" | |
> |
src/index.html
Outdated
</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"> |
src/style.css
Outdated
} | ||
|
||
.nav__link: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 the variable for repeated color and use it everywhere
src/style.css
Outdated
color: #00acdc; | ||
} | ||
|
||
.nav__link.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.
.nav__link.is-active { | |
.is-active { |
src/style.css
Outdated
color: #00acdc; | ||
} | ||
|
||
.nav__link.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__link.is-active::after { | |
.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.
GJ!
But still need to fix some code style issues
src/index.html
Outdated
<a href="#" class="logo"> | ||
<img src="./images/logo.png" | ||
alt="Moyo logo" | ||
class="logo__image"> |
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 href="#" class="logo"> | |
<img src="./images/logo.png" | |
alt="Moyo logo" | |
class="logo__image"> | |
<a href="#" class="logo"> | |
<img | |
src="./images/logo.png" | |
alt="Moyo logo" | |
class="logo__image" | |
> |
src/index.html
Outdated
<a href="#" | ||
class="nav__link" | ||
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.
<a href="#" | |
class="nav__link" | |
data-qa="hover"> | |
<a | |
href="#" | |
class="nav__link" | |
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.
Looks good