mirror of
https://github.com/CristianCruz0309/proyectos-curso-javascript.git
synced 2026-08-15 02:50:10 +00:00
Proyectos (DIA 1 - 13)
Realizados gracias al curso "JAVASCRIPT TOTAL"
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.6 KiB |
@@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Resumen Cuenta Bancaria</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<script src="script.js"></script>
|
||||
</head>
|
||||
<body onload="cargarResumen()">
|
||||
<div class="page">
|
||||
<div class="contenedor">
|
||||
<div class="logo">
|
||||
<img src="imagenes/BANCOLOMBIA.png">
|
||||
</div>
|
||||
<div>
|
||||
<h1 id="banco"></h1>
|
||||
<h2 id="sucursal"></h2>
|
||||
</div>
|
||||
<hr>
|
||||
<div>
|
||||
<h3 id="titular"></h3>
|
||||
<p>
|
||||
<b>Número cuenta:</b>
|
||||
<label id="cuenta"></label>
|
||||
</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="saldo">
|
||||
<div>
|
||||
<img class="fila" src="imagenes/eeuu.png">
|
||||
<p class="fila" id="usd"></p>
|
||||
</div>
|
||||
<div>
|
||||
<img class="fila" src="imagenes/euro.png">
|
||||
<p class="fila" id="euro"></p>
|
||||
</div>
|
||||
<div>
|
||||
<img class="fila" src="imagenes/col.png">
|
||||
<p class="fila" id="cop"></p>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div>
|
||||
<p>
|
||||
<b>CBU:</b>
|
||||
<label id="cbu"></label>
|
||||
</p>
|
||||
<p>
|
||||
<b>Abierta:</b>
|
||||
<label id="abierto"></label>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"banco": "BANCOLOMBIA S.A.",
|
||||
"sucursal": "Cali , CL1",
|
||||
"titular": "Cristian Cruz",
|
||||
"nro_cuenta": "1752461/08",
|
||||
"saldo": [ { "moneda": "USD", "monto": 725.09 }, { "moneda": "EUR", "monto": 195.67}, { "moneda": "COP", "monto": 320000 } ],
|
||||
"cbu": "1562244781396451",
|
||||
"abierto": "15/01/2026"
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
function cargarResumen() {
|
||||
fetch('resumen.json')
|
||||
.then(respuesta => respuesta.json())
|
||||
.then(function(salida) {
|
||||
document.getElementById("banco").textContent = salida.banco;
|
||||
document.getElementById("sucursal").textContent = salida.sucursal;
|
||||
document.getElementById("titular").textContent = salida.titular;
|
||||
document.getElementById("cuenta").textContent = salida.nro_cuenta;
|
||||
document.getElementById("usd").textContent = salida.saldo[0].monto + " " + salida.saldo[0].moneda;
|
||||
document.getElementById("euro").textContent = salida.saldo[1].monto + " " + salida.saldo[1].moneda;
|
||||
document.getElementById("cop").textContent = salida.saldo[2].monto + " " + salida.saldo[2].moneda;
|
||||
document.getElementById("cbu").textContent = salida.cbu;
|
||||
document.getElementById("abierto").textContent = salida.abierto;
|
||||
})
|
||||
.catch(function(error) {
|
||||
console.log(error);
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
body {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
background: linear-gradient(135deg, #7a0000, #9b0000);
|
||||
font-family: 'Lucida Sans', Geneva, Verdana, sans-serif;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.contenedor {
|
||||
width: 420px;
|
||||
max-width: 90%;
|
||||
padding: 24px;
|
||||
background-color: rgba(255, 255, 255, 0.06);
|
||||
border-radius: 16px;
|
||||
text-align: center;
|
||||
box-shadow: 0 18px 40px rgba(0,0,0,0.45);
|
||||
animation: fadeIn 1s ease-in-out;
|
||||
}
|
||||
|
||||
/* Logo */
|
||||
|
||||
.logo {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
width: 180px;
|
||||
height: 180px;
|
||||
filter:
|
||||
drop-shadow(2px 0 0 white)
|
||||
drop-shadow(-2px 0 0 white)
|
||||
drop-shadow(0 2px 0 white)
|
||||
drop-shadow(0 -2px 0 white);
|
||||
}
|
||||
|
||||
|
||||
/* Encabezados */
|
||||
h1 {
|
||||
font-size: 1.8rem;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-weight: normal;
|
||||
opacity: 0.9;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Texto general */
|
||||
p {
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
/* Separadores */
|
||||
hr {
|
||||
border: none;
|
||||
height: 1px;
|
||||
background-color: rgba(255, 255, 255, 0.35);
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
/* ===== SALDOS ===== */
|
||||
.saldo {
|
||||
font-size: 1.15rem;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
/* Cada moneda como bloque */
|
||||
.saldo div {
|
||||
margin: 14px 0;
|
||||
}
|
||||
|
||||
/* Imagen + texto */
|
||||
.fila {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
/* Iconos */
|
||||
.saldo img {
|
||||
height: 36px;
|
||||
border: 2px solid white;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* Datos finales */
|
||||
label {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
height: 1px;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
transparent,
|
||||
rgba(255,255,255,0.5),
|
||||
transparent
|
||||
);
|
||||
margin: 22px 0;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.contenedor {
|
||||
width: 90%;
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
Reference in New Issue
Block a user