diff --git a/website3.0/components/Header.js b/website3.0/components/Header.js
index 6af89331..21531b73 100644
--- a/website3.0/components/Header.js
+++ b/website3.0/components/Header.js
@@ -98,7 +98,8 @@ const Header = () => {
diff --git a/website3.0/components/ToggleSwitch.js b/website3.0/components/ToggleSwitch.js
index be9091c1..46df6c95 100644
--- a/website3.0/components/ToggleSwitch.js
+++ b/website3.0/components/ToggleSwitch.js
@@ -1,7 +1,5 @@
import { useState, useEffect } from "react";
import "@stylesheets/darkmode.css";
-
-//Importing FontAwesome for Icons
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faMoon } from "@fortawesome/free-regular-svg-icons";
@@ -19,22 +17,26 @@ const ToggleSwitch = () => {
document.body.classList.remove("dark-mode");
}
}, []);
+
// Function to toggle dark mode
const toggleMode = () => {
const newMode = !isDarkMode;
// Update state with new mode
setIsDarkMode(newMode);
// Toggle dark mode class on body
- document.body.classList.toggle("dark-mode");
+ if (newMode) {
+ document.body.classList.add("dark-mode");
+ } else {
+ document.body.classList.remove("dark-mode");
+ }
// Store new mode preference in local storage
- localStorage.setItem("dark-mode", newMode);
+ localStorage.setItem("dark-mode", newMode.toString());
};
return (
-
+
+
);
};
diff --git a/website3.0/pages/HomePage.js b/website3.0/pages/HomePage.js
index 5bbc3e00..22cd5e3c 100644
--- a/website3.0/pages/HomePage.js
+++ b/website3.0/pages/HomePage.js
@@ -196,8 +196,8 @@ function HomePage() {
- Sponsor{" "}
+ Sponsor{" "}
diff --git a/website3.0/stylesheets/header.css b/website3.0/stylesheets/header.css
index 3169e469..bd997ec8 100644
--- a/website3.0/stylesheets/header.css
+++ b/website3.0/stylesheets/header.css
@@ -84,7 +84,7 @@ nav {
.nav-sponsor-btn {
background-color: rgba(245, 245, 245, 0.788);
border: none;
- border-radius: 25px;
+ border-radius: 15px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
color: #000000;
font-size: 20px;
@@ -102,7 +102,7 @@ nav {
}
#heart {
- color: rgba(255, 0, 0, 0.84);
+ color: rgb(234, 139, 155); ;
}
.nav-sponsor-btn:active {
transform: translateY(1px);
diff --git a/website3.0/stylesheets/homepage.css b/website3.0/stylesheets/homepage.css
index c5967e51..40b7259a 100644
--- a/website3.0/stylesheets/homepage.css
+++ b/website3.0/stylesheets/homepage.css
@@ -55,7 +55,7 @@ a {
}
#heart {
- color: red;
+ color: rgb(234, 139, 155);
}
.main-content {