diff --git a/readme.md b/readme.md index d68d05d4a..e748a8b37 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://Patryk-Buczkowski.github.io/layout_antisnake/) +- [TEST REPORT LINK](https://Patryk-Buczkowski.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..cf8e0ad71 100644 --- a/src/index.html +++ b/src/index.html @@ -1,13 +1,21 @@ - - - - - Antisnake - - - -

Antisnake

- + + + + + Antisnake + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
+ + diff --git a/src/styles/main.scss b/src/styles/main.scss index 293d3b1f1..74de33e4e 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -1,3 +1,58 @@ body { margin: 0; } + +.container { + display: grid; + grid-template-columns: repeat(1, 100%); +} + +.block { + text-align: center; + line-height: 300px; + height: 300px; + font-family: Arial, Helvetica, sans-serif; + font-size: 100px; + min-height: 300px; + color: white; +} + +.block--1 { + background-color: rgb(255, 0, 0); +} + +.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 { + grid-template-columns: repeat(2, 50%); + } +} + +@media (min-width:900px) { + .container { + grid-template-columns: repeat(3, 33.33%); + } +}