Skip to content

Commit

Permalink
Update profile picture
Browse files Browse the repository at this point in the history
  • Loading branch information
shruti-sen2004 committed Jul 6, 2024
1 parent 5555b7c commit 9e8b26f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Binary file added images/portfolio-pic-dark.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 images/profile-pic.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 @@ -48,7 +48,7 @@ <h3>I'm an avid techie.</h3>
<a href="#contact" class="btn">Join Me <i class="fas fa-arrow-circle-right"></i></a>
</div>
<div class="home-img">
<img src="images/profile-pic.png" alt="">
<img src="images/profile-pic.png" id="image">
</div>
</div>
<a href="#about" class="scroll-down">Scroll Down <i class="fas fa-arrow-down"></i></a>
Expand Down
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ window.addEventListener("scroll",function(){
//DARK THEME TOGGLE
var icon = document.getElementById("icon");
var logo = document.getElementsByClassName("logo")[0];
var image = document.getElementById("image");
icon.onclick = function(){
document.body.classList.toggle("dark-theme");

if(document.body.classList.contains("dark-theme")){
icon.src = "images/sun.png";
logo.src = "images/logo-dark.png";
image.src = "images/portfolio-pic-dark.png";
}else{
icon.src = "images/moon.png";
logo.src = "images/logo-light.png";
image.src = "images/profile-pic.png";
}
}

Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1044,8 +1044,8 @@ footer a{
}

.home-container .home-img img{
width: 65%;
transform: translate(80px, -180px);
width: 90%;
transform: translate(30px, -220px);
}

.home .home-container .info{
Expand Down

0 comments on commit 9e8b26f

Please sign in to comment.