Skip to content

Commit

Permalink
add profile
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-deoliveira committed Oct 8, 2023
1 parent 188ea76 commit d3c878b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Binary file added assets/Avatar (1).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 assets/avatar-.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 modified assets/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<body class="light">
<div id="container">
<div id="profile">
<img src="./assets/avatar.png" alt="profile">
<img src="./assets/Avatar.png" alt="profile">
<p>@brunoliveira0805</p>
</div>

Expand Down
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ function toggleMode() {
const img = document.querySelector("#profile img")
//substituir a imagem do perfil
if (body.classList.contains("light")) {
img.setAttribute("src", "./assets/avatar-light.png")
img.setAttribute("src", "./assets/Avatar (1).png")
} else {
// set tiver sem light mode, manter a imagem normal
img.setAttribute("src", "./assets/avatar.png")
img.setAttribute("src", "./assets/Avatar.png")
}
}

0 comments on commit d3c878b

Please sign in to comment.