-
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 solution #5066
base: master
Are you sure you want to change the base?
add solution #5066
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,8 @@ | ||
body { | ||
margin: 0; | ||
|
||
font-family: Roboto, sans-serif; | ||
font-weight: 400; | ||
font-style: normal; | ||
color: $main-color; | ||
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 variable |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
.card { | ||
box-sizing: border-box; | ||
height: $card-height; | ||
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 variable |
||
width: $card-width; | ||
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 variable |
||
border: 1px solid $border-color; | ||
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 variable |
||
border-radius: 5px; | ||
padding: 32px 16px 16px; | ||
|
||
&__image { | ||
display: block; | ||
height: $image-height; | ||
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 variable |
||
width: $image-width; | ||
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 variable |
||
margin: 0 3px 40px; | ||
} | ||
|
||
&__title { | ||
margin-top: 0; | ||
font-size: 12px; | ||
font-weight: 500; | ||
line-height: 18px; | ||
color: $main-color; | ||
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 variable |
||
margin-bottom: 4px; | ||
} | ||
|
||
&__code { | ||
margin-top: 0; | ||
font-size: 10px; | ||
line-height: 14px; | ||
color: $secondary-color; | ||
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 variable |
||
margin-bottom: 16px; | ||
} | ||
|
||
&__revs { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
height: 16px; | ||
margin-bottom: 24px; | ||
} | ||
|
||
&__revs-text { | ||
font-size: 10px; | ||
line-height: 16px; | ||
font-weight: 400; | ||
} | ||
|
||
&__price { | ||
margin-bottom: 16px; | ||
} | ||
|
||
&__buy-button { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
box-sizing: border-box; | ||
height: 40px; | ||
width: 166px; | ||
margin-bottom: 16px; | ||
border-radius: 5px; | ||
background-color: #00acdc; | ||
font-weight: 700; | ||
font-size: 14px; | ||
line-height: 16px; | ||
text-transform: uppercase; | ||
color: #fff; | ||
text-decoration: none; | ||
|
||
&:hover { | ||
box-sizing: border-box; | ||
border: 1px solid #00acdc; | ||
background-color: #fff; | ||
color: #00acdc; | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.price { | ||
display: flex; | ||
align-items: center; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
height: 18px; | ||
line-height: 18px; | ||
|
||
&__title { | ||
font-size: 12px; | ||
color: $secondary-color; | ||
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 variable |
||
} | ||
|
||
&__cost { | ||
font-size: 16px; | ||
font-weight: 700; | ||
color: $main-color; | ||
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 variable |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.stars { | ||
display: flex; | ||
|
||
&__star { | ||
background-image: url(../images/star.svg); | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
width: 16px; | ||
height: 16px; | ||
margin-right: 4px; | ||
} | ||
|
||
&__star:last-child { | ||
margin-right: 0; | ||
} | ||
|
||
&--4 &__star:nth-child(-n + 4) { | ||
background-image: url(../images/star-active.svg); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
body { | ||
margin: 0; | ||
} | ||
@import './utilities/variables'; | ||
@import './blocks/body'; | ||
@import './blocks/card'; | ||
@import './blocks/stars'; | ||
@import './blocks/price'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$card-height: 408px; | ||
$card-width: 200px; | ||
$image-height: 134px; | ||
$image-width: 160px; | ||
$main-color: #060b35; | ||
$secondary-color: #616070; | ||
$border-color: #f3f3f3; | ||
$button-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.
The stylesheet link is pointing to a SCSS file (
index.scss
). Browsers cannot directly interpret SCSS files; they need to be compiled into CSS first. Ensure thatindex.scss
is compiled toindex.css
, and update the href attribute to point to the compiled CSS file.