-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
172 lines (152 loc) · 8.09 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS -->
<link rel="stylesheet" href="./css/main.css">
<link rel="stylesheet" href="./css/media.css">
<title>Registration form</title>
</head>
<body>
<div class="reg-form">
<div class="reg-form__header">
<p class="reg-form__title">Create your account</p>
<div class="logo">
<img src="./img/reg-form/logo.svg" alt="logo">
</div>
</div>
<form class="reg-form__info" action="#!" target="_blank" method="post">
<!-- Логин и проверка на доступность -->
<div class="field field--login">
<div class="field__input">
<input type="text" placeholder=" " class="login" oninput="checkLogin(this)">
<label for="login">login</label>
</div>
<span class="error error--login">
<img src="./img/reg-form/error-minus.svg" alt="error-icon" class="error__icon">
<p class="error__text error__text--login"></p>
</span>
<p class="valid-text">You can use letters, numbers and full stops</p>
</div>
<!-- Имя пользователя (проверка на максимум символов) -->
<div class="field field--name">
<div class="field__input">
<input type="text" placeholder=" " class="first-name" oninput="checkName(this)">
<label for="first-name">first name</label>
</div>
<span class="error error--first-name">
<img src="./img/reg-form/error-minus.svg" alt="error-icon" class="error__icon">
<p class="error__text error__text--name"></p>
</span>
</div>
<!-- Фамилия пользователя (проверка на максимум символов) -->
<div class="field field--lastname">
<div class="field__input">
<input type="text" placeholder=" " class="last-name" oninput="checkSurName(this)">
<label for="last-name">last name</label>
</div>
<span class="error error--first-name">
<img src="./img/reg-form/error-minus.svg" alt="error-icon" class="error__icon">
<p class="error__text error__text--lastname"></p>
</span>
</div>
<!-- Дата рождения, проверка не ниже чем 1940 год -->
<div class="field field--date">
<div class="field__input">
<input type="text" placeholder=" " class="date" oninput="checkDate(this)">
<label for="date">date of birth</label>
</div>
<span class="error error--date">
<img src="./img/reg-form/error-minus.svg" alt="error-icon" class="error__icon">
<p class="error__text error__text--date">DD.MM.YYYY (example: 01.03.2010)</p>
</span>
<p class="valid-text">Format DD.MM.YYYY</p>
</div>
<!-- Роль, выбор из предложенных вариантов -->
<div class="field field--role">
<label class="role__option">
<input type="radio" class="role__item" name="role" value="Frontend developer" checked="checked">
<span class="role__info">frontend developer</span>
</label>
<label class="role__option">
<input type="radio" class="role__item" name="role" value="backend developer">
<span class="role__info">backend developer</span>
</label>
<label class="role__option">
<input type="radio" class="role__item" name="role" value="fullstack developer">
<span class="role__info">fullstack developer</span>
</label>
<label class="role__option">
<input type="radio" class="role__item" name="role" value="designer">
<span class="role__info">designer</span>
</label>
<label class="role__option">
<input type="radio" class="role__item" name="role" value="product manager">
<span class="role__info">product manager</span>
</label>
<label class="role__option">
<input type="radio" class="role__item" name="role" value="teamlead">
<span class="role__info">teamlead</span>
</label>
</div>
<!-- Сумма оплаты, проверка на число без плавающей точки -->
<div class="field field--payment">
<div class="field__input">
<input type="text" placeholder=" " class="payment" oninput="checkPayment(this)">
<label for="payment">payment</label>
</div>
<span class="error error--payment">
<img src="./img/reg-form/error-minus.svg" alt="error-icon" class="error__icon">
<p class="error__text error__text--payment"></p>
</span>
<p class="valid-text">Price in dollars</p>
</div>
<!-- Почта и проверка на валидность -->
<div class="field field--mail">
<div class="field__input">
<input type="email" placeholder=" " class="mail">
<label for="email">email</label>
</div>
<span class="error error--mail">
<img src="./img/reg-form/error-minus.svg" alt="error-icon" class="error__icon">
<p class="error__text error__text--email">Please enter a valid email</p>
</span>
<p class="valid-text">Format ****@mail.com</p>
</div>
<!-- Пароль, глазик и проверка на валидность -->
<div class="field password--create">
<div class="field__input">
<input type="password" placeholder=" " class="password">
<label for="password">create password</label>
<div class="eye-hide hide-show"></div>
</div>
<span class="error error--password">
<img src="./img/reg-form/error-minus.svg" alt="error-icon" class="error__icon">
<p class="error__text error__text--password"></p>
</span>
<p class="valid-text">Eight character [A-Z] with number, symbol, small and capital letter</p>
</div>
<!-- Подтверждение пароля -->
<div class="field password--confirm">
<div class="field__input ">
<input type="password" placeholder=" " class="confirm">
<label for="confirm">confirm password</label>
<div class="eye-hide hide-show"></div>
</div>
<span class="error error--confirm-password">
<img src="./img/reg-form/error-minus.svg" alt="error-icon" class="error__icon">
<p class="error__text error__text--confirm">Password don't match</p>
</span>
<p class="valid-text">Eight character [A-Z] with number, symbol, small and capital letter</p>
</div>
<!-- Кнопка Submit и проверка на валидацию всех граф и выгрузка в объект -->
<div class="btn btn--submit">
<input type="submit" value="Submit" />
</div>
</form>
</div>
<script src="./js/main.js"></script>
</body>
</html>