-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add task solution #794
Open
Luk2asz
wants to merge
3
commits into
mate-academy:master
Choose a base branch
from
Luk2asz:develop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add task solution #794
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# HTML form | ||
Replace `<your_account>` with your Github username and copy the links to Pull Request description: | ||
- [DEMO LINK](https://<your_account>.github.io/layout_html-form/) | ||
- [TEST REPORT LINK](https://<your_account>.github.io/layout_html-form/report/html_report/) | ||
- [DEMO LINK](https://Luk2asz.github.io/layout_html-form/) | ||
- [TEST REPORT LINK](https://Luk2asz.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 protected]`. | ||
- 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,214 @@ | |
name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | ||
> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<meta | ||
http-equiv="X-UA-Compatible" | ||
content="ie=edge" | ||
> | ||
<title>HTML Form</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
<link | ||
rel="stylesheet" | ||
href="./style.css" | ||
> | ||
</head> | ||
<body> | ||
<h1>HTML Form</h1> | ||
<form | ||
action="https://mate-academy-form-lesson.herokuapp.com/create-application" | ||
method="post" | ||
> | ||
<fieldset class ="chapter-wrapper"> | ||
<legend>Personal information</legend> | ||
|
||
<div class="field-wrapper"> | ||
<label for="surname">Surname:</label> | ||
|
||
<input | ||
type="text" | ||
name="surname" | ||
id="surname" | ||
autocomplete="off" | ||
> | ||
</div> | ||
|
||
<div class="field-wrapper"> | ||
<label for="name">Name:</label> | ||
|
||
<input | ||
type="text" | ||
name="name" | ||
id="name" | ||
autocomplete="off" | ||
> | ||
</div> | ||
|
||
<div class="field-wrapper"> | ||
<label for="age">How old are You?</label> | ||
|
||
<input | ||
type="number" | ||
name="age" | ||
id="age" | ||
value="12" | ||
min="1" | ||
max="100" | ||
> | ||
</div> | ||
|
||
<div class="field-wrapper"> | ||
<label for="date">Full date of birth:</label> | ||
|
||
<input | ||
type="date" | ||
name="date" | ||
id="date" | ||
> | ||
</div> | ||
|
||
<div> | ||
<label for="agree">I accept the term of the agreement</label> | ||
|
||
<input type="checkbox" | ||
name="agree" | ||
id="agree" | ||
required | ||
> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset class ="chapter-wrapper"> | ||
<legend>Registration</legend> | ||
|
||
<div class="field-wrapper"> | ||
<label for="email">E-mail:</label> | ||
|
||
<input | ||
type="email" | ||
name="email" | ||
id="email" | ||
placeholder="[email protected]" | ||
> | ||
</div> | ||
|
||
<div> | ||
<label for="password">Password:</label> | ||
|
||
<input | ||
type="password" | ||
name="password" | ||
id="password" | ||
minlength="6" | ||
maxlength="20" | ||
> | ||
</div> | ||
|
||
</fieldset> | ||
<fieldset class ="chapter-wrapper"> | ||
<legend>An interesting fact about you!</legend> | ||
|
||
<div class="field-wrapper"> | ||
Do you love cats? | ||
<input | ||
type="radio" | ||
name="cats" | ||
value="yes" | ||
id="yes" | ||
> | ||
|
||
<label for="yes">Yes</label> | ||
|
||
<input | ||
type="radio" | ||
name="cats" | ||
value="no" | ||
id="no" | ||
> | ||
|
||
<label for="no">Yes</label> | ||
</div> | ||
|
||
<div class="field-wrapper"> | ||
<label for="color">What is your favorite color?</label> | ||
|
||
<input type="color" | ||
name="color" | ||
id="color" | ||
> | ||
</div> | ||
|
||
<div class="field-wrapper"> | ||
<label for="time">What time do you go to bed?</label> | ||
|
||
<input | ||
type="time" | ||
name="time" | ||
id="time" | ||
step="2" | ||
> | ||
</div> | ||
|
||
<div class="field-wrapper"> | ||
<label for="select">What are you favorite brand of cars?</label> | ||
|
||
<select | ||
name="select" | ||
id="select" | ||
multiple | ||
> | ||
<option value="BMW">BMW</option> | ||
<option value="Audi">Audi</option> | ||
<option value="Lada">Lada</option> | ||
</select> | ||
</div> | ||
|
||
<div> | ||
<label for="range">How do you rate our work?</label> | ||
|
||
<input | ||
type="range" | ||
name="range" | ||
id="range" | ||
min="0" | ||
max="10" | ||
value="5" | ||
placeholder="5" | ||
> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset class ="chapter-wrapper"> | ||
<legend>Additional info</legend> | ||
|
||
<div class="field-wrapper"> | ||
<label for="textarea">Comments:</label> | ||
|
||
<textarea | ||
name="textarea" | ||
id="textarea" | ||
></textarea> | ||
</div> | ||
|
||
<div> | ||
<label for="recommend">Would you recommend us?</label> | ||
|
||
<select | ||
name="recommend" | ||
id="recommend" | ||
> | ||
<option value="yes">yes</option> | ||
<option value="no">no</option> | ||
</select> | ||
</div> | ||
</fieldset> | ||
|
||
<div class="field-wrapper"> | ||
<input | ||
type="submit" | ||
value="Submit" | ||
> | ||
</div> | ||
|
||
</form> | ||
|
||
<script type="text/javascript" src="./main.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
/* styles go here */ | ||
.field-wrapper { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.chapter-wrapper { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would suggest here to give a more descriptive name for this class, maybe something like .fieldset-wrapper or .form-section :) |
||
margin-bottom: 20px; | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The label text for the 'no' radio button should be 'No' instead of 'Yes'