From 31f1041164cffc7c68697a539b27bc5ed064b374 Mon Sep 17 00:00:00 2001 From: Chneemann Date: Sun, 20 Apr 2025 15:28:30 +0200 Subject: [PATCH] ui: add icons to email and password input fields --- .../forgot-password.component.html | 45 ++++++++++--------- .../auth/login/login.component.html | 38 +++++++++------- .../auth/register/register.component.html | 41 +++++++++-------- .../upload-movie/upload-movie.component.scss | 1 - frontend/src/assets/img/mail.svg | 8 ++++ frontend/src/assets/img/password.svg | 8 ++++ frontend/src/assets/style/form.scss | 23 +++++++++- 7 files changed, 106 insertions(+), 58 deletions(-) create mode 100644 frontend/src/assets/img/mail.svg create mode 100644 frontend/src/assets/img/password.svg diff --git a/frontend/src/app/components/auth/forgot-password/forgot-password.component.html b/frontend/src/app/components/auth/forgot-password/forgot-password.component.html index f9bf168..a7a7ace 100644 --- a/frontend/src/app/components/auth/forgot-password/forgot-password.component.html +++ b/frontend/src/app/components/auth/forgot-password/forgot-password.component.html @@ -10,24 +10,27 @@ (ngSubmit)="onSubmit(taskForm, mail)" onsubmit="return false" > - +
+ + +
@if (!mail.valid && mail.touched) {

Please enter your email

@@ -82,8 +85,9 @@ " required /> + @@ -114,8 +118,9 @@ " required /> + diff --git a/frontend/src/app/components/auth/login/login.component.html b/frontend/src/app/components/auth/login/login.component.html index 0a7523c..5bb44ee 100644 --- a/frontend/src/app/components/auth/login/login.component.html +++ b/frontend/src/app/components/auth/login/login.component.html @@ -7,22 +7,25 @@ onsubmit="return false" (input)="this.errorService.clearError()" > - +
+ + +
@if (!mail.valid && mail.touched) {

Please enter your email

@@ -48,8 +51,9 @@ " required /> + diff --git a/frontend/src/app/components/auth/register/register.component.html b/frontend/src/app/components/auth/register/register.component.html index 6da5173..376d645 100644 --- a/frontend/src/app/components/auth/register/register.component.html +++ b/frontend/src/app/components/auth/register/register.component.html @@ -16,22 +16,25 @@ onsubmit="return false" (input)="this.errorService.clearError()" > - +
+ + +
@if (!mail.valid && mail.touched) {

Please enter your email

@@ -56,8 +59,9 @@ " required /> + @@ -88,8 +92,9 @@ " required /> + diff --git a/frontend/src/app/components/home/browse/upload-movie/upload-movie.component.scss b/frontend/src/app/components/home/browse/upload-movie/upload-movie.component.scss index 58b2b58..1b340e1 100644 --- a/frontend/src/app/components/home/browse/upload-movie/upload-movie.component.scss +++ b/frontend/src/app/components/home/browse/upload-movie/upload-movie.component.scss @@ -31,7 +31,6 @@ width: 100vw; height: 100vh; backdrop-filter: blur(2px); - background-color: rgba($black, 0.3); display: flex; justify-content: center; align-items: center; diff --git a/frontend/src/assets/img/mail.svg b/frontend/src/assets/img/mail.svg new file mode 100644 index 0000000..e31528c --- /dev/null +++ b/frontend/src/assets/img/mail.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/frontend/src/assets/img/password.svg b/frontend/src/assets/img/password.svg new file mode 100644 index 0000000..c7cd2f6 --- /dev/null +++ b/frontend/src/assets/img/password.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/frontend/src/assets/style/form.scss b/frontend/src/assets/style/form.scss index 763ac0b..19dcf62 100644 --- a/frontend/src/assets/style/form.scss +++ b/frontend/src/assets/style/form.scss @@ -62,12 +62,19 @@ form { // Show / Hide Password -.password-field { +.password-field, +.mail-field { position: relative; width: 100%; + + input, + textarea, + select { + padding-left: 60px; + } } -.passwordEye { +.password-eye { position: absolute; right: 48px; top: 50%; @@ -77,6 +84,18 @@ form { hue-rotate(241deg) brightness(93%) contrast(88%); } +// Icons + +.mail-icon, +.password-icon { + position: absolute; + left: 44px; + top: 50%; + width: 28px; + height: auto; + transform: translateY(-50%); +} + /*------------- RESPONSIVE -------------*/ @media screen and (max-width: 600px) {