diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 099b7c1..2b8e524 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -24,6 +24,7 @@ import { InvalidStateComponent } from './components/invalidstate/invalidstate.co import { TimelineComponent } from './components/timeline/timeline.component'; import { IconsComponent } from './components/icons/icons.component'; import { LandingComponent } from './components/landing/landing.component'; +import { LoginComponent } from './components/login/login.component'; @NgModule({ imports: [ RouterModule.forRoot([ @@ -55,7 +56,8 @@ import { LandingComponent } from './components/landing/landing.component'; {path: 'documentation', component: DocumentationComponent} ], }, - {path:'landing', component: LandingComponent}, + {path:'pages/landing', component: LandingComponent}, + {path:'pages/login', component: LoginComponent}, {path: '**', redirectTo: 'pages/empty'}, ], {scrollPositionRestoration: 'enabled'}) ], diff --git a/src/app/app.menu.component.ts b/src/app/app.menu.component.ts index 18f9725..3efd259 100644 --- a/src/app/app.menu.component.ts +++ b/src/app/app.menu.component.ts @@ -71,7 +71,8 @@ export class AppMenuComponent implements OnInit { items: [ {label: 'Crud', icon: 'pi pi-fw pi-user-edit', routerLink: ['/pages/crud']}, {label: 'Timeline', icon: 'pi pi-fw pi-calendar', routerLink: ['/pages/timeline']}, - {label: 'Landing', icon: 'pi pi-fw pi-globe', routerLink: ['/landing']}, + {label: 'Landing', icon: 'pi pi-fw pi-globe', routerLink: ['pages/landing']}, + {label: 'Login', icon: 'pi pi-fw pi-sign-in', routerLink: ['pages/login']}, {label: 'Empty', icon: 'pi pi-fw pi-circle', routerLink: ['/pages/empty']} ] }, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 921816c..699bb61 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -136,6 +136,7 @@ import { PhotoService } from './service/photoservice'; import { ProductService } from './service/productservice'; import { MenuService } from './service/app.menu.service'; import { ConfigService } from './service/app.config.service'; +import { LoginComponent } from './components/login/login.component'; @NgModule({ imports: [ @@ -265,6 +266,7 @@ import { ConfigService } from './service/app.config.service'; PersonalComponent, SeatComponent, LandingComponent, + LoginComponent, ], providers: [ {provide: LocationStrategy, useClass: HashLocationStrategy}, diff --git a/src/app/components/login/login.component.html b/src/app/components/login/login.component.html new file mode 100644 index 0000000..7d32e0e --- /dev/null +++ b/src/app/components/login/login.component.html @@ -0,0 +1,36 @@ +
+
+ Sakai logo +
+
+
+
+ Profile avatar +

Welcome, Isabel!

+ Sign in to continue +
+
+
+ + +
+
+ + +
+
+ + +
+ +
+ +
+
+
+
+
+
+
\ No newline at end of file diff --git a/src/app/components/login/login.component.ts b/src/app/components/login/login.component.ts new file mode 100644 index 0000000..2ba5c8b --- /dev/null +++ b/src/app/components/login/login.component.ts @@ -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'); + } + +} diff --git a/src/assets/layout/images/avatar.png b/src/assets/layout/images/avatar.png new file mode 100644 index 0000000..cd1b124 Binary files /dev/null and b/src/assets/layout/images/avatar.png differ