Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logochangein-darkmode-css #771

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading