-
Notifications
You must be signed in to change notification settings - Fork 4.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
add solution #4297
base: master
Are you sure you want to change the base?
add solution #4297
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.
GJ!
Read the following comments:
src/styles/card.scss
Outdated
@keyframes scale { | ||
100% { | ||
transform: scale(1.2); | ||
} | ||
} | ||
|
||
@keyframes title-color { | ||
100% { | ||
color: #34568b; | ||
} | ||
} | ||
|
||
@keyframes button-change { | ||
100% { | ||
background-color: #fff; | ||
color: $button-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.
Use transition instead of all these animations
src/index.html
Outdated
/> | ||
<h2 class="card__name-panel"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</h2> | ||
<p class="card__product-code">Product code: 195434</p> | ||
<div class="card__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.
/> | |
<h2 class="card__name-panel"> | |
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | |
</h2> | |
<p class="card__product-code">Product code: 195434</p> | |
<div class="card__review"> | |
/> | |
<h2 class="card__name-panel"> | |
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | |
</h2> | |
<p class="card__product-code">Product code: 195434</p> | |
<div class="card__review"> |
src/styles/header.scss
Outdated
border-radius: 8px; | ||
} | ||
|
||
@keyframes nav-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.
Use transition
margin-bottom: 4px; | ||
} | ||
|
||
&: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.
This hover effect should be smooth for both cases when mouse enter on element and when it leaves
src/styles/header.scss
Outdated
height: 40px; | ||
} | ||
|
||
&__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.
Nav should be a separate BEM block so please make it and move to a separate file since it is block
fixes applied |
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.
Well done
DEMO LINK
TEST REPORT LINK
All component follow BEM and use SCSS
repaeted sizes and special colors are put to variables
Grid is used for the columns
cards are shown in 1, 2, 3 or 4 columns based on screen resolution
All changes on
:hover
are smoothCode follows all the Code Style Rules ❗️