From 2b918bfd38b6c978d7c68ed487799fe6b88f3259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Sat, 15 Jan 2022 11:13:40 +0300 Subject: [PATCH] Add notfound page --- src/app/app-routing.module.ts | 4 +- src/app/app.menu.component.ts | 1 + src/app/app.module.ts | 2 + src/app/components/error/error.component.html | 8 ++-- src/app/components/login/login.component.html | 2 +- .../notfound/notfound.component.html | 42 +++++++++++++++++++ .../components/notfound/notfound.component.ts | 7 ++++ 7 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 src/app/components/notfound/notfound.component.html create mode 100644 src/app/components/notfound/notfound.component.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 91cb535..3666978 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -26,6 +26,7 @@ import { IconsComponent } from './components/icons/icons.component'; import { LandingComponent } from './components/landing/landing.component'; import { LoginComponent } from './components/login/login.component'; import { ErrorComponent } from './components/error/error.component'; +import { NotfoundComponent } from './components/notfound/notfound.component'; @NgModule({ imports: [ RouterModule.forRoot([ @@ -60,7 +61,8 @@ import { ErrorComponent } from './components/error/error.component'; {path:'pages/landing', component: LandingComponent}, {path:'pages/login', component: LoginComponent}, {path:'pages/error', component: ErrorComponent}, - {path: '**', redirectTo: 'pages/empty'}, + {path:'pages/notfound', component: NotfoundComponent}, + {path: '**', redirectTo: 'pages/notfound'}, ], {scrollPositionRestoration: 'enabled'}) ], exports: [RouterModule] diff --git a/src/app/app.menu.component.ts b/src/app/app.menu.component.ts index 9ec2418..b816ce2 100644 --- a/src/app/app.menu.component.ts +++ b/src/app/app.menu.component.ts @@ -74,6 +74,7 @@ export class AppMenuComponent implements OnInit { {label: 'Landing', icon: 'pi pi-fw pi-globe', routerLink: ['pages/landing']}, {label: 'Login', icon: 'pi pi-fw pi-sign-in', routerLink: ['pages/login']}, {label: 'Error', icon: 'pi pi-fw pi-times-circle', routerLink: ['pages/error']}, + {label: 'Not Found', icon: 'pi pi-fw pi-exclamation-circle', routerLink: ['pages/notfound']}, {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 479b28a..ecb2d05 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -138,6 +138,7 @@ import { MenuService } from './service/app.menu.service'; import { ConfigService } from './service/app.config.service'; import { LoginComponent } from './components/login/login.component'; import { ErrorComponent } from './components/error/error.component'; +import { NotfoundComponent } from './components/notfound/notfound.component'; @NgModule({ imports: [ @@ -269,6 +270,7 @@ import { ErrorComponent } from './components/error/error.component'; LandingComponent, LoginComponent, ErrorComponent, + NotfoundComponent, ], providers: [ {provide: LocationStrategy, useClass: HashLocationStrategy}, diff --git a/src/app/components/error/error.component.html b/src/app/components/error/error.component.html index 2eb0ec9..4a02acc 100644 --- a/src/app/components/error/error.component.html +++ b/src/app/components/error/error.component.html @@ -1,7 +1,7 @@ -
+
Sakai logo -
-
+
+
@@ -10,7 +10,7 @@ Requested resource is not available. Error
diff --git a/src/app/components/login/login.component.html b/src/app/components/login/login.component.html index 32a4246..91953e7 100644 --- a/src/app/components/login/login.component.html +++ b/src/app/components/login/login.component.html @@ -1,4 +1,4 @@ -
+
Sakai logo
diff --git a/src/app/components/notfound/notfound.component.html b/src/app/components/notfound/notfound.component.html new file mode 100644 index 0000000..e9357d6 --- /dev/null +++ b/src/app/components/notfound/notfound.component.html @@ -0,0 +1,42 @@ +
+ Sakai logo +
+
+
+ 404 +

Looks like you are lost

+ Requested resource is not available. +
+
+ +
+
+

Frequently Asked Questions

+ Ultricies mi quis hendrerit dolor. +
+
+
+
+ +
+
+

Solution Center

+ Phasellus faucibus scelerisque eleifend. +
+
+
+
+ +
+
+

Permission Manager

+ Accumsan in nisl nisi scelerisque +
+
+ +
+
+
+
\ No newline at end of file diff --git a/src/app/components/notfound/notfound.component.ts b/src/app/components/notfound/notfound.component.ts new file mode 100644 index 0000000..1d57db4 --- /dev/null +++ b/src/app/components/notfound/notfound.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-notfound', + templateUrl: './notfound.component.html', +}) +export class NotfoundComponent { }