diff --git a/readme.md b/readme.md index b1f43ed970..54ef55f055 100644 --- a/readme.md +++ b/readme.md @@ -23,8 +23,8 @@ This is possible because [we use the Parcel library](https://en.parceljs.org/scs ❗️ Replace `` with your GitHub username and copy the links to the `Pull Request` description: -- [DEMO LINK](https://.github.io/layout_product-cards/) -- [TEST REPORT LINK](https://.github.io/layout_product-cards/report/html_report/) +- [DEMO LINK](https://greyhoundIlya.github.io/layout_product-cards/) +- [TEST REPORT LINK](https://greyhoundIlya.github.io/layout_product-cards/report/html_report/) ❗️ Copy this `Checklist` to the `Pull Request` description after links, and put `- [x]` before each point after you checked it. diff --git a/src/images/Star-png.png b/src/images/Star-png.png new file mode 100644 index 0000000000..28b43e4a70 Binary files /dev/null and b/src/images/Star-png.png differ diff --git a/src/images/Star-star.svg b/src/images/Star-star.svg new file mode 100644 index 0000000000..4b6839bc12 --- /dev/null +++ b/src/images/Star-star.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/images/img-imac-png.png b/src/images/img-imac-png.png new file mode 100644 index 0000000000..f513de5c2a Binary files /dev/null and b/src/images/img-imac-png.png differ diff --git a/src/index.html b/src/index.html index 43745cc17f..0f7cd8fa2a 100644 --- a/src/index.html +++ b/src/index.html @@ -11,8 +11,126 @@ rel="stylesheet" href="./styles/index.scss" /> + + + + + -

Product cards

+
+ Appleimac +

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

+

Product code: 195434

+ +
+
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+

Reviews: 5

+
+ +
+

Price:

+

$2,199

+
+ + +
diff --git a/src/styles/change.scss b/src/styles/change.scss new file mode 100644 index 0000000000..29ea4c0d2d --- /dev/null +++ b/src/styles/change.scss @@ -0,0 +1,4 @@ +$colors-btn: #00acdc; +$colors-backgraund: #f3f3f3; +$color-grey: #616070; +$color-dark-blue: #060b35; diff --git a/src/styles/index.scss b/src/styles/index.scss index 293d3b1f13..d935ed0188 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1,3 +1,105 @@ +@import './change'; + body { + margin: 8px; + padding: 0; + font-family: Roboto, sans-serif; + box-sizing: border-box; + display: block; +} + +.card { + border: 1px solid $colors-backgraund; + width: 200px; + padding: 32px 16px 16px; + box-sizing: border-box; + background-color: #fff; + + &-image { + display: block; + width: 160px; + height: 134px; + margin: 0 auto 40px; + } + + &-product-code { + color: $color-grey; + font-size: 10px; + font-weight: 400; + } + + &-name { + line-height: 18px; + color: $color-dark-blue; + font-size: 12px; + font-weight: 500; + margin-bottom: 4px; + } + + &-button { + color: white; + background-color: #00acdc; + width: 166px; + height: 40px; + border: none; + border-radius: 5px; + } + + &_reviews { + color: $color-dark-blue; + font-size: 10px; + font-weight: 400; + line-height: 14px; + } + + &-stars { + display: flex; + justify-content: space-between; + align-items: center; + margin-top: 16px; + margin-bottom: 24px; + } + + &-price { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 16px; + } +} + +p { margin: 0; } + +.card-button:hover { + color: $colors-btn; + background-color: $colors-backgraund; + border: 1px solid $colors-btn; +} + +.stars { + display: flex; +} + +.stars-star { + display: flex; + align-items: center; + width: 16px; + height: 16px; + margin-left: 4px; +} + +.price { + font-size: 12px; + line-height: 18px; + color: $color-grey; + font-weight: 400; +} + +.total { + font-weight: 700; + line-height: 18px; + font-size: 16px; + color: $color-dark-blue; +}