Skip to content

Commit

Permalink
Editar perfil com as fotos
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoMaximo03 committed Jun 30, 2024
1 parent 1d75d5d commit 3e4d8e8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions docs/pages/PERFIL.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ <h1>Meu Perfil</h1>
<div class="foto-container">
<img id="foto-usuario" src="img/placeholder.png" alt="Foto do Usuário">
</div>
<button class="change-photo-button" id="change-photo-button">Editar Foto</button>
<input type="file" id="input-foto" class="input-foto" accept="image/*">
<h1 class="nome-usuario" id="nome-usuario">Fulano de Tal</h1>
<p class="senha-usuario" id="senha-usuario">Senha: ******</p>
</div>
Expand Down
Binary file added docs/pages/img/alice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/pages/img/placeholder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/pages/perfil_staff.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<div class="main-content">
<h1>Meu Perfil</h1>
<div class="foto-container">
<img id="foto-usuario" src="img/placeholder.png" alt="Foto do Usuário">
<img id="foto-usuario" src="img/alice.png" alt="Foto do Usuário">
</div>
<button class="change-photo-button" id="change-photo-button">Editar Foto</button>
<input type="file" id="input-foto" class="input-foto" accept="image/*">
Expand All @@ -171,7 +171,7 @@ <h1 class="nome-usuario" id="nome-usuario">Fulano de Tal</h1>
if (fotoSalva) {
document.getElementById('foto-usuario').src = fotoSalva;
} else {
document.getElementById('foto-usuario').src = "img/placeholder.png";
document.getElementById('foto-usuario').src = "img/alice.png";
}
} else {
console.error('Usuário não encontrado');
Expand Down

0 comments on commit 3e4d8e8

Please sign in to comment.