diff --git a/readme.md b/readme.md index 4b7905be2..4cf957076 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://steveforde.github.io/layout_snake/) +- [TEST REPORT LINK](https://steveforde.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..c844bf2c4 100644 --- a/src/index.html +++ b/src/index.html @@ -1,14 +1,20 @@ - + - - - - - Snake - - - -

Snake

- + + + + + Snake + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
+ diff --git a/src/style.css b/src/style.css index e69de29bb..9adb271d2 100644 --- a/src/style.css +++ b/src/style.css @@ -0,0 +1,77 @@ +body { + margin: 0; +} + +.container { + display: flex; + flex-wrap: wrap; + justify-content: center; +} + +.container > div { + flex: 0 0 100%; + height: 300px; + color: white; + font-family: Arial, serif; + font-size: 100px; + text-align: center; + line-height: 300px; +} + +.container > div:nth-child(1) { + background: rgb(255, 0, 0); + order: 1; +} + +.container > div:nth-child(2) { + background: rgb(204, 0, 0); + order: 2; +} + +.container > div:nth-child(3) { + background: rgb(153, 0, 0); + order: 3; +} + +.container > div:nth-child(4) { + background: rgb(102, 0, 0); + order: 4; +} + +.container > div:nth-child(5) { + background: rgb(51, 0, 0); + order: 5; +} + +.container > div:nth-child(6) { + background: rgb(0, 0, 0); + order: 6; +} + +@media (min-width: 600px) and (max-width: 899px) { + .container > div { + flex-basis: 50%; + } + + .container > div:nth-child(3) { + order: 4; + } + + .container > div:nth-child(4) { + order: 3; + } +} + +@media (min-width: 900px) { + .container > div { + flex-basis: 33.33%; + } + + .container > div:nth-child(4) { + order: 6; + } + + .container > div:nth-child(6) { + order: 4; + } +}