-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 #4907
base: master
Are you sure you want to change the base?
add task solution #4907
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
&__stars { | ||
align-items: center; | ||
display: flex; | ||
|
||
&-star { | ||
display: flex; | ||
background-image: url(/src/images/star.svg); | ||
background-repeat: no-repeat; | ||
height: 16px; | ||
width: 16px; | ||
background-position: center; | ||
|
||
&:not(:last-child) { | ||
margin-right: 4px; | ||
} | ||
} | ||
|
||
& :nth-child(-n + 4) { | ||
background-image: url(/src/images/star-active.svg); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,117 @@ | ||
@import './utils/variable'; | ||
|
||
html { | ||
font-family: Roboto, Arial, Helvetica, sans-serif; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
/* #region card */ | ||
|
||
.block { | ||
box-sizing: border-box; | ||
display: flex; | ||
width: 200px; | ||
background-color: #fff; | ||
flex-direction: column; | ||
border: 1px solid #f3f3f3; | ||
border-radius: 5px; | ||
} | ||
|
||
.image { | ||
display: flex; | ||
background-image: url(/src/images/imac.jpeg); | ||
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 file path in the background-image URL seems incorrect. Ensure the path is correct and points to an existing image file. |
||
background-size: cover; | ||
background-position: center; | ||
height: 134px; | ||
width: 160px; | ||
margin: 32px auto 0; | ||
} | ||
|
||
.product-name { | ||
display: flex; | ||
font-weight: 500; | ||
padding-inline: $padding; | ||
color: $main-text-color; | ||
margin-top: 40px; | ||
font-size: 12px; | ||
line-height: 18px; | ||
} | ||
|
||
.product-code { | ||
margin-top: 4px; | ||
display: flex; | ||
font-weight: 400; | ||
color: $additional-text-color; | ||
font-size: 10px; | ||
padding-left: $padding; | ||
line-height: 14px; | ||
} | ||
|
||
.review { | ||
display: flex; | ||
padding-inline: $padding; | ||
justify-content: space-between; | ||
margin-top: 16px; | ||
align-items: flex-end; | ||
|
||
@import '/src/styles/blocks/stars'; | ||
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 import statement for '/src/styles/blocks/stars' seems incorrect. Ensure the path is correct relative to the current file location. It should be './blocks/stars' if the 'stars' file is in the 'blocks' folder within the 'styles' directory. 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 import statement for '/src/styles/blocks/stars' should not be inside a CSS rule. Consider moving it to the top of the file or outside any CSS rules. |
||
|
||
&__number { | ||
font-size: 10px; | ||
font-weight: 400; | ||
color: $main-text-color; | ||
line-height: 14px; | ||
} | ||
} | ||
|
||
.price { | ||
display: flex; | ||
padding-inline: $padding; | ||
justify-content: space-between; | ||
line-height: 18px; | ||
align-items: center; | ||
margin-top: 24px; | ||
|
||
&__title { | ||
font-weight: 400; | ||
font-size: 12; | ||
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' property value should include a unit (e.g., 'px', 'em'). It seems to be missing here. 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 value should have a unit (e.g., 'px', 'em'). Currently, it is missing a unit. |
||
color: $additional-text-color; | ||
} | ||
|
||
&__cost { | ||
font-size: 16px; | ||
font-weight: 700; | ||
color: $main-text-color; | ||
} | ||
} | ||
|
||
.buy-button { | ||
display: flex; | ||
margin: 16px; | ||
background-color: #00acdc; | ||
height: 39px; | ||
align-items: center; | ||
border-radius: 5px; | ||
border: 1px solid #00acdc; | ||
|
||
&__link { | ||
text-decoration: none; | ||
color: #fff; | ||
font-weight: 700; | ||
font-size: 14px; | ||
line-height: 16px; | ||
margin: 0 auto; | ||
} | ||
|
||
&:hover { | ||
background-color: #fff; | ||
|
||
.buy-button__link { | ||
color: #00acdc; | ||
} | ||
} | ||
} | ||
/* #endregion */ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$main-text-color: #060b35; | ||
$additional-text-color: #616070; | ||
$padding: 16px; |
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 URL for the background image seems incorrect. Ensure the path is correct relative to the CSS file location. It should be './images/imac.jpeg' if the image is in the 'images' folder within the 'src' directory.