From 05eed05947e55055b87cc68d27bb5927976f8ff5 Mon Sep 17 00:00:00 2001 From: p2405951 Date: Sat, 18 Oct 2025 15:39:57 +0200 Subject: [PATCH] ajout background --- src/components/background.jsx | 15 +++++++ src/components/form.jsx | 14 ++----- src/index.css | 4 +- src/pages/Login/LoginPage.jsx | 21 +++++----- src/pages/Login/LoginPage.module.css | 62 ++++++++++++++++++++++++++-- 5 files changed, 90 insertions(+), 26 deletions(-) create mode 100644 src/components/background.jsx diff --git a/src/components/background.jsx b/src/components/background.jsx new file mode 100644 index 0000000..fb26f29 --- /dev/null +++ b/src/components/background.jsx @@ -0,0 +1,15 @@ +import styles from './../pages/Login/LoginPage.module.css'; +const Background = ({ children, className }) => { + return ( +
+
+
+
+
+
+ {children} +
+ ); +}; + +export default Background; \ No newline at end of file diff --git a/src/components/form.jsx b/src/components/form.jsx index bc7f9ff..df7a9b7 100644 --- a/src/components/form.jsx +++ b/src/components/form.jsx @@ -1,25 +1,17 @@ function LoginForm({ className }) { return ( -
+

Connexion


- +
- +
diff --git a/src/index.css b/src/index.css index 2d9efb0..a347cb8 100644 --- a/src/index.css +++ b/src/index.css @@ -2,9 +2,9 @@ font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; font-weight: 400; - color-scheme: light dark; + /* color-scheme: light dark; color: rgba(255, 255, 255, 0.87); - background-color: #242424; + background-color: #242424;*/ font-synthesis: none; text-rendering: optimizeLegibility; diff --git a/src/pages/Login/LoginPage.jsx b/src/pages/Login/LoginPage.jsx index 5f2c135..9fbf39f 100644 --- a/src/pages/Login/LoginPage.jsx +++ b/src/pages/Login/LoginPage.jsx @@ -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 ( -
- -
- - ) +function LoginPage() { + return ( + +
+ +
+
+ ); } export default LoginPage; \ No newline at end of file diff --git a/src/pages/Login/LoginPage.module.css b/src/pages/Login/LoginPage.module.css index 9764358..1a9d0a3 100644 --- a/src/pages/Login/LoginPage.module.css +++ b/src/pages/Login/LoginPage.module.css @@ -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%; +}