Spaces:
Running
Running
File size: 21,614 Bytes
fa8078c | 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 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | <!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Регистрация | Практика для студентов</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.form-section {
transition: all 0.3s ease;
}
.form-section.hidden {
display: none;
}
.tab-active {
border-bottom: 3px solid #4f46e5;
color: #4f46e5;
font-weight: 600;
}
</style>
</head>
<body class="font-sans bg-gray-50">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<a href="index.html" class="flex items-center">
<i data-feather="briefcase" class="text-indigo-600 mr-2"></i>
<span class="text-xl font-bold text-indigo-600">Практика.ру</span>
</a>
<a href="login.html" class="text-gray-700 hover:text-indigo-600">Уже есть аккаунт? Войти</a>
</div>
</header>
<!-- Registration Form -->
<main class="container mx-auto px-4 py-12 max-w-4xl">
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="flex border-b">
<button id="student-tab" class="flex-1 py-4 px-6 text-center tab-active">Студент</button>
<button id="employer-tab" class="flex-1 py-4 px-6 text-center">Работодатель</button>
</div>
<!-- Student Registration Form -->
<div id="student-form" class="form-section p-6 md:p-8">
<h2 class="text-2xl font-bold mb-6">Регистрация студента</h2>
<form id="student-registration">
<div class="grid md:grid-cols-2 gap-6">
<!-- Personal Info -->
<div class="md:col-span-2">
<h3 class="text-lg font-semibold mb-4 text-gray-700">Личные данные</h3>
<div class="grid md:grid-cols-3 gap-4">
<div>
<label for="surname" class="block text-sm font-medium text-gray-700 mb-1">Фамилия*</label>
<input type="text" id="surname" name="surname" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="name" class="block text-sm font-medium text-gray-700 mb-1">Имя*</label>
<input type="text" id="name" name="name" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="patronymic" class="block text-sm font-medium text-gray-700 mb-1">Отчество</label>
<input type="text" id="patronymic" name="patronymic" class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
</div>
</div>
<!-- Contact Info -->
<div>
<label for="phone" class="block text-sm font-medium text-gray-700 mb-1">Телефон*</label>
<input type="tel" id="phone" name="phone" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email*</label>
<input type="email" id="email" name="email" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
<!-- Education Info -->
<div>
<label for="university" class="block text-sm font-medium text-gray-700 mb-1">Учебное заведение*</label>
<select id="university" name="university" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
<option value="">Выберите вуз</option>
<option value="МГУ">МГУ им. М.В. Ломоносова</option>
<option value="ВШЭ">НИУ ВШЭ</option>
<option value="МФТИ">МФТИ</option>
<option value="МГТУ">МГТУ им. Н.Э. Баумана</option>
<option value="СПбГУ">СПбГУ</option>
<option value="ИТМО">Университет ИТМО</option>
<option value="НГУ">НГУ</option>
<option value="КФУ">КФУ</option>
<option value="other">Другое</option>
</select>
</div>
<div>
<label for="specialty" class="block text-sm font-medium text-gray-700 mb-1">Направление*</label>
<select id="specialty" name="specialty" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
<option value="">Выберите направление</option>
<option value="Информатика">Информатика и вычислительная техника</option>
<option value="Математика">Математика</option>
<option value="Физика">Физика</option>
<option value="Экономика">Экономика</option>
<option value="Менеджмент">Менеджмент</option>
<option value="Юриспруденция">Юриспруденция</option>
<option value="Лингвистика">Лингвистика</option>
<option value="Психология">Психология</option>
<option value="Медицина">Медицина</option>
<option value="other">Другое</option>
</select>
</div>
<div>
<label for="course" class="block text-sm font-medium text-gray-700 mb-1">Курс*</label>
<select id="course" name="course" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
<option value="">Выберите курс</option>
<option value="1">1 курс</option>
<option value="2">2 курс</option>
<option value="3">3 курс</option>
<option value="4">4 курс</option>
<option value="5">5 курс</option>
<option value="6">6 курс</option>
</select>
</div>
<div>
<label for="graduation-year" class="block text-sm font-medium text-gray-700 mb-1">Год окончания*</label>
<select id="graduation-year" name="graduation-year" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
<option value="">Выберите год</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
<option value="2025">2025</option>
<option value="2026">2026</option>
<option value="2027">2027</option>
</select>
</div>
<!-- Skills -->
<div class="md:col-span-2">
<label class="block text-sm font-medium text-gray-700 mb-2">Навыки</label>
<div class="flex flex-wrap gap-2">
<div class="flex items-center">
<input type="checkbox" id="skill-js" name="skills" value="JavaScript" class="mr-2">
<label for="skill-js">JavaScript</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="skill-python" name="skills" value="Python" class="mr-2">
<label for="skill-python">Python</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="skill-java" name="skills" value="Java" class="mr-2">
<label for="skill-java">Java</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="skill-sql" name="skills" value="SQL" class="mr-2">
<label for="skill-sql">SQL</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="skill-html" name="skills" value="HTML/CSS" class="mr-2">
<label for="skill-html">HTML/CSS</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="skill-react" name="skills" value="React" class="mr-2">
<label for="skill-react">React</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="skill-analysis" name="skills" value="Анализ данных" class="mr-2">
<label for="skill-analysis">Анализ данных</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="skill-design" name="skills" value="Дизайн" class="mr-2">
<label for="skill-design">Дизайн</label>
</div>
</div>
</div>
<!-- Password -->
<div>
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Пароль*</label>
<input type="password" id="password" name="password" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
<p class="text-xs text-gray-500 mt-1">Минимум 8 символов</p>
</div>
<div>
<label for="confirm-password" class="block text-sm font-medium text-gray-700 mb-1">Подтвердите пароль*</label>
<input type="password" id="confirm-password" name="confirm-password" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
</div>
<!-- Agreement -->
<div class="mt-6">
<div class="flex items-start">
<input type="checkbox" id="agreement" name="agreement" required class="mt-1 mr-2">
<label for="agreement" class="text-sm text-gray-700">
Я согласен(а) на обработку персональных данных в соответствии с <a href="#" class="text-indigo-600 hover:underline">Политикой конфиденциальности</a>
</label>
</div>
</div>
<!-- Submit -->
<div class="mt-8">
<button type="submit" class="w-full bg-indigo-600 text-white py-3 px-4 rounded-md hover:bg-indigo-700 transition font-medium">
Зарегистрироваться
</button>
</div>
</form>
</div>
<!-- Employer Registration Form -->
<div id="employer-form" class="form-section hidden p-6 md:p-8">
<h2 class="text-2xl font-bold mb-6">Регистрация работодателя</h2>
<form id="employer-registration">
<div class="grid md:grid-cols-2 gap-6">
<!-- Company Info -->
<div class="md:col-span-2">
<h3 class="text-lg font-semibold mb-4 text-gray-700">Информация о компании</h3>
<div>
<label for="company-name" class="block text-sm font-medium text-gray-700 mb-1">Название компании*</label>
<input type="text" id="company-name" name="company-name" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
</div>
<div class="md:col-span-2">
<label for="company-description" class="block text-sm font-medium text-gray-700 mb-1">Описание компании*</label>
<textarea id="company-description" name="company-description" rows="3" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500"></textarea>
</div>
<!-- Contact Info -->
<div>
<label for="contact-person" class="block text-sm font-medium text-gray-700 mb-1">Контактное лицо*</label>
<input type="text" id="contact-person" name="contact-person" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="contact-position" class="block text-sm font-medium text-gray-700 mb-1">Должность*</label>
<input type="text" id="contact-position" name="contact-position" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="employer-phone" class="block text-sm font-medium text-gray-700 mb-1">Телефон*</label>
<input type="tel" id="employer-phone" name="employer-phone" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="employer-email" class="block text-sm font-medium text-gray-700 mb-1">Email*</label>
<input type="email" id="employer-email" name="employer-email" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
<!-- Password -->
<div>
<label for="employer-password" class="block text-sm font-medium text-gray-700 mb-1">Пароль*</label>
<input type="password" id="employer-password" name="employer-password" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
<p class="text-xs text-gray-500 mt-1">Минимум 8 символов</p>
</div>
<div>
<label for="employer-confirm-password" class="block text-sm font-medium text-gray-700 mb-1">Подтвердите пароль*</label>
<input type="password" id="employer-confirm-password" name="employer-confirm-password" required class="w-full px-4 py-2 border rounded-md focus:ring-indigo-500 focus:border-indigo-500">
</div>
</div>
<!-- Agreement -->
<div class="mt-6">
<div class="flex items-start">
<input type="checkbox" id="employer-agreement" name="employer-agreement" required class="mt-1 mr-2">
<label for="employer-agreement" class="text-sm text-gray-700">
Я согласен(а) на обработку персональных данных в соответствии с <a href="#" class="text-indigo-600 hover:underline">Политикой конфиденциальности</a>
</label>
</div>
</div>
<!-- Submit -->
<div class="mt-8">
<button type="submit" class="w-full bg-indigo-600 text-white py-3 px-4 rounded-md hover:bg-indigo-700 transition font-medium">
Зарегистрироваться
</button>
</div>
</form>
</div>
</div>
</main>
<script>
feather.replace();
// Tab switching
const studentTab = document.getElementById('student-tab');
const employerTab = document.getElementById('employer-tab');
const studentForm = document.getElementById('student-form');
const employerForm = document.getElementById('employer-form');
studentTab.addEventListener('click', function() {
studentTab.classList.add('tab-active');
employerTab.classList.remove('tab-active');
studentForm.classList.remove('hidden');
employerForm.classList.add('hidden');
});
employerTab.addEventListener('click', function() {
employerTab.classList.add('tab-active');
studentTab.classList.remove('tab-active');
employerForm.classList.remove('hidden');
studentForm.classList.add('hidden');
});
// Check URL for registration type
const urlParams = new URLSearchParams(window.location.search);
const type = urlParams.get('type');
if (type === 'employer') {
employerTab.click();
}
// Form validation
document.getElementById('student-registration').addEventListener('submit', function(e) {
e.preventDefault();
const password = document.getElementById('password').value;
const confirmPassword = document.getElementById('confirm-password').value;
if (password !== confirmPassword) {
alert('Пароли не совпадают');
return;
}
// Here would be AJAX request to backend
alert('Регистрация студента успешна! Проверьте email для подтверждения.');
window.location.href = 'email-verification.html';
});
document.getElementById('employer-registration').addEventListener('submit', function(e) {
e.preventDefault();
const password = document.getElementById('employer-password').value;
const confirmPassword = document.getElementById('employer-confirm-password').value;
if (password !== confirmPassword) {
alert('Пароли не совпадают');
return;
}
// Here would be AJAX request to backend
alert('Регистрация работодателя успешна! Проверьте email для подтверждения.');
window.location.href = 'email-verification.html';
});
</script>
</body>
</html>
|