From 752b7e1999c4983442139f9f4cd46a140ed4f9be Mon Sep 17 00:00:00 2001 From: "nmaafk0510@gmail.com" Date: Sun, 25 Jun 2023 15:50:30 +0300 Subject: [PATCH 1/2] antisnake has been done --- src/index.html | 27 ++++++++++++++-------- src/styles/main.scss | 55 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 10 deletions(-) diff --git a/src/index.html b/src/index.html index e8ae736a0..df0664845 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..b78167979 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -1,3 +1,58 @@ body { margin: 0; } + +.snake { + display: flex; + align-items: center; + justify-content: center; + flex-grow: 1; + height: 300px; + min-width: 300px; + color: #fff; + font-family: Arial, Helvetica, sans-serif; + font-size: 100px; +} + +.snake--1 { + background-color: rgb(100%, 0%, 0%); +} + +.snake--2 { + background-color: rgb(80%, 0%, 0%); +} + +.snake--3 { + background-color: rgb(60%, 0%, 0%); +} + +.snake--4 { + background-color: rgb(40%, 0%, 0%); +} + +.snake--5 { + background-color: rgb(20%, 0%, 0%); +} + +.snake--6 { + background-color: rgb(0%, 0%, 0%); +} + +.container { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(300px 1fr)); +} + +@media (min-width: 900px) { + .container { + grid-template-columns: repeat(3, minmax(300px, 1fr)); + justify-content: center; + } +} + +@media (min-width: 600px) and (max-width: 899px) { + .container { + grid-template-columns: repeat(2, minmax(300px, 1fr)); + justify-content: center; + } +} From 9c7ef53505a48f673cc60338fb32ff8b3026454b Mon Sep 17 00:00:00 2001 From: Novikov Mykhaylo <122175208+MyNovikov@users.noreply.github.com> Date: Sun, 25 Jun 2023 16:01:37 +0300 Subject: [PATCH 2/2] Update readme.md --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index d68d05d4a..c27d9bcc5 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://MyNovikov.github.io/layout_antisnake/) +- [TEST REPORT LINK](https://MyNovikov.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) ___