From 0c7fa148e3323a0aa81f7d8b302675b23db33e8b Mon Sep 17 00:00:00 2001 From: Svyatoslav Date: Wed, 19 Jul 2023 18:01:26 +0300 Subject: [PATCH] solution --- readme.md | 4 ++-- src/index.html | 27 ++++++++++++++--------- src/styles/main.scss | 52 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+), 12 deletions(-) diff --git a/readme.md b/readme.md index d68d05d4a..7166f3da2 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://Svyatoslav-kolom.github.io/layout_antisnake/) +- [TEST REPORT LINK](https://Svyatoslav-kolom.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..a79bdaffb 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..ecd8fc205 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -1,3 +1,55 @@ body { margin: 0; } + +.block { + height: 300px; + min-width: 300px; + color: white; + font-size: 100px; + font-family: Arial, Helvetica, sans-serif; + display: flex; + align-items: center; + justify-content: center; +} + +.container { + display: grid; + grid-template-columns: repeat(1, 1fr); +} + +@media (min-width: 600px) { + .container { + grid-template-columns: repeat(2, 1fr); + } +} + +@media (min-width: 900px) { + .container { + grid-template-columns: repeat(3, 1fr); + } +} + +.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%); +}