diff --git a/readme.md b/readme.md index d68d05d4a..40ea854cc 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,7 @@ # Antisnake Replace `` with your Github username and copy the links to Pull Request description: -- [DEMO LINK](https://.github.io/layout_antisnake/) -- [TEST REPORT LINK](https://.github.io/layout_antisnake/report/html_report/) +- [DEMO LINK](https://mykhailo-kviatkovskyi.github.io/layout_antisnake/) +- [TEST REPORT LINK](https://mykhailo-kviatkovskyi.github.io/layout_antisnake/report/html_report/) > Follow [this instructions](https://github.com/mate-academy/layout_task-guideline#how-to-solve-the-layout-tasks-on-github) ___ diff --git a/src/index.html b/src/index.html index e8ae736a0..0f1b34e91 100644 --- a/src/index.html +++ b/src/index.html @@ -1,13 +1,20 @@ - - - - - Antisnake - - - -

Antisnake

- + + + + + Antisnake + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
+ diff --git a/src/styles/main.scss b/src/styles/main.scss index 293d3b1f1..91c4c6b0f 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -1,3 +1,62 @@ body { margin: 0; } + +.container { + display: grid; + grid-template-rows: repeat(2, 300px); + grid-template-columns: 1fr, 1fr, 1fr; + + grid-template-areas: "box--1 box--2 box--3" "box--4 box--5 box--6"; +} + +@media (max-width: 899px) { + .container { + grid-template-rows: repeat(3, 300px); + grid-template-columns: 1fr, 1fr; + + grid-template-areas: "box--1 box--2" "box--3 box--4" "box--5 box--6"; + } +} +@media (max-width: 599px) { + .container { + grid-template-rows: repeat(6, 300px); + grid-template-columns: 1fr; + + grid-template-areas: "box--1" "box--2" "box--3" "box--4" "box--5" "box--6"; + } +} + +.box { + height: 300px; + color: #fff; + font-family: Arial, Helvetica, sans-serif; + font-size: 100px; + display: flex; + align-items: center; + justify-content: center; +} + +.box--1 { + background-color: #f00; +} + +.box--2 { + background-color: #c00; +} + +.box--3 { + background-color: #900; +} + +.box--4 { + background-color: #600; +} + +.box--5 { + background-color: #300; +} + +.box--6 { + background-color: #000; +}