diff --git a/src/index.html b/src/index.html index 9cff78eeb7..168883952a 100644 --- a/src/index.html +++ b/src/index.html @@ -22,6 +22,345 @@ -

Catalog

+
+ + +
+ +
+
+ iMac +

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

+

Product code: 195434

+
+
+
+
+
+
+
+
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + BUY + +
+ +
+ iMac +

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

+

Product code: 195434

+
+
+
+
+
+
+
+
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + BUY + +
+ +
+ iMac +

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

+

Product code: 195434

+
+
+
+
+
+
+
+
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + BUY + +
+ +
+ iMac +

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

+

Product code: 195434

+
+
+
+
+
+
+
+
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + BUY + +
+ +
+ iMac +

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

+

Product code: 195434

+
+
+
+
+
+
+
+
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + BUY + +
+ +
+ iMac +

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

+

Product code: 195434

+
+
+
+
+
+
+
+
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + BUY + +
+ +
+ iMac +

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

+

Product code: 195434

+
+
+
+
+
+
+
+
+

Reviews: 5

+
+
+

Price:

+

$2,199

+
+ + BUY + +
+ +
+ iMac +

+ 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..b0fc301cc1 --- /dev/null +++ b/src/styles/card.scss @@ -0,0 +1,100 @@ +.card { + border-radius: 5px; + width: 200px; + margin: 0; + padding: 32px 16px 16px; + font-family: $font-family; + border: 1px solid #f3f3f3; + transition: + transform 0.3s ease, + color 0.3s ease; + + &__image { + width: 160px; + height: 134px; + margin: 0 auto 40px; + display: block; + } + + &__title { + font-size: 12px; + font-weight: 500; + line-height: 18px; + color: $font-color; + margin-bottom: 4px; + transition: color 0.3s ease; + } + + &__code { + font-size: 10px; + line-height: 14px; + color: $light-grey; + margin-bottom: 16px; + } + + &__review { + align-items: center; + justify-content: space-between; + display: flex; + margin-bottom: 24px; + + &_count { + font-size: 10px; + font-weight: 400; + line-height: 14px; + color: $font-color; + } + } + + &__price { + margin-bottom: 16px; + display: flex; + justify-content: space-between; + align-items: center; + + &_text { + font-size: 12px; + font-weight: 400; + line-height: 18px; + color: $light-grey; + } + + &_count { + font-size: 16px; + font-weight: 700; + line-height: 18px; + color: $font-color; + } + } + + &__button { + display: flex; + justify-content: center; + align-items: center; + width: 100%; + height: 40px; + background-color: $primary-color; + color: white; + font-size: 14px; + line-height: 16px; + font-weight: 700; + text-decoration: none; + border-radius: 5px; + transition: background-color 0.3s ease; + cursor: pointer; + border: 1px solid $primary-color; + + &:hover { + background-color: #fff; + color: $primary-color; + } + } +} + +.card:hover { + transform: scale(1.2); + + .card__title { + color: #34568b; + } +} diff --git a/src/styles/colors.scss b/src/styles/colors.scss new file mode 100644 index 0000000000..18b708deeb --- /dev/null +++ b/src/styles/colors.scss @@ -0,0 +1,4 @@ +$primary-color: #00acdc; +$font-color: #060b35; +$light-grey: #616070; +$font-family: 'Roboto', sans-serif; diff --git a/src/styles/container.scss b/src/styles/container.scss new file mode 100644 index 0000000000..41b6eee953 --- /dev/null +++ b/src/styles/container.scss @@ -0,0 +1,19 @@ +.container { + display: grid; + grid-template-columns: repeat(1, 200px); + gap: 46px 48px; + justify-content: center; + padding: 50px 40px; + + @media (min-width: 488px) { + grid-template-columns: repeat(2, 200px); + } + + @media (min-width: 768px) { + grid-template-columns: repeat(3, 200px); + } + + @media (min-width: 1024px) { + grid-template-columns: repeat(4, 200px); + } +} diff --git a/src/styles/index.scss b/src/styles/index.scss index 293d3b1f13..d6c4f5e121 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1,3 +1,58 @@ +@import 'colors', 'navigation', 'container', 'card', 'stars'; + +html { + font-family: $font-family; + font-size: 12px; + line-height: 14.06px; +} + body { margin: 0; } + +.header { + display: flex; + justify-content: end; + gap: 243px; + height: 60px; + font-family: $font-family; + font-weight: 500; + font-size: 12px; + line-height: 14px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + padding-right: 50px; +} + +.logo { + display: flex; + position: absolute; + top: 10px; + left: 50px; + margin: 0; +} + +.is-active { + color: $primary-color; + position: relative; + text-decoration: none; +} + +.is-active::after { + content: ''; + background-color: $primary-color; + border-radius: 8px; + width: 100%; + height: 4px; + position: absolute; + bottom: 0; + left: 0; +} + +* { + box-sizing: border-box; +} + +h2, +p { + margin: 0; +} diff --git a/src/styles/navigation.scss b/src/styles/navigation.scss new file mode 100644 index 0000000000..9ab807fb75 --- /dev/null +++ b/src/styles/navigation.scss @@ -0,0 +1,28 @@ +.nav__list { + display: flex; + gap: 20px; + list-style-type: none; + margin: 0; + padding: 0; +} + +.nav__link { + color: #060b35; + cursor: pointer; + text-transform: uppercase; + transition: color 0.3s; + position: relative; + line-height: 60px; + display: block; + height: 60px; + text-decoration: none; +} + +.nav { + display: flex; + align-items: center; +} + +.nav__link:hover { + color: $primary-color; +} diff --git a/src/styles/stars.scss b/src/styles/stars.scss new file mode 100644 index 0000000000..06df952466 --- /dev/null +++ b/src/styles/stars.scss @@ -0,0 +1,22 @@ +.stars { + display: flex; + gap: 4px; + padding-left: 1px; + align-items: center; +} + +.stars__star { + background-image: url(../images/star.svg); + width: 16px; + height: 16px; + background-repeat: no-repeat; + background-position: center; +} + +.stars__star-active { + background-image: url(../images/star-active.svg); + width: 16px; + height: 16px; + background-repeat: no-repeat; + background-position: center; +}