-
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.
Update product card layout and styles; upgrade @mate-academy/scripts …
…version
- Loading branch information
artur.manuilenko
committed
Dec 23, 2024
1 parent
606dc21
commit f6c109d
Showing
9 changed files
with
201 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm test | ||
- name: Upload HTML report(backstop data) | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: report | ||
path: backstop_data |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,85 @@ | ||
@import './variables'; | ||
|
||
.card { | ||
box-sizing: border-box; | ||
border: 1px solid #f3f3f3; | ||
width: 200px; | ||
padding: 32px 16px 16px; | ||
font-family: Roboto, sans-serif; | ||
|
||
&__image { | ||
width: 160px; | ||
height: 134px; | ||
display: block; | ||
margin: auto auto 40px; | ||
} | ||
|
||
&__title { | ||
color: $color-main; | ||
margin-bottom: 4px; | ||
font-size: 12px; | ||
font-weight: 500; | ||
line-height: 18px; | ||
} | ||
|
||
&__code { | ||
font-size: 10px; | ||
font-weight: 400; | ||
line-height: 14px; | ||
color: $color-secondary; | ||
margin-bottom: 16px; | ||
} | ||
|
||
&__review { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin-bottom: 24px; | ||
} | ||
|
||
&__count { | ||
font-size: 10px; | ||
font-weight: 400; | ||
line-height: 14px; | ||
color: $color-main; | ||
} | ||
|
||
&__price { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-bottom: 16px; | ||
} | ||
|
||
&__description { | ||
font-size: 12px; | ||
font-weight: 400; | ||
line-height: 18px; | ||
color: $color-secondary; | ||
} | ||
|
||
&__value { | ||
font-size: 16px; | ||
font-weight: 700; | ||
line-height: 18px; | ||
color: $color-main; | ||
} | ||
|
||
&__button { | ||
width: 100%; | ||
text-transform: uppercase; | ||
background-color: $blue-accent; | ||
color: #fff; | ||
border-radius: 5px; | ||
padding: 12px 0; | ||
border: 1px solid $blue-accent; | ||
font-size: 14px; | ||
font-weight: 700; | ||
|
||
&:hover { | ||
color: $blue-accent; | ||
background-color: #fff; | ||
|
||
cursor: pointer; | ||
} | ||
} | ||
} |
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,8 @@ | ||
body { | ||
@import './stars'; | ||
@import './card'; | ||
|
||
body, | ||
h2, | ||
p { | ||
margin: 0; | ||
} |
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,18 @@ | ||
.stars { | ||
display: flex; | ||
|
||
&__star { | ||
background-image: url('../images/star.svg'); | ||
background-repeat: no-repeat; | ||
background-position: 50%; | ||
margin-right: 4px; | ||
width: 16px; | ||
height: 16px; | ||
} | ||
|
||
@for $activeStar from 1 through 4 { | ||
&__star:nth-child(-n + #{$activeStar}) { | ||
background-image: url('../images/star-active.svg'); | ||
} | ||
} | ||
} |
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 @@ | ||
$color-main: #060b35; | ||
$color-secondary: #616070; | ||
$blue-accent: #00acdc; |