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/dist/index.html b/dist/index.html new file mode 100644 index 000000000..e0ba0df01 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,22 @@ + + + + + + + Snakee + + + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
+ + diff --git a/readme.md b/readme.md index 4b7905be2..2ce03829f 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://Patryk-Buczkowski.github.io/layout_snake/) +- [TEST REPORT LINK](https://Patryk-Buczkowski.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..02f48f2b8 100644 --- a/src/index.html +++ b/src/index.html @@ -1,14 +1,23 @@ - - - + + - - Snake - - - -

Snake

- + + Snakee + + + + + +
+
1
+
2
+
3
+
4
+
5
+
6
+
+ diff --git a/src/style.css b/src/style.css index e69de29bb..e227bc81c 100644 --- a/src/style.css +++ b/src/style.css @@ -0,0 +1,100 @@ +* { + box-sizing: border-box; +} + +body { + margin: 0; +} + +.container { + display: flex; + flex-wrap: wrap; + flex-direction: row; +} + +.block { + display: flex; + align-items: center; + justify-content: center; + height: 300px; + width: 100%; + font-size: 100px; + font-family: Arial, Helvetica, sans-serif; + 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 { + flex-direction: row; + } + + .block { + flex-basis: 50%; + } + + .block--4 { + order: 1; + } + + .block--3 { + order: 2; + } + + .block--5 { + order: 3; + } + + .block--6 { + order: 4; + } +} + +@media (min-width:900px) { + .container { + flex-direction: row; + } + + .block { + flex-basis: 33.33%; + } + + .block--4 { + order: 6; + } + + .block--5 { + order: 5; + } + + .block--6 { + order: 4; + } +}