style : changes in login ui
This commit is contained in:
parent
273a28e450
commit
89685aab0d
File diff suppressed because one or more lines are too long
@ -75,7 +75,8 @@ body {
|
||||
|
||||
.input-box {
|
||||
width: 75%;
|
||||
padding: 10px;
|
||||
/* height: 30px; */
|
||||
padding: 15px;
|
||||
margin-bottom: 15px;
|
||||
font-size: 16px;
|
||||
border: 1px solid #ccc;
|
||||
|
||||
@ -52,7 +52,14 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
<button class="login-btn" (click)="onSubmit()">LOGIN</button>
|
||||
<!-- Login Button -->
|
||||
<button class="login-btn" (click)="onSubmit()">LOGIN</button>
|
||||
|
||||
<!-- 🔴 Login Error Message -->
|
||||
<div class="error-message" *ngIf="loginError">
|
||||
{{ loginError }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="numpad">
|
||||
<div class="row">
|
||||
|
||||
@ -14,6 +14,8 @@ export class LoginComponent {
|
||||
loginForm: FormGroup;
|
||||
focusedField: 'email' | 'password' | null = null;
|
||||
|
||||
loginError: string | null = null; // <-- 🔴 ADD THIS LINE
|
||||
|
||||
@ViewChild('emailInput') emailInputRef!: ElementRef<HTMLInputElement>;
|
||||
@ViewChild('passwordInput') passwordInputRef!: ElementRef<HTMLInputElement>;
|
||||
|
||||
@ -93,7 +95,15 @@ export class LoginComponent {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('Login successful:', this.loginForm.value);
|
||||
this.router.navigate(['/landing']);
|
||||
// const { email, password } = this.loginForm.value;
|
||||
|
||||
// // 🔴 Replace this with real auth logic
|
||||
// if (email === '123456789012' && password === '123456') {
|
||||
// this.loginError = null;
|
||||
console.log('Login successful:', this.loginForm.value);
|
||||
this.router.navigate(['/landing']);
|
||||
// } else {
|
||||
// this.loginError = 'Invalid username or password'; // 🔴 Show error
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user