From 80845d911779a140b9ed659ed9715c898b5260e1 Mon Sep 17 00:00:00 2001 From: Kacper Date: Fri, 19 May 2023 14:15:09 +0200 Subject: [PATCH 01/10] readme.md --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index ed4805f1..57b4bab0 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,7 @@ # HTML form Replace `` with your Github username and copy the links to Pull Request description: -- [DEMO LINK](https://.github.io/layout_html-form/) -- [TEST REPORT LINK](https://.github.io/layout_html-form/report/html_report/) +- [DEMO LINK](https://Kacper-Leman.github.io/layout_html-form/) +- [TEST REPORT LINK](https://Kacper-Leman.github.io/layout_html-form/report/html_report/) > Follow [this instructions](https://mate-academy.github.io/layout_task-guideline/#how-to-solve-the-layout-tasks-on-github) ___ @@ -40,7 +40,7 @@ Create HTML page with form. On form submit send form data to `https://mate-acade - Age should be at least `1` and at max `100` with a default value of `12` - The email field should have placeholder value: `email@example.com`. - Text fields should have `autocomplete="off"`. -- `Submit` button should have a `type="submit"` +- `Submit` button should have a `type="submit"` - Vertical distance between inputs should be `10px` - Vertical distance between groups should be `20px` - Any other styles should be browser default From f9d7dcc63e2a4e0ad61b0c87fbd0d701b7fe20f6 Mon Sep 17 00:00:00 2001 From: Kacper Date: Fri, 19 May 2023 14:53:52 +0200 Subject: [PATCH 02/10] ./src --- .linthtmlrc.json | 48 +++++++++++++++++++++++++++++++++++++++++++++++- src/index.html | 29 ++++++++++++++++++++++++++++- src/style.css | 9 ++++++++- 3 files changed, 83 insertions(+), 3 deletions(-) diff --git a/.linthtmlrc.json b/.linthtmlrc.json index 0f2047a7..774726eb 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/src/index.html b/src/index.html index 3348db1c..d3aad37f 100644 --- a/src/index.html +++ b/src/index.html @@ -11,7 +11,34 @@ -

HTML Form

+
+
+ Surname: +
+ +
+ Name: +
+ +
+ How old are You? +
+ +
+ Full date of birth: +
+ +
+ I accept the term of the agreement +
+ + +
diff --git a/src/style.css b/src/style.css index c4301db2..3bce2965 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,8 @@ -/* styles go here */ +html { + font-family: sans-serif; +} + +.form { + padding: 10px; + border: 1px solid black; +} From 2ab53c401f7b97afc62f6f7cbb2553f749ac6d4a Mon Sep 17 00:00:00 2001 From: Kacper Date: Fri, 19 May 2023 15:18:08 +0200 Subject: [PATCH 03/10] ./src --- src/index.html | 19 +++++++------------ src/style.css | 4 ++++ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/index.html b/src/index.html index d3aad37f..f36637d6 100644 --- a/src/index.html +++ b/src/index.html @@ -12,29 +12,24 @@
-
+
Surname:
-
+
Name:
-
- How old are You? +
+ How old are You?
-
+
Full date of birth:
-
- I accept the term of the agreement +
+ I accept the term of the agreement
diff --git a/src/style.css b/src/style.css index 3bce2965..a21c249b 100644 --- a/src/style.css +++ b/src/style.css @@ -6,3 +6,7 @@ html { padding: 10px; border: 1px solid black; } + +.form-field { + margin-bottom: 10px; +} From 824f62cc1a281d07c5650f124dd598e269a8b856 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 22 May 2023 10:53:21 +0200 Subject: [PATCH 04/10] ./src --- src/index.html | 54 +++++++++++++++++++++++++++++++++++++++----------- src/style.css | 11 ++++++++-- 2 files changed, 51 insertions(+), 14 deletions(-) diff --git a/src/index.html b/src/index.html index f36637d6..34e46917 100644 --- a/src/index.html +++ b/src/index.html @@ -12,28 +12,58 @@ -
+
+ Personal information +
Surname: -
+
-
+
Name: -
+
-
- How old are You? -
+
+ How old are You? -
+
+ +
Full date of birth: -
+
-
+
I accept the term of the agreement -
+
+ + +
+ Registration +
+ E-mail: +
+
+ Password: +
+
- +
+ An interesting fact about you! +
+ Do you love cats? + + + +
+ +
+ + diff --git a/src/style.css b/src/style.css index a21c249b..95d517c1 100644 --- a/src/style.css +++ b/src/style.css @@ -3,10 +3,17 @@ html { } .form { - padding: 10px; - border: 1px solid black; + margin-top: 20px; } .form-field { margin-bottom: 10px; } + +.fieldset { + margin-top: 20px; +} + +.button { + margin-top: 20px; +} From 2687a6bcc735aefb7a1b27da4fd6c0c2704d1ccf Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 22 May 2023 12:01:54 +0200 Subject: [PATCH 05/10] ./src --- src/index.html | 101 ++++++++++++++++++++++++++++++++++++++++--------- src/style.css | 9 +---- 2 files changed, 84 insertions(+), 26 deletions(-) diff --git a/src/index.html b/src/index.html index 34e46917..5b3de94d 100644 --- a/src/index.html +++ b/src/index.html @@ -14,56 +14,121 @@
Personal information -
- Surname: +
+ Surname:
- Name: + Name:
- How old are You? + How old are You? +
- Full date of birth: + Full date of birth:
- I accept the term of the agreement + I accept the term of the agreement
Registration -
- E-mail: +
+ E-mail: +
- Password: + Password: +
An interesting fact about you!
- Do you love cats? + Do you love cats? + - +
+
+ What is your favorite color? + +
+ +
+ What time do you go to bed? + +
+ + + + +
+ How do you rate our work? + +
-
- +
+ Additional info: + +
+ Comments: + +
+ + + +
+ + diff --git a/src/style.css b/src/style.css index 95d517c1..7d91c077 100644 --- a/src/style.css +++ b/src/style.css @@ -1,13 +1,6 @@ -html { - font-family: sans-serif; -} - -.form { - margin-top: 20px; -} .form-field { - margin-bottom: 10px; + margin: 10px 0 0; } .fieldset { From f1ece48582b3b3d3a69a64554a6d691b3a81af9c Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 23 May 2023 10:54:24 +0200 Subject: [PATCH 06/10] Make fixes --- src/index.html | 160 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 125 insertions(+), 35 deletions(-) diff --git a/src/index.html b/src/index.html index 5b3de94d..272d5dde 100644 --- a/src/index.html +++ b/src/index.html @@ -15,42 +15,91 @@
Personal information
- Surname: + + +
- Name: + + +
- How old are You? - How old are You? + + -
- Full date of birth: + + +
- I accept the term of the agreement + + +
+ +
Registration
- E-mail: - E-mail: + +
+
- Password: - Password: + +
+ +
An interesting fact about you!
- Do you love cats? - Do you love cats? + + + + +
- What is your favorite color? + +
- What time do you go to bed? + +
- - +
+ + + +
- How do you rate our work? + +
+ +
Additional info:
- Comments: + +
- - +
+ + + +
- + + + From 19ec1cd66ac5853b09189280a2b42e14eeefa8ea Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 23 May 2023 11:00:11 +0200 Subject: [PATCH 07/10] Fix indentations --- src/index.html | 144 ++++++++++++++++++++++++------------------------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/src/index.html b/src/index.html index 272d5dde..91ab21a4 100644 --- a/src/index.html +++ b/src/index.html @@ -18,10 +18,10 @@
@@ -29,10 +29,10 @@
@@ -40,14 +40,14 @@
@@ -55,10 +55,10 @@
@@ -66,11 +66,11 @@
@@ -83,12 +83,12 @@ @@ -96,13 +96,13 @@ @@ -115,20 +115,20 @@ @@ -138,10 +138,10 @@ @@ -149,10 +149,10 @@ @@ -160,10 +160,10 @@ @@ -194,11 +194,11 @@ @@ -206,9 +206,9 @@ -
+
- -
Registration -
+ +
-
+
- -
An interesting fact about you! -
+ +
Yes
-
+
- -
Additional info: -
+
+ autocomplete="off" + >
-
+
-
+
Yes - @@ -164,14 +165,13 @@ autocomplete="off" multiple > -
-
+
-
+
diff --git a/src/style.css b/src/style.css index c0d8e654..4d853c98 100644 --- a/src/style.css +++ b/src/style.css @@ -1,8 +1,11 @@ - .form-field { margin-bottom: 10px; } +.form-field:last-child { + margin-bottom: 0; +} + .fieldset { margin-bottom: 20px; }