-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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 asolution #5256
base: master
Are you sure you want to change the base?
add asolution #5256
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
.card { | ||
width: 200px; | ||
height: 400px; | ||
display: flex; | ||
box-sizing: border-box; | ||
flex-direction: column; | ||
align-items: center; | ||
padding: 32px 16px 16px; | ||
border: 1px solid #f3f3f3; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider using SCSS variables for colors like |
||
border-radius: 5px; | ||
|
||
&__image { | ||
height: 134px; | ||
width: 160px; | ||
margin-bottom: 40px; | ||
} | ||
|
||
&__title { | ||
font-weight: 500; | ||
font-size: 12px; | ||
line-height: 18px; | ||
margin: 0; | ||
} | ||
|
||
&__code { | ||
color: #616070; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider using SCSS variables for colors like |
||
font-weight: 400; | ||
font-size: 10px; | ||
line-height: 14px; | ||
margin-bottom: 16px; | ||
margin-top: 4px; | ||
} | ||
|
||
&__reviews { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
flex-direction: row; | ||
margin: 15px 0 24px; | ||
} | ||
|
||
&__reviews-value { | ||
font-weight: 400; | ||
font-size: 10px; | ||
line-height: 14px; | ||
} | ||
|
||
&__price { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
&__price-title { | ||
color: #616070; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider using SCSS variables for colors like |
||
font-weight: 400; | ||
font-size: 12px; | ||
line-height: 18px; | ||
} | ||
|
||
&__price-value { | ||
font-weight: 700; | ||
font-size: 16px; | ||
line-height: 18px; | ||
margin-bottom: 16px; | ||
} | ||
|
||
&__button { | ||
box-sizing: border-box; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 40px; | ||
border-radius: 5px; | ||
border: 1 solid #00acdc; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
font-size: 14; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
line-height: 16; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
font-weight: 700; | ||
text-transform: uppercase; | ||
text-decoration: none; | ||
background-color: #00acdc; | ||
color: white; | ||
margin-bottom: 16px; | ||
} | ||
|
||
&__button:hover { | ||
background-color: #fff; | ||
color: #00acdc; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
@import '/src/styles/card'; | ||
@import '/src/styles/stars'; | ||
@import '/src/styles/mixins'; | ||
Comment on lines
+1
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that the imported SCSS files, such as |
||
|
||
body { | ||
margin: 0; | ||
padding: 20px; | ||
font-family: Roboto, Arial, serif; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@mixin roboto-font { | ||
font-family: Roboto, serif; | ||
} | ||
|
||
@mixin display-position { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.stars { | ||
display: flex; | ||
|
||
&__star { | ||
height: 16px; | ||
width: 16px; | ||
background-image: url('../images/star.svg'); | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
margin-right: 4px; | ||
} | ||
} | ||
|
||
.stars--rating-4 .stars__star:nth-child(-n + 4) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that all |
||
background-image: url('../images/star-active.svg'); | ||
} |
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.
Verify that all
stars--N
modifiers are implemented as required by the task. This was a critical issue noted in the previous review.