diff --git a/readme.md b/readme.md index 09d94e0d2..630065ce0 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://holytimy4.github.io/layout_snake/) +- [TEST REPORT LINK](https://holytimy4.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..75af22ebd 100644 --- a/src/index.html +++ b/src/index.html @@ -1,14 +1,23 @@ - + - - - - - Snake - - - -

Snake

- + + + + + Snake + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
+ diff --git a/src/style.css b/src/style.css index e69de29bb..ce0ba55c0 100644 --- a/src/style.css +++ b/src/style.css @@ -0,0 +1,88 @@ +body { + margin: 0; + padding: 0; +} + +.container { + display: flex; + flex-wrap: wrap; + flex-direction: column; + justify-content: center; +} + +.block { + display: flex; + flex-shrink: 0; + flex-grow: 1; + + justify-content: center; + align-items: center; + + height: 300px; + flex-basis: 300px; + background-color: black; + + font-family: Arial, sans-serif; + font-size: 100px; + color: white; +} + +.block-1 { + background-color: red; +} + +.block-2 { + background-color: rgb(204, 0, 0); +} + +.block-3 { + background-color: rgb(153, 0, 0); +} + +.block-4 { + background-color: rgb(102, 0, 0); +} + +.block-5 { + background-color: rgb(51, 0, 0); +} + +.block-6 { + background-color: black; +} + +@media (min-width:600px) { + .container { + flex-direction: row; + } + .block-3 { + order: 1; + } + + .block-5 { + order: 2; + } + + .block-6 { + order: 3; + } + +} + +@media (min-width:900px) { + .block { + flex-basis: calc(100% / 3); + } + + .block-4 { + order: 6; + } + + .block-5 { + order: 5; + } + + .block-6 { + order: 4; + } +}