-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
posicao e valor de saldo guardados no armazenamento local, páginas 's…
…aldo.html', 'Operacoes.html' criadas e página de estilo 'operacoes.css' criadas.
- Loading branch information
1 parent
d3fec4e
commit 645a1f5
Showing
8 changed files
with
330 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
<!DOCTYPE html> | ||
<html lang="pt-br"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Cubo Bank</title> | ||
<link rel="stylesheet" href="../styles/Mobile.css" media="all"> | ||
<link rel="stylesheet" href="../styles/MediaQueries.css"> | ||
<link rel="stylesheet" href="../styles/operacoes.css"> | ||
</head> | ||
<body> | ||
<div id="atm"> | ||
<header> | ||
<h1>CUBO BANK</h1> | ||
<div id="cubo"> | ||
<div class="aresta"></div> | ||
<div class="aresta"></div> | ||
<div class="aresta"></div> | ||
<div class="aresta"></div> | ||
<div class="aresta"></div> | ||
<div class="aresta"></div> | ||
</div> | ||
</header> | ||
<main> | ||
<section class="botoes"> | ||
<button class="active"></button> | ||
<button class="btnAbaixo active"></button> | ||
<button class="btnAbaixo active"></button> | ||
</section> | ||
<div id="tela"> | ||
<div id="conteudo"> | ||
<h2> | ||
Seja bem vindo <span class="recepcao">usuário</span>!<br> | ||
O que deseja fazer hoje ? | ||
</h2> | ||
<div class="linha"> | ||
← | ||
<div class="operacao">VER SALDO</div> | ||
<div class="operacao">DEPOSITAR</div> | ||
→ | ||
</div> | ||
<div class="linha"> | ||
← | ||
<div class="operacao">VER EXTRATO</div> | ||
<div class="operacao">TRANFERÊNCIA</div> | ||
→ | ||
</div> | ||
<div class="linha"> | ||
← | ||
<div class="operacao"> SACAR</div> | ||
<div class="operacao">SAIR </div> | ||
→ | ||
</div> | ||
</div> | ||
</div> | ||
<section class="botoes"> | ||
<button class="active"></button> | ||
<button class="btnAbaixo active"></button> | ||
<button class="btnAbaixo active"></button> | ||
</section> | ||
</main> | ||
<footer id="Teclado"> | ||
<section id="numeros"> | ||
<div class="linha"> | ||
<button class="numero">1</button> | ||
<button class="numero">2</button> | ||
<button class="numero">3</button> | ||
</div> | ||
<div class="linha"> | ||
<button class="numero">4</button> | ||
<button class="numero">5</button> | ||
<button class="numero">6</button> | ||
</div> | ||
<div class="linha"> | ||
<button class="numero">7</button> | ||
<button class="numero">8</button> | ||
<button class="numero">9</button> | ||
</div> | ||
<div class="linha"> | ||
<button class="numero left"><</button> | ||
<button class="numero">0</button> | ||
<button class="numero right">></button> | ||
</div> | ||
</section> | ||
<section id="opcoes"> | ||
<button class="entrar">ENTRAR</button> | ||
<button class="sair">SAIR</button> | ||
<button class="limpar">LIMPAR</button> | ||
</section> | ||
</footer> | ||
</main> | ||
<script type="module"> | ||
import opcoes from "../js/opcoes.js"; | ||
import teclado, {contador, input, posicao} from "../js/teclado.js"; | ||
|
||
const nome = document.querySelector('.recepcao'); | ||
nome.innerHTML = localStorage.getItem('usuarioAtual'); | ||
|
||
document.addEventListener("click", e => { | ||
const element = e.target; | ||
|
||
if(element.classList.contains("active")){ | ||
const botoes = document.querySelectorAll(".active"); | ||
|
||
if(element === botoes[0]) return window.location.href = "../pages/saldo.html"; | ||
|
||
if(element === botoes[1]){ | ||
console.log("Extrato"); | ||
} | ||
|
||
if(element === botoes[2]){ | ||
console.log("Sacar"); | ||
} | ||
|
||
if(element === botoes[3]){ | ||
console.log("Depositar"); | ||
} | ||
|
||
if(element === botoes[4]){ | ||
console.log("Transferência"); | ||
} | ||
|
||
if(element === botoes[5]){ | ||
console.log("Sair"); | ||
} | ||
} | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<!DOCTYPE html> | ||
<html lang="pt-br"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Cubo Bank</title> | ||
<link rel="stylesheet" href="../styles/Mobile.css" media="all"> | ||
<link rel="stylesheet" href="../styles/MediaQueries.css"> | ||
<link rel="stylesheet" href="../styles/operacoes.css"> | ||
<style> | ||
.saldo{ | ||
width: 100%; | ||
height: 38%; | ||
} | ||
|
||
.textoSaldo{ | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 85%; | ||
width: 90%; | ||
margin: 10px; | ||
font-size: 1.4em; | ||
color: #64BA21; | ||
background-color: #fff; | ||
border: 1px solid #000; | ||
border-radius: 10px; | ||
} | ||
|
||
#conteudo .linha{ | ||
justify-content: flex-start; | ||
gap: 15px; | ||
} | ||
|
||
.operacao{ | ||
width: 45%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="atm"> | ||
<header> | ||
<h1>CUBO BANK</h1> | ||
<div id="cubo"> | ||
<div class="aresta"></div> | ||
<div class="aresta"></div> | ||
<div class="aresta"></div> | ||
<div class="aresta"></div> | ||
<div class="aresta"></div> | ||
<div class="aresta"></div> | ||
</div> | ||
</header> | ||
<main> | ||
<section class="botoes"> | ||
<button class="active"></button> | ||
<button class="btnAbaixo"></button> | ||
<button class="btnAbaixo"></button> | ||
</section> | ||
<div id="tela"> | ||
<div id="conteudo"> | ||
<h2> | ||
SALDO | ||
</h2> | ||
<div class="linha"> | ||
← <div class="operacao">VOLTAR</div> | ||
</div> | ||
<div class="saldo"> | ||
<h2>Saldo Atual</h2> | ||
<p class="textoSaldo"></p> | ||
</div> | ||
</div> | ||
</div> | ||
<section class="botoes"> | ||
<button class=""></button> | ||
<button class="btnAbaixo"></button> | ||
<button class="btnAbaixo"></button> | ||
</section> | ||
</main> | ||
<footer id="Teclado"> | ||
<section id="numeros"> | ||
<div class="linha"> | ||
<button class="numero">1</button> | ||
<button class="numero">2</button> | ||
<button class="numero">3</button> | ||
</div> | ||
<div class="linha"> | ||
<button class="numero">4</button> | ||
<button class="numero">5</button> | ||
<button class="numero">6</button> | ||
</div> | ||
<div class="linha"> | ||
<button class="numero">7</button> | ||
<button class="numero">8</button> | ||
<button class="numero">9</button> | ||
</div> | ||
<div class="linha"> | ||
<button class="numero left"><</button> | ||
<button class="numero">0</button> | ||
<button class="numero right">></button> | ||
</div> | ||
</section> | ||
<section id="opcoes"> | ||
<button class="entrar">ENTRAR</button> | ||
<button class="sair">SAIR</button> | ||
<button class="limpar">LIMPAR</button> | ||
</section> | ||
</footer> | ||
</main> | ||
<script type="module"> | ||
import opcoes from "../js/opcoes.js"; | ||
import teclado, {contador, input, posicao} from "../js/teclado.js"; | ||
|
||
const saldo = document.querySelector('.textoSaldo'); | ||
const usuarios = JSON.parse(localStorage.getItem('usuarios')); | ||
|
||
if(usuarios[localStorage.getItem("posicaoUsuario")].saldo < 0) saldo.style.color = "#f00"; | ||
|
||
saldo.innerHTML = `R$ ${usuarios[localStorage.getItem("posicaoUsuario")].saldo}`; | ||
|
||
document.addEventListener("click", event => { | ||
const element = event.target; | ||
|
||
if(element.classList.contains("active")) return window.location.href = "../pages/Operacoes.html"; | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.