add login page

This commit is contained in:
Çetin
2022-01-14 15:54:36 +03:00
parent 887fbbf48d
commit 1aa3780d65
6 changed files with 84 additions and 2 deletions

View File

@@ -0,0 +1,41 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styles:[`
:host ::ng-deep .p-password input {
width: 100%;
padding:1.25rem;
font-size:21px;
}
:host ::ng-deep .pi-eye{
transform:scale(1.6);
margin-right: 1rem;
}
:host ::ng-deep .pi-eye-slash{
transform:scale(1.6);
margin-right: 1rem;
}
`]
})
export class LoginComponent implements OnInit {
valCheck: string[] = ['remember'];
password: string;
themeElement: any;
constructor() { }
ngOnInit(): void {
this.themeElement = document.getElementById('theme-css');
this.themeElement.setAttribute('href','assets/theme/saga-blue/theme.css');
}
ngOnDestroy(): void {
this.themeElement.setAttribute('href', 'assets/theme/lara-light-indigo/theme.css');
}
}