(circlesRef.current[0] = el)}
className={`${styles["circle"]} ${styles["circle-1"]}`}
diff --git a/src/components/background/background.module.css b/src/components/background/background.module.css
index e5cca18..c0e7211 100644
--- a/src/components/background/background.module.css
+++ b/src/components/background/background.module.css
@@ -1,10 +1,9 @@
/* BACKGROUND ////////////////////////////////////////////////////////*/
-.background-container {
+.backgroundContainer {
z-index: 0;
margin: 0;
padding: 0;
min-height: 100vh;
- background: #00F0FF;
overflow: hidden;
position: relative;
width: 100vw;
@@ -13,6 +12,14 @@
align-items: center;
}
+.backgroundLight {
+ background: #00F0FF;
+}
+
+.backgroundDark {
+ background: #001C83;
+}
+
.circle {
position: absolute;
border-radius: 50%;
@@ -82,7 +89,6 @@
.circle-1 {
width: 300px;
height: 300px;
- background-color: #019AFF;
top: -5%;
left: -5%;
}
@@ -90,7 +96,6 @@
.circle-2 {
width: 175px;
height: 175px;
- background-color: #91FCFF;
top: 58%;
left: 10%;
}
@@ -98,7 +103,6 @@
.circle-3 {
width: 140px;
height: 140px;
- background-color: #91FCFF;
top: 29%;
right: 9%;
}
@@ -106,7 +110,6 @@
.circle-4 {
width: 250px;
height: 250px;
- background-color: #019AFF;
bottom: 0;
right: 0;
}
@@ -114,7 +117,6 @@
.circle-5 {
width: 240px;
height: 240px;
- background-color: #015AFF;
top: 2%;
right: 10%;
}
diff --git a/src/pages/Profile/ProfilePage.jsx b/src/pages/Profile/ProfilePage.jsx
index 033ea4b..5eeb17e 100644
--- a/src/pages/Profile/ProfilePage.jsx
+++ b/src/pages/Profile/ProfilePage.jsx
@@ -15,6 +15,19 @@ function ProfilePage() {
logout();
}
+ const switchTheme = () => {
+
+ const currentTheme = localStorage.getItem("theme");
+ let newTheme = currentTheme === "light" ? "dark" : "light";
+
+ if(currentTheme === null) newTheme = "dark";
+
+ localStorage.setItem("theme", newTheme);
+
+ window.dispatchEvent(new Event("theme-changed"));
+ };
+
+
return (
@@ -29,7 +42,10 @@ function ProfilePage() {
{user.name} {user.lastname}
-
+
+
+
+
diff --git a/src/pages/Profile/ProfilePage.module.css b/src/pages/Profile/ProfilePage.module.css
index 438156d..6f61f45 100644
--- a/src/pages/Profile/ProfilePage.module.css
+++ b/src/pages/Profile/ProfilePage.module.css
@@ -70,7 +70,13 @@
}
.profilePicture{
width:90%;
- }
+}
+
+.settingsBtns {
+ display: flex;
+ gap: 5px;
+ justify-content: right;
+}
@media screen and (min-width: 768px) {
.contentWrapper {