-
-
-
-
-
+
(circlesRef.current[0] = el)}
+ className={`${styles["circle"]} ${styles["circle-1"]}`}
+ style={{ "--random-x": "0px", "--random-y": "0px" }}
+ >
+
(circlesRef.current[1] = el)}
+ className={`${styles["circle"]} ${styles["circle-2"]}`}
+ style={{ "--random-x": "0px", "--random-y": "0px" }}
+ >
+
(circlesRef.current[2] = el)}
+ className={`${styles["circle"]} ${styles["circle-3"]}`}
+ style={{ "--random-x": "0px", "--random-y": "0px" }}
+ >
+
(circlesRef.current[3] = el)}
+ className={`${styles["circle"]} ${styles["circle-4"]}`}
+ style={{ "--random-x": "0px", "--random-y": "0px" }}
+ >
+
(circlesRef.current[4] = el)}
+ className={`${styles["circle"]} ${styles["circle-5"]}`}
+ style={{ "--random-x": "0px", "--random-y": "0px" }}
+ >
{children}
);
};
-export default Background;
\ No newline at end of file
+export default Background;
diff --git a/src/components/background/background.module.css b/src/components/background/background.module.css
index 9c009a5..e5cca18 100644
--- a/src/components/background/background.module.css
+++ b/src/components/background/background.module.css
@@ -4,13 +4,13 @@
margin: 0;
padding: 0;
min-height: 100vh;
- background: linear-gradient(135deg, #ff9500, #ffb347);
+ background: #00F0FF;
overflow: hidden;
position: relative;
width: 100vw;
display: flex;
- justify-content: center;
- align-items: center;
+ justify-content: center;
+ align-items: center;
}
.circle {
@@ -23,7 +23,7 @@
.circle-1 {
width: 600px;
height: 600px;
- background-color: rgba(255, 255, 204, 0.6);
+ background-color: #019AFF;
top: -10%;
left: -10%;
}
@@ -31,7 +31,7 @@
.circle-2 {
width: 250px;
height: 250px;
- background-color: rgba(255, 255, 153, 0.829);
+ background-color: #91FCFF;
top: 51%;
left: 10%;
}
@@ -39,15 +39,15 @@
.circle-3 {
width: 280px;
height: 280px;
- background-color: rgba(255, 255, 204, 0.439);
- top: 17%;
+ background-color: #91FCFF;
+ top: 28%;
right: 9%;
}
.circle-4 {
width: 500px;
height: 500px;
- background-color: rgb(244, 244, 172);
+ background-color: #019AFF;
bottom: 0;
right: 0;
}
@@ -55,7 +55,68 @@
.circle-5 {
width: 240px;
height: 240px;
- background-color: rgba(240, 240, 41, 0.827);
+ background-color: #015AFF;
top: 2%;
right: 2%;
+}
+
+.circle-1,.circle-2, .circle-3, .circle-4, .circle-5 {
+ animation: float 6s ease-in-out infinite;
+}
+.circle {
+ animation: float 6s ease-in-out infinite;
+}
+
+@keyframes float {
+ 0%, 100% {
+ transform: translate(0, 0);
+ }
+ 50% {
+ transform: translate(var(--random-x), var(--random-y));
+ }
+}
+
+@media (max-width:600px) {
+
+
+ .circle-1 {
+ width: 300px;
+ height: 300px;
+ background-color: #019AFF;
+ top: -5%;
+ left: -5%;
+}
+
+.circle-2 {
+ width: 175px;
+ height: 175px;
+ background-color: #91FCFF;
+ top: 58%;
+ left: 10%;
+}
+
+.circle-3 {
+ width: 140px;
+ height: 140px;
+ background-color: #91FCFF;
+ top: 29%;
+ right: 9%;
+}
+
+.circle-4 {
+ width: 250px;
+ height: 250px;
+ background-color: #019AFF;
+ bottom: 0;
+ right: 0;
+}
+
+.circle-5 {
+ width: 240px;
+ height: 240px;
+ background-color: #015AFF;
+ top: 2%;
+ right: 10%;
+}
+
}
\ No newline at end of file
diff --git a/src/components/form/form.jsx b/src/components/form/form.jsx
index 26728d2..fc46bcd 100644
--- a/src/components/form/form.jsx
+++ b/src/components/form/form.jsx
@@ -1,4 +1,4 @@
-import { useState } from "react";
+/*import { useState } from "react";
import login from "../../utils/login.js";
import getUser from "../../utils/getUser.js";
import styles from "./form.module.css";
@@ -17,7 +17,7 @@ function LoginForm({ className }) {