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 @@ +