Skip to content

Commit

Permalink
error correction
Browse files Browse the repository at this point in the history
  • Loading branch information
BTakhaiev committed Jan 11, 2025
1 parent 8a99985 commit 26c2cdb
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 104 deletions.
14 changes: 0 additions & 14 deletions backstop_data/engine_scripts/cookies.json

This file was deleted.

39 changes: 0 additions & 39 deletions backstop_data/engine_scripts/puppet/clickAndHoverHelper.js

This file was deleted.

29 changes: 0 additions & 29 deletions backstop_data/engine_scripts/puppet/loadCookies.js

This file was deleted.

3 changes: 0 additions & 3 deletions backstop_data/engine_scripts/puppet/onBefore.js

This file was deleted.

6 changes: 0 additions & 6 deletions backstop_data/engine_scripts/puppet/onReady.js

This file was deleted.

14 changes: 11 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@
</nav>
</header>
</div>
<main class="conteiner">
<div class="card">
<main class="container">
<div
class="card"
data-qa="card"
>
<div class="card__img">
<a
href="#"
Expand Down Expand Up @@ -106,7 +109,12 @@ <h1 class="card__header">
<p class="card__price-tag">$2,199</p>
</div>

<button class="card__button">buy</button>
<button
class="card__button"
data-qa="card-hover"
>
buy
</button>
</div>

<div class="card">
Expand Down
25 changes: 22 additions & 3 deletions src/styles/blocks/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ body {
font-style: normal;
}

.conteiner {
.container {
display: grid;
grid-template-columns: repeat(4, 200px);
grid-template-columns: repeat(1, 200px);
gap: 46px 48px;
padding: 40px 50px;
}
Expand All @@ -21,7 +21,7 @@ body {
flex-direction: column;
padding: $card-padding;

transition-duration: 300ms;
transition: $transition;

&__img {
padding: 0 3px;
Expand Down Expand Up @@ -103,6 +103,7 @@ body {
font-weight: 700;
color: #fff;
text-decoration: none;
transition: $transition;
}

&__button:active {
Expand All @@ -124,3 +125,21 @@ body {
background-color: #fff;
color: #00acdc;
}

@media (min-width: 488px) {
.container {
grid-template-columns: repeat(2, 200px);
}
}

@media (min-width: 768px) {
.container {
grid-template-columns: repeat(3, 200px);
}
}

@media (min-width: 1024px) {
.container {
grid-template-columns: repeat(4, 200px);
}
}
9 changes: 2 additions & 7 deletions src/styles/blocks/header.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
body {
margin: 0;
font-family: Roboto, sans-serif;
font-weight: 700;
font-style: normal;
}

.header {
display: flex;
width: 100%;
background-color: #fff;
justify-content: space-between;
font-weight: 700;

.img {
display: block;
Expand All @@ -26,6 +20,7 @@ body {
a {
text-decoration: none;
color: #060b35;
transition: $transition;
}

ul {
Expand Down
1 change: 1 addition & 0 deletions src/styles/blocks/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ $main-text-color: #060b35;
$second-text-color: #616070;
$main-button-color: #00acdc;
$font-size-base: 12px;
$transition: all 300ms;

0 comments on commit 26c2cdb

Please sign in to comment.