ajout background

This commit is contained in:
p2405951
2025-10-18 15:39:57 +02:00
parent 7160f4cfa2
commit 05eed05947
5 changed files with 90 additions and 26 deletions
+11 -10
View File
@@ -1,14 +1,15 @@
import styles from "./LoginPage.module.css"
import LoginForm from "../../components/form.jsx"
import styles from "./LoginPage.module.css";
import LoginForm from "../../components/form.jsx";
import Background from "../../components/background.jsx";
function LoginPage(){
return (
<div className={styles.container}>
<LoginForm className={styles["login-form"]}/>
</div>
)
function LoginPage() {
return (
<Background>
<div className={styles.container}>
<LoginForm />
</div>
</Background>
);
}
export default LoginPage;
+59 -3
View File
@@ -10,20 +10,19 @@
height: 100vh;
justify-content: center;
align-items: center;
background-color: rgb(235, 199, 22);
padding: 20px;
border: 1px solid #ccc;
}
.login-form {
display: flex;
flex-direction: column;
padding: 40px 20px;
width: 100%;
width: 25%;
max-width: 400px;
background-color: rgb(232, 229, 229);
opacity: 0.85;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.form-group {
margin-bottom: 30px;
@@ -53,3 +52,60 @@ h1 {
font-size: 16px;
margin-top: 100px;
}
/* BACKGROUND ////////////////////////////////////////////////////////*/
.background-container {
margin: 0;
padding: 0;
min-height: 100vh;
background: linear-gradient(135deg, #ff9500, #ffb347);
overflow: hidden;
position: relative;
width: 100vw;
}
.circle {
position: absolute;
border-radius: 50%;
opacity: 0.8;
z-index: 1; /* Place les cercles sous le contenu */
}
.circle-1 {
width: 600px;
height: 600px;
background-color: rgba(255, 255, 204, 0.6);
top: -10%;
left: -10%;
}
.circle-2 {
width: 250px;
height: 250px;
background-color: rgba(255, 255, 153, 0.829);
top: 51%;
left: 10%;
}
.circle-3 {
width: 280px;
height: 280px;
background-color: rgba(255, 255, 204, 0.439);
top: 17%;
right: 9%;
}
.circle-4 {
width: 500px;
height: 500px;
background-color: rgb(244, 244, 172);
bottom: 0%;
right: 0%;
}
.circle-5 {
width: 240px;
height: 240px;
background-color: rgba(240, 240, 41, 0.827);
top: 2%;
right: 2%;
}