Skip to content

Commit

Permalink
logochangein-darkmode-css
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikmehta18 committed May 23, 2024
1 parent 3b7dccc commit 64063d2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ p {
text-decoration-color: #fff;
}
.navbar-header a {
color: #ce6857;
color: rgb(247, 150, 150);
font-size: 2rem;
margin-left: 2rem;
}
Expand Down
6 changes: 3 additions & 3 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ body {
}

.navbar-link:is(:hover, :focus) {
color: var(--old-rose);
color: hsl(357, 37%, 62%);
}

.dropdown-menu {
Expand Down Expand Up @@ -1976,7 +1976,7 @@ input[type="submit"]:hover {
.navbar-link:hover {
font-size: 1.1em;
/* border-bottom: 2px solid darkred; */
color: darkred;
color: #fcb0b480;
}

.navbar-link::after {
Expand All @@ -1985,7 +1985,7 @@ input[type="submit"]:hover {
bottom: 1px;
left: 0px;
height: 3px;
background-color: darkred;
background-color: #fcb0b480;
width: 0;
height: 3px;
box-shadow: 0 0 10px #f39d127e;
Expand Down
Binary file added assets/images/logo_darkbg.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/images/logo_whitebg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ const closeNavbar = function () {

const toggleTheme = function () {
if (currentTheme === 'light') {
logoImage.src = './assets/images/logoPicDark.png';
logoImage.src = './assets/images/logo_darkbg.png';
currentTheme = 'dark';
} else {
logoImage.src = './assets/images/logoPicLight.png';
logoImage.src = './assets/images/logo_whitebg.png';
currentTheme = 'light';
}
// Save the current theme to localStorage
Expand All @@ -161,7 +161,7 @@ const toggleTheme = function () {
if (currentTheme === 'dark') {
logoImage.src = './assets/images/logoPicDark.png';
} else {
logoImage.src = './assets/images/logoPicLight.png';
logoImage.src = './assets/images/logo_whitebg.png';
}

addEventOnelem(navToggler, 'click', toggleNavbar);
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@

<nav class="navbar" data-navbar>
<a href="#home" onclick="lenis.scrollTo('#home');" class="logo" style="display:flex;">
<img src="./assets/images/LogoPicLight.png" alt="" class="logopic" style=" width:0.1px;opacity: 0;" />
<img src="./assets/images/logo_darkbg.png" alt="" class="logopic" style=" width:0.1px;opacity: 0;" />
</a>

<ul class="navbar-list">
<img src="assets/images/logo_whitebg.png" class="logopic" style=" width: 150px;">
<img src="assets/images/logo_darkbg.png" class="logopic" style=" width: 150px;">

<li class="navbar-item">
<a href="#home" onclick="lenis.scrollTo('#home')" class="navbar-link" data-nav-link><i
Expand Down

0 comments on commit 64063d2

Please sign in to comment.