-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
82 lines (71 loc) · 3.52 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>José Pardo - Inicio Sesión</title>
<link rel="shortcut icon" href="./src/images/Logo.ico" type="image/x-icon">
<link rel="stylesheet" href="./styles/stylehomeindex.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<div class="login-container">
<div class="left-section">
<h1>¡Bienvenido al Sistema de Gestión para las EFSRT!</h1>
<p>Optimiza la organización y el seguimiento de actividades formativas, automatizando procesos de
certificación
para una experiencia ágil y precisa.</p>
<div class="illustration">
<img src="/src/images/login.svg" alt="Ilustración educativa">
</div>
</div>
<div class="right-section">
<div class="logo">
<img src="/src/images/logo-jose-pardo.png" alt="Logo Jose Pardo">
</div>
<h2>¡Hola!</h2>
<p>Ingresa tus datos para iniciar sesión.</p>
<form action="./src/api/login.php" method="post">
<select name="role" id="roleSelect" required>
<option value="Ninguno">¿USTED ES?</option>
<option value="SOLICITANTE">SOLICITANTE</option>
<option value="DOCENTE">DOCENTE</option>
<option value="COORDINADOR">COORDINADOR</option>
<option value="DIRECTIVO">DIRECTIVO</option>
<option value="SOPORTE">SOPORTE</option>
</select>
<div class="form-group">
<label for="email">Correo electrónico(jpardo.edu.pe o josepardo.edu.pe)</label>
<input type="email" id="email" name="email" placeholder="Ingresa tu correo electrónico" required>
</div>
<div class="password-container">
<label for="password">Contraseña</label>
<input type="password" name="password" id="password" placeholder="Contraseña" required>
<i class="fas fa-eye toggle-password" id="togglePassword"></i>
</div>
<button type="submit" class="login-button">Iniciar sesión</button>
<a href="./dashboards/restorePassword/fm_password.php" class="reset-link">¿Olvidaste tu contraseña?</a>
<a href="./registro.html" id="registerLink" class="reset-link" style="display: none;">Regístrate</a>
</form>
</div>
</div>
<script>
const roleSelect = document.getElementById('roleSelect');
const registerLink = document.getElementById('registerLink');
roleSelect.addEventListener('change', function () {
if (this.value === 'SOLICITANTE') {
registerLink.style.display = 'block';
} else {
registerLink.style.display = 'none';
}
});
document.getElementById('togglePassword').addEventListener('click', function () {
const passwordInput = document.getElementById('password');
const type = passwordInput.getAttribute('type') === 'password' ? 'text' : 'password';
passwordInput.setAttribute('type', type);
this.classList.toggle('fa-eye');
this.classList.toggle('fa-eye-slash');
});
</script>
</body>
</html>