diff --git a/readme.md b/readme.md index 67cabc463e..0987f56050 100644 --- a/readme.md +++ b/readme.md @@ -1,10 +1,10 @@ # Stars block Replace `` with your Github username and copy the links to Pull Request description: -- [DEMO LINK](https://.github.io/layout_stars/) -- [TEST REPORT LINK](https://.github.io/layout_stars/report/html_report/) +- [DEMO LINK](https://katya-sn.github.io/layout_stars/) +- [TEST REPORT LINK](https://katya-sn.github.io/layout_stars/report/html_report/) > Follow [this instructions](https://mate-academy.github.io/layout_task-guideline) -___ + > Disable `Multiplayer Cursors` in figma to hide other cursors ([Learn how](https://mate-academy.github.io/layout_task-guideline/figma.html#multiplayer-cursors)) ___ diff --git a/src/index.html b/src/index.html index 3963c1c4cd..d47c73361d 100644 --- a/src/index.html +++ b/src/index.html @@ -9,5 +9,58 @@

Stars

+ +
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
diff --git a/src/style.css b/src/style.css index e69de29bb2..6f014ec1fc 100644 --- a/src/style.css +++ b/src/style.css @@ -0,0 +1,43 @@ +html { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +.page { + display: flex; +} + +.page__container { + display: flex; + flex-direction: column; +} + +.stars { + display: flex; +} + +.stars__star { + width: 16px; + height: 16px; + background-image: url(/images/star.svg); + background-position: center; + background-repeat: no-repeat; + margin-left: 4px; +} + +.stars :first-child { + margin-left: 0; +} + +.stars :last-child { + margin-right: 0; +} + +.stars--5 .stars__star, +.stars--1 .stars__star:nth-child(-n + 1), +.stars--2 .stars__star:nth-child(-n + 2), +.stars--3 .stars__star:nth-child(-n + 3), +.stars--4 .stars__star:nth-child(-n + 4) { + background-image: url(/images/star-active.svg); +}