Skip to content

Commit

Permalink
update do login
Browse files Browse the repository at this point in the history
  • Loading branch information
arthursignorini committed Jun 29, 2024
1 parent 8f5e1a9 commit e253af0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions codigo/assets/css/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
body {
background-color: #BDB4B5;
}
.text-info {
color: #817f7f !important; /* Cor do texto */
}
.btn-info {
background-color: #F3E7E7;
border-color: #000000;
margin-top: 10px;
}
.btn-info:hover {
color: #656464;
}
.modal-header, .modal-footer {
background-color: #817f7f /* Fundo do cabeçalho e rodapé do modal */
}

File renamed without changes.
3 changes: 2 additions & 1 deletion codigo/pages/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<link rel="stylesheet" href="../assets/css/login.css">
</head>

<body>
Expand Down Expand Up @@ -98,7 +99,7 @@ <h3 class="text-center text-info">Novo usuário</h3>
// Valida login e se estiver ok, redireciona para tela inicial da aplicação
resultadoLogin = loginUser (username, password);
if (resultadoLogin) {
window.location.href = './../home.html';
window.location.href = './../index.html';
}
else { // Se login falhou, avisa ao usuário
alert ('Usuário ou senha incorretos');
Expand Down

0 comments on commit e253af0

Please sign in to comment.