From 587e9e3a47d23f97b435fb8a0847edbc8af5b2b6 Mon Sep 17 00:00:00 2001 From: Svetlana Kravchenko Date: Tue, 25 Apr 2023 16:44:16 +0300 Subject: [PATCH] some message --- .linthtmlrc.json | 48 ++++++++++++++++++++++- package.json | 2 +- readme.md | 4 +- src/index.html | 27 ++++++++----- src/style.css | 99 ++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 166 insertions(+), 14 deletions(-) diff --git a/.linthtmlrc.json b/.linthtmlrc.json index 0f2047a73..774726ebe 100644 --- a/.linthtmlrc.json +++ b/.linthtmlrc.json @@ -1,3 +1,49 @@ { - "extends": "@mate-academy/linthtml-config" + "attr-bans": [ + "align", + "background", + "bgcolor", + "border", + "frameborder", + "style" + ], + "attr-name-ignore-regex": "viewBox", + "attr-no-dup": true, + "attr-quote-style": "double", + "attr-req-value": true, + "class-no-dup": true, + "doctype-first": true, + "doctype-html5": true, + "fig-req-figcaption": true, + "head-req-title": true, + "html-req-lang": true, + "id-class-style": false, + "id-no-dup": true, + "img-req-src": true, + "img-req-alt": "allownull", + "indent-width": 2, + "indent-style": "spaces", + "indent-width-cont": true, + "input-radio-req-name": true, + "spec-char-escape": true, + "tag-bans": [ + "b", + "i", + "u", + "center", + "style", + "marquee", + "font", + "s" + ], + "tag-name-lowercase": true, + "tag-name-match": true, + "tag-self-close": "never", + "tag-close": true, + "text-ignore-regex": "&", + "title-no-dup": true, + "line-end-style": "lf", + "attr-new-line": 2, + "attr-name-style": "dash", + "attr-no-unsafe-char": true } diff --git a/package.json b/package.json index 0e21c59e8..7aea2241e 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "@mate-academy/bemlint": "^0.1.1", "@mate-academy/eslint-config": "*", "@mate-academy/linthtml-config": "0.0.2", - "@mate-academy/scripts": "^0.9.1", + "@mate-academy/scripts": "^1.2.8", "@mate-academy/stylelint-config": "*", "backstopjs": "^5.0.1", "eslint": "^5.16.0", diff --git a/readme.md b/readme.md index 09d94e0d2..74cc8527f 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://Svitlanchick.github.io/layout_snake/) +- [TEST REPORT LINK](https://Svitlanchick.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..4829c382a 100644 --- a/src/index.html +++ b/src/index.html @@ -1,14 +1,21 @@ - - - + + - - Snake - - - -

Snake

- + + Snake + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
+ diff --git a/src/style.css b/src/style.css index e69de29bb..199f81131 100644 --- a/src/style.css +++ b/src/style.css @@ -0,0 +1,99 @@ +body { + font-family: Arial, Helvetica, sans-serif; + font-size: 100px; + margin: 0; +} + +.container { + display: flex; + flex-wrap: wrap; + flex-direction: column; +} + +.block { + display: flex; + flex-basis: 300px; + flex-direction: column; + flex-grow: 1; + height: 300px; + color: white; + text-align: center; + justify-content: center; + align-content: stretch; + +} + +.block--1 { + background-color: rgb(255 0 0); +} + +.block--2 { + background-color: rgb(204, 0, 0); +} + +.block--3 { + background-color: rgba(153, 0, 0); +} + +.block--4 { + background-color: rgb(102, 0, 0); +} + +.block--5 { + background-color: rgb(51, 0, 0); +} + +.block--6 { + background-color: rgb(0, 0, 0); +} + +@media screen and (min-width: 900px) { + .container { + flex-direction: row; + align-content: stretch; + } + .block { + flex-basis: 33%; + } + .block--3 { + flex-grow: 1; + order: 1; + } + .block--4 { + flex-grow: 1; + order: 4; + } + .block--5 { + flex-grow: 1; + order: 3; + } + .block--6 { + flex-grow: 1; + order: 2; + } +} + +@media screen and (min-width: 600px) and (max-width: 899px) { + .container { + flex-direction: row; + } + .block--3 { + order: 2; + } + .block--4 { + order: 1; + } + .block--5 { + order: 3; + } + .block--6 { + order: 4; + } +} + +@media screen and (min-width: 300px) and (max-width: 599px) { + .container { + display: flex; + flex-direction: row; + } +}