diff --git a/readme.md b/readme.md index 4b7905be2..609999408 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,7 @@ # Boilerplate for layout tasks Replace `` with your Github username and copy the links to Pull Request description: -- [DEMO LINK](https://.github.io/layout_snake/) -- [TEST REPORT LINK](https://.github.io/layout_snake/report/html_report/) +- [DEMO LINK](https://kyrylomanko.github.io/layout_snake/) +- [TEST REPORT LINK](https://kyrylomanko.github.io/layout_snake/report/html_report/) > Follow [this instructions](https://mate-academy.github.io/layout_task-guideline) diff --git a/src/index.html b/src/index.html index b20c6e96c..67f0150e9 100644 --- a/src/index.html +++ b/src/index.html @@ -1,14 +1,21 @@ - - - - - Snake - - - -

Snake

- + + + + + Snake + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
+ diff --git a/src/style.css b/src/style.css index e69de29bb..88cbe7aa8 100644 --- a/src/style.css +++ b/src/style.css @@ -0,0 +1,77 @@ +body { + margin: 0; +} + +html { + font-family: Arial, sans-serif; +} + +.container { + display: flex; + flex-wrap: wrap; +} + +.block { + display: flex; + align-items: center; + justify-content: center; + flex-basis: 33.33%; + min-width: 300px; + height: 300px; + color: #fff; + font-size: 100px; +} + +.block--1 { + background-color: rgb(100%, 0%, 0%); + order: 1; +} + +.block--2 { + background-color: rgb(80%, 0%, 0%); + order: 2; +} + +.block--3 { + background-color: rgb(60%, 0%, 0%); + order: 3; +} + +.block--4 { + background-color: rgb(40%, 0%, 0%); + order: 6; +} + +.block--5 { + background-color: rgb(20%, 0%, 0%); + order: 5; +} + +.block--6 { + background-color: rgb(0%, 0%, 0%); + order: 4; +} + +@media (min-width: 600px) and (max-width: 899px) { + .block--4 { + order: 2; + } + .block--5 { + order: 4; + } + .block { + flex-basis: 50%; + } +} + +@media (max-width: 599px) { + .block--4 { + order: 4; + } + .block--6 { + order: 6; + } + .block { + flex-basis: 100%; + } +}