diff --git a/readme.md b/readme.md index 1e05c44f12..d5c1b78f04 100644 --- a/readme.md +++ b/readme.md @@ -21,8 +21,8 @@ Follow ❗️ 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://Dominik-Dudek-code.github.io/layout_stars/) +- [TEST REPORT LINK](https://Dominik-Dudek-code.github.io/layout_stars/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/index.html b/src/index.html index 3e4d7e8ab0..9e9ec45561 100644 --- a/src/index.html +++ b/src/index.html @@ -12,7 +12,53 @@ href="./style.css" /> - -

Stars

+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
diff --git a/src/page-content.css b/src/page-content.css new file mode 100644 index 0000000000..b28d060c8c --- /dev/null +++ b/src/page-content.css @@ -0,0 +1,3 @@ +.body-content { + margin: auto; +} diff --git a/src/stars.css b/src/stars.css new file mode 100644 index 0000000000..1bc8917020 --- /dev/null +++ b/src/stars.css @@ -0,0 +1,37 @@ +.stars { + display: flex; + flex-direction: row; +} + +.stars__star { + background-image: url('images/star.svg'); + background-size: cover; + background-repeat: no-repeat; + height: 12px; + width: 13px; + margin: 2px 5px 2px 2px; +} + +.stars > :last-child { + margin-right: 0; +} + +.stars--1 > :nth-child(-n + 1) { + background-image: url('images/star-active.svg'); +} + +.stars--2 > :nth-child(-n + 2) { + background-image: url('images/star-active.svg'); +} + +.stars--3 > :nth-child(-n + 3) { + background-image: url('images/star-active.svg'); +} + +.stars--4 > :nth-child(-n + 4) { + background-image: url('images/star-active.svg'); +} + +.stars--5 > :nth-child(-n + 5) { + background-image: url('images/star-active.svg'); +} diff --git a/src/style.css b/src/style.css index a63fa10d43..64cde0ef40 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,3 @@ /* add styles here */ +@import 'stars.css'; +@import 'page-content.css';