diff --git a/src/images/logo_moyo.png b/src/images/logo_moyo.png new file mode 100644 index 0000000000..9ea6299ec2 Binary files /dev/null and b/src/images/logo_moyo.png differ diff --git a/src/index.html b/src/index.html index 9cff78eeb7..17958b2cae 100644 --- a/src/index.html +++ b/src/index.html @@ -6,10 +6,16 @@ name="viewport" content="width=device-width, initial-scale=1.0" /> - Catalog + MOYO Catalog + + - -

Catalog

+
+ + + + + +
+ +
+
+ APPLE A1419 iMac 27 Retina +

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

+

Product code: 195434

+
+
+ + + + + +
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + Buy + +
+ +
+ APPLE A1419 iMac 27 Retina +

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

+

Product code: 195434

+
+
+ + + + + +
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + Buy + +
+ +
+ APPLE A1419 iMac 27 Retina +

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

+

Product code: 195434

+
+
+ + + + + +
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + Buy + +
+ +
+ APPLE A1419 iMac 27 Retina +

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

+

Product code: 195434

+
+
+ + + + + +
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + Buy + +
+ +
+ APPLE A1419 iMac 27 Retina +

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

+

Product code: 195434

+
+
+ + + + + +
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + Buy + +
+ +
+ APPLE A1419 iMac 27 Retina +

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

+

Product code: 195434

+
+
+ + + + + +
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + Buy + +
+ +
+ APPLE A1419 iMac 27 Retina +

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

+

Product code: 195434

+
+
+ + + + + +
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + Buy + +
+ +
+ APPLE A1419 iMac 27 Retina +

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

+

Product code: 195434

+
+
+ + + + + +
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + Buy + +
+
diff --git a/src/styles/card.scss b/src/styles/card.scss new file mode 100644 index 0000000000..334a4de3ca --- /dev/null +++ b/src/styles/card.scss @@ -0,0 +1,105 @@ +@import './variables'; + +.card { + display: flex; + flex-direction: column; + box-sizing: border-box; + width: $card-width; + height: $card-height; + border: 1px solid $border-color; + border-radius: $card-border-radius; + padding: 32px 16px 16px; + font-family: Roboto, sans-serif; + + &__image { + display: block; + width: 160px; + height: 134px; + margin: 0 auto 40px; + } + + &__title { + margin: 0 0 4px; + font-size: 12px; + line-height: 18px; + font-weight: 500; + color: $main-color; + transition-duration: $transition-duration; + } + &:hover &__title { + color: $hover_color; + transition-duration: $transition-duration; + } + &__code { + margin: 0 0 16px; + font-size: 10px; + line-height: 14px; + color: $secondary-color; + } + + &__review { + display: flex; + justify-content: space-between; + align-items: flex-end; + margin-bottom: 25px; + padding: 1px 0 0 1.2px; + } + + &__reviews { + position: relative; + top: 0; + margin: 0; + font-size: 10px; + line-height: 14px; + color: $main-color; + } + + &__price { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 16px; + } + + &__price-text { + margin: 0; + font-size: 12px; + line-height: 18px; + color: $secondary-color; + } + + &__price-value { + margin: 0; + font-size: 16px; + line-height: 18px; + font-weight: 700; + color: $main-color; + } + + &__button { + display: flex; + justify-content: center; + align-items: center; + height: 38.5px; + border: 1px solid $blue-color; + border-radius: $card-border-radius; + background-color: $blue-color; + font-size: 14px; + line-height: 16px; + font-weight: 700; + color: $white-color; + text-decoration: none; + text-transform: uppercase; + &:hover { + background-color: $white-color; + color: $blue-color; + height: 38.5px; + transform: scale(1.2); + transition-duration: $transition-duration; + } + } + &:hover { + transform: scale(1.2); + transition-duration: $transition-duration; + } +} diff --git a/src/styles/header.scss b/src/styles/header.scss new file mode 100644 index 0000000000..7c44136672 --- /dev/null +++ b/src/styles/header.scss @@ -0,0 +1,68 @@ +.nav__list { + display: flex; + margin: 0; + padding: 0; + list-style: none; +} + +:root { + --blue-color: #00acdc; +} + +.header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 50px; +} + +.header__logo { + display: flex; + position: relative; +} + +.header__logo img { + width: 40px; + height: 40px; +} + +.nav__item { + margin-right: 20px; +} + +.nav__item:last-child { + margin-right: 0; +} + +.nav__link { + position: relative; + display: block; + height: 60px; + line-height: 60px; + + font-size: 12px; + font-weight: 500; + text-transform: uppercase; + text-decoration: none; + + color: #060b35; +} + +.nav__link:hover { + color: var(--blue-color); +} + +.nav__link.is-active { + color: var(--blue-color); +} + +.nav__link.is-active::after { + content: ''; + position: absolute; + left: 0; + right: 0; + bottom: 0; + height: 4px; + border-radius: 8px; + background-color: var(--blue-color); +} diff --git a/src/styles/index.scss b/src/styles/index.scss index 293d3b1f13..4e30a0a573 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1,3 +1,39 @@ +@import './variables'; +@import './header'; +@import './stars'; +@import './card'; + +html { + box-sizing: border-box; +} + body { margin: 0; + font-family: Roboto, sans-serif; +} + +.catalog { + display: grid; + grid-template-columns: repeat(1, $card-width); + justify-content: center; + gap: 46px 48px; + padding: 50px 40px; +} + +@media (min-width: 488px) { + .catalog { + grid-template-columns: repeat(2, $card-width); + } +} + +@media (min-width: 768px) { + .catalog { + grid-template-columns: repeat(3, $card-width); + } +} + +@media (min-width: 1024px) { + .catalog { + grid-template-columns: repeat(4, $card-width); + } } diff --git a/src/styles/stars.scss b/src/styles/stars.scss new file mode 100644 index 0000000000..24140dad1e --- /dev/null +++ b/src/styles/stars.scss @@ -0,0 +1,21 @@ +.stars { + display: flex; + gap: 6.4px; + + &__star { + width: 13.6px; + height: 13.6px; + background-image: url(../images/star.svg); + background-repeat: no-repeat; + background-position: center; + background-size: contain; + } + + &--1 &__star:nth-child(-n + 1), + &--2 &__star:nth-child(-n + 2), + &--3 &__star:nth-child(-n + 3), + &--4 &__star:nth-child(-n + 4), + &--5 &__star:nth-child(-n + 5) { + background-image: url(../images/star-active.svg); + } +} diff --git a/src/styles/variables.scss b/src/styles/variables.scss new file mode 100644 index 0000000000..412b05c1f4 --- /dev/null +++ b/src/styles/variables.scss @@ -0,0 +1,10 @@ +$card-width: 200px; +$card-height: 408px; +$card-border-radius: 5px; +$main-color: #060b35; +$secondary-color: #616070; +$blue-color: #00acdc; +$border-color: #f3f3f3; +$white-color: #fff; +$transition-duration: 300ms; +$hover_color: #34568b;