diff --git a/src/index.html b/src/index.html index 9cff78eeb7..22b7f1a66a 100644 --- a/src/index.html +++ b/src/index.html @@ -20,8 +20,347 @@ href="styles/index.scss" /> - -

Catalog

+
+ + +
+
+
+
+ imacPh +
+

+ APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) +

+

Product code: 195434

+
+
+
+
+
+
+
+
+
Rewiews:5
+
+
Price:
+
$2,199
+
+ + BUY + +
+
+
+ imacPh +
+

+ APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) +

+

Product code: 195434

+
+
+
+
+
+
+
+
+
Rewiews:5
+
+
Price:
+
$2,199
+
+ + BUY + +
+
+
+ imacPh +
+

+ APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) +

+

Product code: 195434

+
+
+
+
+
+
+
+
+
Rewiews:5
+
+
Price:
+
$2,199
+
+ + BUY + +
+
+
+ imacPh +
+

+ APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) +

+

Product code: 195434

+
+
+
+
+
+
+
+
+
Rewiews:5
+
+
Price:
+
$2,199
+
+ + BUY + +
+
+
+ imacPh +
+

+ APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) +

+

Product code: 195434

+
+
+
+
+
+
+
+
+
Rewiews:5
+
+
Price:
+
$2,199
+
+ + BUY + +
+
+
+ imacPh +
+

+ APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) +

+

Product code: 195434

+
+
+
+
+
+
+
+
+
Rewiews:5
+
+
Price:
+
$2,199
+
+ + BUY + +
+
+
+ imacPh +
+

+ APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) +

+

Product code: 195434

+
+
+
+
+
+
+
+
+
Rewiews:5
+
+
Price:
+
$2,199
+
+ + BUY + +
+
+
+ imacPh +
+

+ APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) +

+

Product code: 195434

+
+
+
+
+
+
+
+
+
Rewiews:5
+
+
Price:
+
$2,199
+
+ + BUY + +
+
diff --git a/src/styles/blocks/card.scss b/src/styles/blocks/card.scss new file mode 100644 index 0000000000..29ec77d906 --- /dev/null +++ b/src/styles/blocks/card.scss @@ -0,0 +1,122 @@ +.card-menu { + --count-column: 1; + + padding: 50px 40px; + display: grid; + grid-template-columns: repeat(var(--count-column) 200px); + grid-template-rows: repeat(2, 406px); + gap: 48px 46px; + + @media (min-width: 488px) { + --count-column: 2; + } + + @media (min-width: 768px) { + --count-column: 3; + } + + @media (min-width: 1024px) { + --count-column: 4; + } +} + +.card { + width: 200px; + padding: 32px 16px 16px; + box-sizing: border-box; + border-radius: 5px; + background-color: 1px solid #f3f3f3; + transition: transform 300ms; + + &:hover { + transform: scale(1.2); + + .card_title { + color: #34568b; + } + } + + &__title { + display: flex; + font-weight: 500; + font-size: 12px; + margin-top: 40px; + margin-bottom: 0; + line-height: 18px; + color: #060b35; + } + + &__info { + width: 98px; + height: 14px; + font-weight: 400; + font-size: 10px; + margin-right: 68px; + margin-top: 4px; + margin-bottom: 16px; + line-height: 14px; + color: #616070; + } + + &_imagep { + width: 160px; + height: 134px; + margin: 0 auto 40px; + display: block; + } + + &__price { + display: flex; + margin-top: 24px; + justify-content: space-between; + align-items: center; + } + + &__ptext { + font-weight: 400; + font-size: 12px; + line-height: 18px; + color: #616070; + } + + &__pnumber { + font-weight: 700; + font-size: 16px; + line-height: 18px; + color: #060b35; + } + + &__raiting { + display: flex; + align-items: center; + justify-content: space-between; + } + + &__rewiews { + font-weight: 400; + font-size: 10px; + line-height: 16px; + color: #060b35; + } + + &__buy { + color: #fff; + background-color: #00acdc; + border: 1px solid #00acdc; + border-radius: 5px; + justify-content: center; + align-items: center; + width: 100%; + height: 40px; + margin-top: 16px; + font-size: 14px; + font-weight: 700; + text-decoration: none; + display: flex; + } + + &__buy:hover { + color: #00acdc; + background-color: #fff; + } +} diff --git a/src/styles/blocks/header.scss b/src/styles/blocks/header.scss new file mode 100644 index 0000000000..8f9f8c8f16 --- /dev/null +++ b/src/styles/blocks/header.scss @@ -0,0 +1,78 @@ +:root { + --blue-color: rgba(0, 172, 220, 1); /* CSS-змінна для синього кольору */ +} + +body { + padding: 0; + box-sizing: border-box; + margin: 0; + font-family: Roboto, sans-serif; +} + +header { + box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.18); + width: 100%; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; +} + +.navigation__item { + text-align: center; + position: relative; + font-size: 12px; + text-decoration: none; + color: black; + height: 60px; /* Висота посилання */ + line-height: 60px; /* Вирівнювання тексту вертикально */ + + &--is-active::after { + content: ''; + position: absolute; + bottom: -22px; + left: 0; + width: 100%; + height: 4px; + background-color: var(--blue-color); + border-radius: 2px; + } +} + +nav ul { + list-style: none; + display: flex; + margin: 0; +} + +.container { + position: relative; + margin-right: 40px; +} + +.logo { + height: 40px; + width: 40px; + margin-left: 50px; +} + +nav ul li { + position: relative; + margin: 0 10px; +} + +nav ul li:first-child { + margin-left: 0; +} + +nav ul li:last-child { + margin-right: 0; +} + +.box:hover { + color: var(--blue-color); +} + +[data-qa='hover']:hover { + color: var(--blue-color); +} diff --git a/src/styles/blocks/stars.scss b/src/styles/blocks/stars.scss new file mode 100644 index 0000000000..1941a69d65 --- /dev/null +++ b/src/styles/blocks/stars.scss @@ -0,0 +1,20 @@ +.stars { + display: flex; + + &__star { + height: 16px; + width: 16px; + background-image: url(../images/star.svg); + background-repeat: no-repeat; + margin-right: 4px; + background-position: center; + } + + &__star:last-child { + margin-bottom: 0; + } + + &__star:nth-child(-n + 4) { + background-image: url(../images/star-active.svg); + } +} diff --git a/src/styles/index.scss b/src/styles/index.scss index 293d3b1f13..500b57f66c 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1,3 +1,10 @@ +@import 'header'; +@import 'card'; +@import 'stars'; + body { margin: 0; + font-family: Roboto, serif, sans-serif; + font-weight: 500; + font-size: 12px; }