-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
157 lines (147 loc) · 7.85 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
<!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" />
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="./assets/img/logoms.jpg" />
<!-- Descripción -->
<meta name="description" content="">
<!-- Palabras Clave -->
<meta name="keywords" content="">
<!-- Autor -->
<meta name="author" content="Miguel Angel - github.com/M1gu3l4ngel/">
<!-- Bootstrap v5.3.2 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Titulo -->
<title>Inicio - Deudas Personales</title>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="./css/main.css" />
<!-- Iconos FontAwesome -->
<script src="https://kit.fontawesome.com/5de37ddf45.js" crossorigin="anonymous"></script>
</head>
<body>
<main class="home">
<!-- ======= Header ======= -->
<header class="container">
<nav class="card navbar navbar-expand-lg header-nav">
<div class="container">
<a class="navbar-brand hvr-grow header__logo" href="./index.html">
<img src="./assets/img/logoms.jpg" alt="Logo de Junior School JS">
</a>
<div class="header-toggle">
<input class="toggle__input" type="checkbox" id="switch" name="mode">
<label for="switch" class="toggle__label">
<i class="fas fa-sun"></i>
<i class="fas fa-moon"></i>
<div class="toggle__ball"></div>
</label>
</div>
<div class="header-profile">
<p class="totalDeudas"><span id="totalDeudas"></span></p>
<img src="./assets/img/avatar7.png" alt="Imagen" class="dropdown-toggle hvr-grow"
data-bs-toggle="dropdown" aria-expanded="false">
<ul class="dropdown-menu dropdown-menu-end header-dropdown">
<p class="dropdown-header">Menú</p>
<li>
<a class="dropdown-item activo" href="./index.html">Deudas Actuales</a>
</li>
<li>
<a class="dropdown-item disabled" href="#">Historial de Deudas</a>
</li>
<div class="dropdown-divider"></div>
<li>
<a class="dropdown-item disabled" href="#">
<i class="fas fa-sign-out-alt fa-sm fa-fw"></i>
Cerrar Sesión
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<!-- ====== Contenido ====== -->
<section class="container">
<div class="home-title">
<h2>Deudas Personales</h2>
</div>
</section>
<div class="container main-container">
<div class="row gy-3 gx-3 row-cols-1 row-cols-md-2 row-cols-xl-3 d-lg-flex justify-content-lg-center">
<div class="col-md-4 col-xl-4 main-card-box">
<div class="card main__card2">
<div class="form-container" id="debtForm">
<form>
<label for="nombre">Nombre del Acreedor:</label>
<input type="text" id="nombre" required autocomplete="off">
<label for="descripcion">Descripción de la Deuda:</label>
<input type="text" id="descripcion" required autocomplete="off">
<label for="montoTotal">Monto total:</label>
<input type="text" id="montoTotal" step="0.01" required autocomplete="off">
<div class="form__cont-button">
<button type="button" onclick="agregarDeuda()">Agregar Deuda</button>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-8 col-xl-8 main-card-box">
<div class="main__card1">
<div id="debtList" class="debt-list-container"></div>
<div class="nodebt-message-container">
<div id="noDebtMessage" class="no-debt-message">Sin Deudas 😍</div>
</div>
</div>
</div>
<div id="alertContainer" class="position-fixed top-0 end-0 p-3" style="z-index: 11"></div>
<!-- Modal para abonar directamente desde la deuda -->
<div class="modal fade" id="abonarModal" tabindex="-1" aria-labelledby="abonarModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content card">
<div class="modal-header">
<h5 class="modal-title" id="abonarModalLabel">Abonar Deudaxd</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<label for="abonoModal">Monto a abonar:</label>
<input type="text" id="abonoModal" step="0.01" required autocomplete="off">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-cerrar" data-bs-dismiss="modal">Cerrar</button>
<button type="button" class="btn btn-abonar" onclick="abonarDeudaModal()">Abonar</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ====== Footer ====== -->
<footer class="container">
<nav class="card container navbar navbar-expand-lg footer-navbar">
<div class="container">
<a class="navbar-brand hvr-grow footer__logo" href="./index.html">
<img src="./assets/img/logoms.jpg" alt="Logo de Junior School JS">
</a>
<div class="footer__social">
<a href="#"><i class="fa-brands fa-github github"></i></a>
<a href="#"><i class="fa-brands fa-discord discord"></i></a>
<a href="#"><i class="fa-brands fa-x-twitter twitter"></i></a>
<a href="#"><i class="fa-brands fa-linkedin-in linkdn"></i></a>
</div>
</div>
</nav>
</footer>
</main>
<!-- ====== Bootstrap v5.3.2 ====== -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- ====== AOSAnimation ====== -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<!-- ====== JavaScript ====== -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="./js/main.js"></script>
</body>
</html>