-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 #5077
base: master
Are you sure you want to change the base?
add task solution #5077
Changes from 1 commit
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 |
---|---|---|
@@ -1,3 +1,124 @@ | ||
$main-accent-color: #060b35; | ||
$secondary-color: #616070; | ||
$blue-accent-color: #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. Missing declare:
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. Thanks for the tip, I'll make the adjustments |
||
body { | ||
margin: 0; | ||
|
||
color: $main-accent-color; | ||
|
||
font-family: Roboto, sans-serif; | ||
font-size: 16px; | ||
} | ||
|
||
.product-card { | ||
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. I believe the height of your card is wrong and it is causing most fails in the test 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. Thank you, i will make the adjustments. |
||
width: 165px; | ||
|
||
padding: 32px 16px 16px; | ||
|
||
background-color: #fff; | ||
color: $main-accent-color; | ||
|
||
border: 1px solid #f3f3f3; | ||
border-radius: 5px; | ||
|
||
&__image-container { | ||
display: flex; | ||
justify-content: center; | ||
width: 100%; | ||
} | ||
|
||
&__image { | ||
width: 160px; | ||
height: 134px; | ||
|
||
margin-bottom: 30px; | ||
} | ||
|
||
&__title { | ||
font-size: 12px; | ||
font-weight: 500; | ||
line-height: 18px; | ||
text-align: left; | ||
|
||
width: 166px; | ||
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. We avoid using these broken numbers. If you saw a number like this in the design, it must certainly comes from another styling, like |
||
} | ||
|
||
&__code { | ||
color: $secondary-color; | ||
|
||
font-size: 10px; | ||
font-weight: 400; | ||
line-height: 14px; | ||
text-align: left; | ||
} | ||
|
||
&__reviews { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
&__price { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
&__star { | ||
width: 20px; | ||
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. I don't believe this is the right size. |
||
height: 20px; | ||
} | ||
|
||
&__reviews-text { | ||
font-size: 10px; | ||
|
||
margin-left: 8px; | ||
} | ||
|
||
&__price-label { | ||
font-size: 12px; | ||
line-height: 18px; | ||
font-weight: 400; | ||
|
||
color: $secondary-color; | ||
} | ||
|
||
&__price-value { | ||
font-size: 16px; | ||
line-height: 18px; | ||
|
||
font-weight: 700; | ||
|
||
color: #000; | ||
} | ||
|
||
&__buy-button { | ||
width: 100%; | ||
height: 40px; | ||
|
||
border-radius: 5px; | ||
border: none; | ||
|
||
background: var(--blue-accent-color, #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 use of |
||
color: #fff; | ||
|
||
margin-top: 8px; | ||
padding: 8px 16px; | ||
|
||
font-size: 14px; | ||
line-height: 16px; | ||
font-weight: 700; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
|
||
cursor: pointer; | ||
|
||
&:hover { | ||
background-color: #fff; | ||
color: $blue-accent-color; | ||
|
||
border: 1px solid $blue-accent-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.
What is this svg doing here?
You should have used the same code as for the Stars task done before. The stars should be added using css and work exactly as the previous task (you can literally copy-paste most of it)