From 05157e6d38de45f8b457b46d8cfe4fa77b7b3666 Mon Sep 17 00:00:00 2001 From: kelen-dev Date: Mon, 2 Jun 2025 17:56:08 +0200 Subject: [PATCH] rework login form --- .../essentials/login/login.component.css | 66 ++++++++++++------- .../essentials/login/login.component.html | 22 ++----- 2 files changed, 49 insertions(+), 39 deletions(-) diff --git a/FencerJudgeFront/src/app/components/essentials/login/login.component.css b/FencerJudgeFront/src/app/components/essentials/login/login.component.css index 2a0292b..6093560 100644 --- a/FencerJudgeFront/src/app/components/essentials/login/login.component.css +++ b/FencerJudgeFront/src/app/components/essentials/login/login.component.css @@ -25,8 +25,7 @@ } .login-header { - background: url("https://www.lejdd.fr/lmnr/var/jdd/public/media/image/2022/07/19/12/escrime-comment-les-francais-apprivoisent-leurs-armes.jpg?VersionId=Mw31AogdDUwVLuCaVdxMozm9kito7TTP") - no-repeat center/cover; + background: url("https://www.lejdd.fr/lmnr/var/jdd/public/media/image/2022/07/19/12/escrime-comment-les-francais-apprivoisent-leurs-armes.jpg?VersionId=Mw31AogdDUwVLuCaVdxMozm9kito7TTP") no-repeat center/cover; position: relative; padding: 4rem 1rem; display: flex; @@ -40,8 +39,10 @@ content: ""; position: absolute; inset: 0; - background: rgba(0, 0, 0, 0.3); /* voile sombre */ - backdrop-filter: blur(2px); /* effet de flou */ + background: rgba(0, 0, 0, 0.3); + /* voile sombre */ + backdrop-filter: blur(2px); + /* effet de flou */ z-index: 1; border-radius: 0.5rem; } @@ -68,18 +69,48 @@ gap: 1rem; } -.login-form h3 { - text-align: center; - color: #235d4f; - margin-bottom: 1rem; -} - .input-group { display: flex; align-items: center; + border-radius: 20px; + position: relative; background-color: #235d4f; - border-radius: 30px; - padding: 0.5rem 1rem; + padding: 1rem; +} + +.input-group input { + width: 100%; + padding: 1rem; + font-size: 16px; + color: white; + border: none; + border-bottom: 1px solid white; + outline: none; + background: transparent; +} + +.input-group input:focus~label, +.input-group input:valid~label { + top: 0; + left: 0; + color: #235d4f; + font-size: 12px; + padding: .6rem; +} + +.input-group input .form-control:focus { + border-color: transparent !important; +} + +.input-group label { + position: absolute; + top: 22px; + left: 0; + font-size: 16px; + color: white; + pointer-events: none; + transition: 0.5s; + padding: .6rem; } .input-group .icon { @@ -87,15 +118,6 @@ margin-right: 0.5rem; } -.input-group input { - border: none; - background: none; - color: white; - width: 100%; - font-size: 1rem; - outline: none; -} - .options { display: flex; justify-content: space-between; @@ -121,4 +143,4 @@ .login-btn:hover { background-color: #1b4b3d; -} +} \ No newline at end of file diff --git a/FencerJudgeFront/src/app/components/essentials/login/login.component.html b/FencerJudgeFront/src/app/components/essentials/login/login.component.html index 980a230..c531f0b 100644 --- a/FencerJudgeFront/src/app/components/essentials/login/login.component.html +++ b/FencerJudgeFront/src/app/components/essentials/login/login.component.html @@ -5,28 +5,16 @@
- 👤 - + +
- 🔒 - + +
- + \ No newline at end of file