-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
first commit #4823
base: master
Are you sure you want to change the base?
first commit #4823
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,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.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
.card { | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
|
||
font-family: Roboto, sans-serif; | ||
font-weight: 400; | ||
font-style: normal; | ||
border: 1px solid #f3f3f3; | ||
border-radius: 5px; | ||
transition: all 0.3s ease; | ||
|
||
&:hover { | ||
transform: scale(1.2); | ||
} | ||
|
||
&:hover .card__title { | ||
color: #34568b; | ||
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. Consider using a variable for the hover color |
||
} | ||
|
||
&__logo { | ||
background-image: url(../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. Ensure that the image path is correct and the image exists at the specified location. This is more of a reminder to verify assets. |
||
background-size: contain; | ||
background-repeat: no-repeat; | ||
width: 160px; | ||
height: 134px; | ||
margin: 32px 19px 40px; | ||
} | ||
|
||
&__content { | ||
margin: 0 16px 16px; | ||
} | ||
|
||
&__header { | ||
font-weight: 500; | ||
font-size: 12px; | ||
line-height: 18px; | ||
color: $main-text-color; | ||
} | ||
|
||
&__code { | ||
font-size: 10px; | ||
line-height: 14px; | ||
color: $secondary-color; | ||
margin-top: 4px; | ||
} | ||
|
||
&__evaluation { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
margin-top: 16px; | ||
} | ||
|
||
&__reviews { | ||
font-size: 10px; | ||
color: $main-text-color; | ||
} | ||
|
||
&__price { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-top: 24px; | ||
|
||
&-title { | ||
font-size: 12px; | ||
line-height: 18px; | ||
color: $secondary-color; | ||
} | ||
|
||
&-value { | ||
font-size: 16px; | ||
line-height: 18px; | ||
font-weight: 700; | ||
} | ||
} | ||
|
||
&__buy-button { | ||
height: 40px; | ||
width: 166px; | ||
border-radius: 5px; | ||
border: none; | ||
background-color: $blue-accent; | ||
color: #fff; | ||
font-weight: 700; | ||
font-size: 14px; | ||
line-height: 16px; | ||
margin-top: 16px; | ||
|
||
&:hover { | ||
background-color: #fff; | ||
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. Consider using a variable for the hover background color |
||
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. Consider using a variable for the hover text color |
||
border: 1px solid $blue-accent; | ||
cursor: pointer; | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.catalog { | ||
padding: 50px 40px; | ||
display: grid; | ||
grid-template-rows: repeat(2, 1fr); | ||
grid-template-columns: repeat(1, 1fr); | ||
gap: 46px 48px; | ||
justify-items: center; | ||
} | ||
|
||
@media (min-width: 488px) { | ||
.catalog { | ||
grid-template-columns: repeat(2, 1fr); | ||
} | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.catalog { | ||
grid-template-columns: repeat(3, 1fr); | ||
} | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
.catalog { | ||
grid-template-columns: repeat(4, 1fr); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0 50px; | ||
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.nav { | ||
display: flex; | ||
background-color: $bg-color; | ||
|
||
&__item { | ||
margin: 0 10px; | ||
text-decoration: none; | ||
list-style: none; | ||
} | ||
|
||
&__link { | ||
font-family: Roboto, sans-serif; | ||
font-size: 12px; | ||
position: relative; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
font-weight: 500; | ||
color: #060b35; | ||
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. Consider using a variable for the color |
||
display: block; | ||
line-height: 60px; | ||
|
||
&:hover { | ||
color: $blue-accent; | ||
} | ||
} | ||
|
||
&__list { | ||
display: flex; | ||
margin: 0; | ||
padding: 0; | ||
|
||
& :first-child { | ||
margin-left: 0; | ||
} | ||
|
||
& :last-child { | ||
margin-right: 0; | ||
} | ||
} | ||
} | ||
|
||
.is-active { | ||
color: $blue-accent; | ||
} | ||
|
||
.is-active::after { | ||
content: ''; | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
background-color: $blue-accent; | ||
height: 4px; | ||
border-radius: 8px; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.stars { | ||
display: flex; | ||
|
||
&--4 :nth-child(-n + 4) { | ||
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 selector |
||
background-image: url(/src/images/star-active.svg); | ||
} | ||
|
||
&__star { | ||
background-image: url(../images/star.svg); | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
height: 16px; | ||
width: 16px; | ||
|
||
&:not(:last-child) { | ||
margin-right: 4px; | ||
} | ||
} | ||
} |
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.
Consider using a variable for the border color instead of a hardcoded value
#f3f3f3
. This will improve maintainability and consistency across your styles.