From fcea31efc858ca485cf29c8987a9ca6184caf7b8 Mon Sep 17 00:00:00 2001 From: Danylo-Chumakov Date: Mon, 24 Apr 2023 15:39:59 +0300 Subject: [PATCH] add task solution --- readme.md | 4 +-- src/index.html | 32 +++++++++++++------- src/style.css | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 103 insertions(+), 13 deletions(-) diff --git a/readme.md b/readme.md index 09d94e0d2..b207d90d8 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://Danylo-Chumakov.github.io/layout_snake/) +- [TEST REPORT LINK](https://Danylo-Chumakov.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..8041e851f 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..cc94bc76b 100644 --- a/src/style.css +++ b/src/style.css @@ -0,0 +1,80 @@ +html { + font-family: Arial, Helvetica, sans-serif; +} + +body { + margin: 0; +} + +.conteiner { + display: flex; + flex-wrap: wrap; +} + +.block { + display: flex; + align-items: center; + text-align: center; + justify-content: center; + flex-grow: 1; + height: 300px; + width: 300px; + color: white; + font-size: 100px; +} + +.block--1 { + background-color: rgb(100%, 0%, 0%); +} + +.block--2 { + background-color: rgb(80%, 0%, 0%); +} + +.block--3 { + background-color: rgb(60%, 0%, 0%); +} + +.block--4 { + background-color: rgb(40%, 0%, 0%); +} + +.block--5 { + background-color: rgb(20%, 0%, 0%); +} + +.block--6 { + background-color: rgb(0%, 0%, 0%); +} + +@media (min-width:600px) { + .block--3 { + order: 1; + } + + .block--5 { + order: 2; + } + + .block--6 { + order: 3; + } +} + +@media (min-width:900px) { + .block { + flex-basis: 33%; + } + + .block--4 { + order: 3; + } + + .block--5 { + order: 2; + } + + .block--6 { + order: 1; + } +}