Skip to content

Commit

Permalink
added another task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOldDream committed Jul 27, 2023
1 parent 8050ba8 commit e1328fb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 47 deletions.
32 changes: 15 additions & 17 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<body>
<script type="text/javascript" src="./main.js"></script>
<form action="https://mate-academy-form-lesson.herokuapp.com/create-application" method="post">
<fieldset class="personalInformation" id="firstSection">
<fieldset class="personalInformation firstSection">
<legend>Personal information</legend>
<label class="form_field" id="fristInput">
<label class="form_field firstInput">
Surname:
<input
name="Surname"
Expand Down Expand Up @@ -61,7 +61,7 @@
>
</label>

<label class="form_field" id="fifthInput">
<label class="form_field lastInput">
I accept the term of the agreement
<input
type="checkbox"
Expand All @@ -73,9 +73,9 @@
</fieldset>


<fieldset class="registration" id="secondSection">
<fieldset class="registration">
<legend>Registration</legend>
<label class="form_field" id="sixthInput">
<label class="form_field firstInput">
E-mail:
<input
name="Email"
Expand All @@ -87,7 +87,7 @@
>
</label>

<label class="form_field" id="seventhInput">
<label class="form_field lastInput">
Password:
<input
name="Password"
Expand All @@ -99,35 +99,33 @@
</label>
</fieldset>

<fieldset class="aifay" id="thirdSection">
<fieldset class="aifay">
<legend>An interesting fact about you!</legend>
Do you love cats?
<label
for="Yes"
class="form_field"
id="eighthInput-1"
class="form_field firstInput eighthInput-1"
>
Yes
<input
name="Answer"
type="radio"
value="Answer"
id="Yes"
>
Yes
</label>

<label
for="No"
class="form_field"
id="eighthInput-2"
class="form_field firstInput eighthInput-2"
>
No
<input
name="Answer"
type="radio"
value="Answer"
id="No"
>
No
</label>

<label class="form_field">
Expand Down Expand Up @@ -158,7 +156,7 @@
</select>
</label>

<label class="form_field" id="twelfthInput">
<label class="form_field lastInput">
How do you rate our work?
<input
type="range"
Expand All @@ -168,9 +166,9 @@
</label>
</fieldset>

<fieldset class="additionalInformation" id="fourthSection">
<fieldset class="additionalInformation fourthSection">
<legend>Additional info:</legend>
<label class="form_field" id="thirteenthInput">
<label class="form_field firstInput">
Comments:
<textarea
name="comment"
Expand All @@ -180,7 +178,7 @@
></textarea>
</label>

<label class="form_field" id="fourteenthInput">
<label class="form_field lastInput">
Would you reccomend us?
<select name="select">
<option value="select" disabled>Please select an option</option>
Expand Down
38 changes: 8 additions & 30 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,48 +24,26 @@
margin-bottom: 15px;
}

#firstSection {
.firstSection {
margin-top: 0;
}

#fourthSection {
.fourthSection {
margin-bottom: 0;
}

#firstInput {
.firstInput {
margin-top: 0;
}

#fifthInput {
.lastInput {
margin-bottom: 0;
}

#sixthInput {
margin-top: 0;
.eighthInput-1 {
display: inline-block;
}

#seventhInput {
margin-bottom: 0;
}

#eighthInput-1 {
margin-top: 0;
display: inline;
}

#eighthInput-2 {
margin-top: 0;
display: inline;
}

#twelfthInput {
margin-bottom: 0;
}

#thirteenthInput {
margin-top: 0;
}

#fourteenthInput {
margin-bottom: 0;
.eighthInput-2 {
display: inline-block;
}

0 comments on commit e1328fb

Please sign in to comment.