Skip to content
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

Exercise 10 #15

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5,554 changes: 2,842 additions & 2,712 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"homepage": "https://github.com/webpurple/external-courses#readme",
"devDependencies": {
"eslint": "5.4.0",
"jest": "23.5.0",
"jest": "24.8.0",
"pre-commit": "1.2.2",
"css-validator": "0.8.0",
"html-validator": "3.1.2"
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/ex10_html-css-fundamentals-part2/image/arrow.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ex10_html-css-fundamentals-part2/image/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ex10_html-css-fundamentals-part2/image/menu.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ex10_html-css-fundamentals-part2/opensans.ttf
Binary file not shown.
13 changes: 13 additions & 0 deletions src/ex10_html-css-fundamentals-part2/task-01.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
input{
margin:10px 0;
}
.interval::-webkit-outer-spin-button,
.interval::-webkit-inner-spin-button {
-webkit-appearance: none;
}
.interval{
-moz-appearance: textfield;
}
form{
font-family: arial;
}
94 changes: 94 additions & 0 deletions src/ex10_html-css-fundamentals-part2/task-01.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Task 01</title>
<link rel="stylesheet" type="text/css" href="task-01.css">
</head>
<body>
<form method="GET" action="http://httpbin.org/get">
<fieldset>
<legend>Personal data</legend>
<label>Surname
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

забыла атрибут for

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавила

<input>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не хвататет отрибутов type и id

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавила

</label>
<br>
<label>First Name
<input>
</label>
<br>
<label>Middle Name
<input>
</label>
<br>
<label>You are
<input type="radio" name="sex">
male</label>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Проверь форматирование кода

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

поправила

<label><input type="radio" name="sex">
female</label>
<br>
<label>Age
<input class="interval" type="number" min = "18" max = "101">
</label>
<br>
<label for="select">Country of Residence</label>
<select id="select">
<option disabled selected>Country</option>
<option>Russia</option>
</select>
<br>
<label>City
<input type="checkbox">
Ryazan</label>
<input type="checkbox">
<label>Moscow
</label>
<br>
<label>Photography
<input type="file">
</label>
<hr>
<label>Title
<select size="8">
<optgroup label="Technologies">
<option>Web Master</option>
<option>Database Administrator</option>
<option>Computer-aided design</option>
</optgroup>
<optgroup label="Finance">
<option>Economic Planning</option>
<option>Managment accounting</option>
<option>Budgeting and planning</option>
</optgroup>
</select>
</label>
<br>
<label>Salary
<input type="range">
</label>
<br>
<textarea cols="50" rows="10" placeholder="Tell about yourself..."></textarea>
</fieldset>
<fieldset>
<legend>Contact Information</legend>
<label>Site
<input type="url">
</label>
<br>
<label>Email
<input type="email">
</label>
<br>
<label>Phone
<input type="tel">
</label>
</fieldset>
<label>Password
<input type="password" required>
</label>
<br>
<input type="submit" value="Отправить">
<input type="reset" value="Сбросить">
</form>
</body>
</html>
27 changes: 27 additions & 0 deletions src/ex10_html-css-fundamentals-part2/task-02.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.table tr:nth-child(odd){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем ты используешь тэги, если есть классы у элементов?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

использовала классы, но все же интересно, насколько в данном случае использовать классы целесообразно, ведь код получается длиннее...

background:rgb(227,234,243);
}
.table tr:nth-child(even){
background:rgb(242,246,250);
}
.table tr:hover{
background:rgb(226,229,233);
}
.table td:nth-child(1){
text-transform:capitalize;
}
.table td:nth-child(4)::before{
content:"$";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И тут тоже форматирование поехало

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

поправила

padding: 0 5px 0 0;
}
.table__headcolumn{
padding: 15px;
text-transform:uppercase;
}
.table__column{
padding: 15px;
}
.table{
font-family:"Arial";
color:rgb(76,99,126);
}
66 changes: 66 additions & 0 deletions src/ex10_html-css-fundamentals-part2/task-02.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Task 02</title>
<link rel="stylesheet" type="text/css" href="task-02.css">
</head>
<body class="table">
<table>
<tr class = "table__headline">
<th class = "table__headcolumn">customer</th>
<th class = "table__headcolumn">phone</th>
<th class = "table__headcolumn">mail</th>
<th class = "table__headcolumn">outstanding</th>
</tr>
<tr class = "table__line">
<td class = "table__column">jhonny aviony</td>
<td class = "table__column">(740) 841-7566</td>
<td class = "table__column">info@jhonnyaviony.com</td>
<td class = "table__column">2.400.00</td>
</tr>
<tr class = "table__line">
<td class = "table__column">mark hammock</td>
<td class = "table__column">(800) 950-4511</td>
<td class = "table__column">markhammocklgmail.com</td>
<td class = "table__column">700</td>
</tr>
<tr class = "table__line">
<td class = "table__column">richlcl cross</td>
<td class = "table__column">(322) 841-7566</td>
<td class = "table__column">crossstation@gmail.com</td>
<td class = "table__column">1.755.00</td>
</tr>
<tr class = "table__line">
<td class = "table__column">flinn's shack</td>
<td class = "table__column">(740) 841-7566</td>
<td class = "table__column">help@flinns.com</td>
<td class = "table__column">26.850.00</td>
</tr>
<tr class = "table__line">
<td class = "table__column">filip justic</td>
<td class = "table__column">(322) 841-7566</td>
<td class = "table__column">filip.justic@gmail.com</td>
<td class = "table__column">642.214.00</td>
</tr>
<tr class = "table__line">
<td class = "table__column">summer evans</td>
<td class = "table__column">(800) 950-4511</td>
<td class = "table__column">summer@gmail.com</td>
<td class = "table__column">700.00</td>
</tr>
<tr class = "table__line">
<td class = "table__column">marco s. diaz</td>
<td class = "table__column">(800) 800-1111</td>
<td class = "table__column">s.diaz@gmail.com</td>
<td class = "table__column">700.00</td>
</tr>
<tr class = "table__line">
<td class = "table__column">ricky stwerat</td>
<td class = "table__column">(800) 800-2222</td>
<td class = "table__column">r.stwerat@gmail.com</td>
<td class = "table__column">700.00</td>
</tr>
</table>
</body>
</html>