diff --git a/readme.md b/readme.md index 09d94e0d2..0a610acce 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://natalia-serogina.github.io/layout_snake/) +- [TEST REPORT LINK](https://natalia-serogina.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..cb5438524 100644 --- a/src/index.html +++ b/src/index.html @@ -1,14 +1,24 @@ - - - - - Snake - - - -

Snake

- + + + + + + Snake + + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
+ + diff --git a/src/style.css b/src/style.css index e69de29bb..e4fb02aa9 100644 --- a/src/style.css +++ b/src/style.css @@ -0,0 +1,80 @@ +html body { + margin: 0; +} + +* { + box-sizing: border-box; +} + +.container { + display: flex; + flex-wrap: wrap; +} + +.box { + display: flex; + justify-content: center; + align-items: center; + min-width: 300px; + width: 100%; + height: 300px; + font-family: Arial, Helvetica, sans-serif; + font-size: 100px; + color: white; +} + +.box-1 { + background: rgb(255, 0, 0); +} + +.box-2 { + background: rgb(204, 0, 0); +} + +.box-3 { + background: rgb(153, 0, 0); +} + +.box-4 { + background: rgb(102, 0, 0); +} + +.box-5 { + background: rgb(51, 0, 0); +} + +.box-6 { + background: rgb(0, 0, 0); +} + +@media (min-width: 600px) { + .box { + width: 50%; + } + .box-4 { + order: 1; + } + .box-3 { + order: 2; + } + .box-5, + .box-6 { + order: 3; + } +} + +@media (min-width: 900px) { + .box { + width: 33.3%; + } + .box-4 { + order: 3; + } + .box-5 { + order: 2; + } + .box-6, + .box-3 { + order: 1; + } +}