-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
222 lines (222 loc) · 7.22 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
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
<!DOCTYPE html>
<html lang="es">
<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" />
<title>Cajero Automático</title>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<header class="width-full">
<nav>
<ul id="auth-menu" class="d-flex justify-content-around">
<li class="nav-link pointer" data-view="historial">Historial</li>
<li class="nav-link pointer" data-view="deposito">Depósito</li>
<li class="nav-link pointer" data-view="retiro">Retirar dinero</li>
<li class="nav-link pointer" data-view="transferencia">
Transferencia
</li>
<li id="logout" class="pointer">Salir</li>
</ul>
</nav>
</header>
<main>
<section id="auth" class="d-none">
<div id="login">
<h3>Iniciar Sesión</h3>
<p id="login-messages" class="d-none"></p>
<form id="login-form">
<div class="form-field">
<label for="login-email">Correo:</label>
<input type="email" id="login-email" name="login-email" />
</div>
<div class="form-field">
<label for="login-password">Contraseña:</label>
<input
type="password"
id="login-password"
name="login-password"
minlength="3"
/>
</div>
<p>
Aún no tienes una cuenta?
<span class="nav-link link pointer" data-view="registro"
>Registrarse</span
>
</p>
<button
type="submit"
id="login-btn"
class="btn btn-block btn-primary text-light pointer my-2"
>
Iniciar Sesión
</button>
</form>
</div>
<div id="registro">
<h3>Crear una cuenta</h3>
<p id="register-message"></p>
<form id="register-form">
<div class="form-field">
<label for="registro-nombres">Nombres:</label>
<input
type="text"
id="registro-nombres"
name="registro-nombres"
/>
</div>
<div class="form-field">
<label for="registro-email">Correo:</label>
<input type="text" id="registro-email" name="registro-email" />
</div>
<div class="form-field">
<label for="registro-password">Contraseña:</label>
<input
type="password"
id="registro-password"
name="registro-password"
minlength="3"
/>
</div>
<div class="form-field">
<label for="registro-confirm-password"
>Confirmar contraseña:</label
>
<input
type="password"
id="registro-confirm-password"
name="registro-confirm-password"
minlength="3"
/>
</div>
<p>
Ya tienes una cuenta?
<span class="nav-link link pointer" data-view="login"
>Iniciar Sesión</span
>
</p>
<button
type="submit"
id="register-btn"
class="btn btn-block btn-primary text-light pointer my-2"
>
Registrarse
</button>
</form>
</div>
</section>
<section id="features">
<div id="cuenta">
<div class="d-flex justify-content-between align-items-center">
<h2>
Hola
<strong id="currentUserName" class="text-bold"></strong>
</h2>
<p>
Saldo: <span class="text-bold">U$D</span>
<span id="currentUserCash" class="text-bold"></span>
</p>
</div>
<div class="my-1">
<p class="text-light">
Código de cuenta:
<span id="currentUserEmail" class="text-normal"></span>
</p>
<small class="text-xs"
>(Utiliza tu correo para recibir transferencias)</small
>
</div>
</div>
<section id="historial">
<h3 class="text-lg text-normal uppercase">
Historial de transacciones:
</h3>
<div id="historial-list"></div>
</section>
<section id="deposito">
<h3 class="text-lg text-normal uppercase">Depositar dinero</h3>
<p id="deposit-message" class="d-none my-2"></p>
<form id="formDeposito">
<div class="form-field">
<label for="deposito-monto">Monto (U$D):</label>
<input
type="number"
name="deposito-monto"
id="deposito-monto"
min="1"
step="1"
value="1"
/>
</div>
<button
type="submit"
class="btn btn-block btn-primary my-1 pointer"
>
Depositar
</button>
</form>
</section>
<section id="retiro">
<h3 class="text-lg text-normal uppercase">Retirar dinero</h3>
<p id="retiro-message" class="d-none my-2"></p>
<form id="formRetiro">
<div class="form-field">
<label for="retiro-monto">Monto (U$D):</label>
<input
type="number"
name="retiro-monto"
id="retiro-monto"
min="1"
step="1"
value="1"
/>
</div>
<button
type="submit"
class="btn btn-block btn-primary my-1 pointer"
>
Retirar
</button>
</form>
</section>
<section id="transferencia">
<h3 class="text-lg text-normal uppercase">Enviar dinero</h3>
<p id="transferencia-message" class="d-none my-2"></p>
<form id="formTransferencia">
<div class="form-field">
<label for="transferencia-destino">Destino:</label>
<input
type="email"
name="transferencia-destino"
id="transferencia-destino"
/>
</div>
<div class="form-field">
<label for="transferencia-monto">Monto (U$D):</label>
<input
type="number"
name="transferencia-monto"
id="transferencia-monto"
min="1"
step="1"
value="1"
/>
</div>
<button
type="submit"
class="btn btn-block btn-primary my-1 pointer"
>
Depositar
</button>
</form>
</section>
</section>
</main>
<script src="./js/global.js"></script>
<script src="./js/menu.js"></script>
<script src="./js/auth.js"></script>
<script src="./js/main.js"></script>
</body>
</html>