-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
606dc21
commit a021761
Showing
6 changed files
with
199 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.card { | ||
width: 198px; | ||
border: 1px solid #f3f3f3; | ||
border-radius: 5px; | ||
margin: auto; /* center card horizontally and vertically */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,121 @@ | ||
@use 'stars'; | ||
@use 'card'; | ||
|
||
$light-text: #616070; | ||
$dark-text: #060b35; | ||
$button-color: #00acdc; | ||
|
||
body { | ||
margin: 0; | ||
font-family: Roboto, sans-serif; | ||
font-size: 12px; | ||
color: $dark-text; | ||
} | ||
|
||
.product-image { | ||
width: 160px; | ||
height: 134px; | ||
background-size: 160px 134px; | ||
background-image: url('../images/imac.jpeg'); | ||
background-position: center; | ||
margin-top: 32.5px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
.product-name { | ||
margin-top: 40px; | ||
padding-left: 16px; | ||
padding-right: 15px; | ||
font-weight: 500; | ||
line-height: 18px; | ||
color: $dark-text; | ||
} | ||
|
||
.product-code { | ||
font-weight: 400; | ||
font-size: 10px; | ||
color: $light-text; | ||
line-height: 14px; | ||
padding-top: 4px; | ||
padding-left: 16px; | ||
} | ||
|
||
.reviews-box { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
flex-direction: row; | ||
padding-top: 16px; | ||
padding-left: 16px; | ||
padding-right: 16px; | ||
margin-bottom: 0; | ||
} | ||
|
||
.flex-container { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.reviews { | ||
font-weight: 400; | ||
font-size: 10px; | ||
padding-top: 3px; | ||
} | ||
|
||
.price-box { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 24px 16px 15px; | ||
} | ||
|
||
.price-label { | ||
font-weight: 400; | ||
font-size: 12px; | ||
color: $light-text; | ||
line-height: 18px; | ||
padding-top: 0; | ||
} | ||
|
||
.price { | ||
font-weight: 900; | ||
font-size: 16px; | ||
line-height: 18px; | ||
color: black; | ||
} | ||
|
||
.buy-box { | ||
width: 166px; | ||
height: 40px; | ||
background-color: $button-color; | ||
color: white; | ||
font-weight: 1000; | ||
font-size: 14px; | ||
line-height: 16px; | ||
border-radius: 5px; | ||
display: flex; | ||
align-items: center; | ||
margin-top: 1px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
padding-top: 0; | ||
} | ||
|
||
.buy-box:hover { | ||
background-color: white; | ||
color: $button-color; | ||
border: 1px solid $button-color; | ||
width: 164px; | ||
height: 38px; | ||
font-weight: 1000; | ||
line-height: 16px; | ||
} | ||
|
||
.buy-link { | ||
margin: 0 auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.stars { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.star { | ||
width: 16px; | ||
height: 16px; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-image: url('../images/star-active.svg'); | ||
margin-right: 4px; | ||
} | ||
|
||
.star-off { | ||
width: 16px; | ||
height: 16px; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-image: url('../images/star.svg'); | ||
margin-right: 4px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$light-text: #616070; | ||
$dark-text: #060b35; | ||
$button-color: #00acdc; |