Add notfound page
This commit is contained in:
parent
ca391ef1d6
commit
2b918bfd38
@ -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]
|
||||
|
@ -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']}
|
||||
]
|
||||
},
|
||||
|
@ -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},
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div class="grid flex-column surface-card align-items-center justify-content-center h-screen">
|
||||
<div class="grid m-0 flex-row md:flex-column surface-card align-items-center justify-content-center h-screen">
|
||||
<img src="assets/layout/images/logo-error.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;">
|
||||
<div class="col-11 md:col-6" style="border:none; border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(233, 30, 99, 0.4) 10%, rgba(33, 150, 243, 0) 30%);">
|
||||
<div class="surface-card h-full w-full m-0 py-7 px-4" style="border:none; border-radius:53px;">
|
||||
<div class="col-11 md:col-6" style="border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(233, 30, 99, 0.4) 10%, rgba(33, 150, 243, 0) 30%);">
|
||||
<div class="surface-card h-full w-full m-0 py-7 px-4" style="border-radius:53px;">
|
||||
<div class="grid flex flex-column align-items-center justify-content-center">
|
||||
<div style="border-radius:50%; height:38px; width:38px;" class="flex justify-content-center align-items-center bg-pink-500">
|
||||
<i class="pi pi-fw pi-exclamation-circle" style="font-size:1.5rem; color:#ffffff"></i>
|
||||
@ -10,7 +10,7 @@
|
||||
<span class="text-gray-600">Requested resource is not available.</span>
|
||||
<img src="assets/layout/images/asset-error.svg" alt="Error" class="mt-5" width="80%">
|
||||
<div class="col-12 mt-5 text-center">
|
||||
<i class="pi pi-fw pi-arrow-left text-blue-500 mr-2" style="vertical-align:center;"></i><a href="#" class="text-blue-500 pb-2" >Go to Dashboard</a>
|
||||
<i class="pi pi-fw pi-arrow-left text-blue-500 mr-2" style="vertical-align:center;"></i><a href="#" class="text-blue-500" >Go to Dashboard</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="grid flex-column surface-card align-items-center justify-content-center h-screen">
|
||||
<div class="grid m-0 flex-column surface-card align-items-center justify-content-center h-screen">
|
||||
<img src="assets/layout/images/logo-blue.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;">
|
||||
<div class="col-11 md:col-6" style="border:none; border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(33, 150, 243, 0.4) 10%, rgba(33, 150, 243, 0) 30%);">
|
||||
<div class="surface-card h-full w-full m-0 py-7 px-4" style="border:none; border-radius:53px;">
|
||||
|
42
src/app/components/notfound/notfound.component.html
Normal file
42
src/app/components/notfound/notfound.component.html
Normal file
@ -0,0 +1,42 @@
|
||||
<div class="grid m-0 py-3 md:p-0 flex-row md:flex-column surface-card align-items-center justify-content-center h-screen">
|
||||
<img src="assets/layout/images/logo-blue.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;">
|
||||
<div class="col-11 md:col-6" style="border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(33, 150, 243, 0.4) 10%, rgba(33, 150, 243, 0) 30%);">
|
||||
<div class="surface-card h-full w-full m-0 py-7 px-4" style="border-radius:53px;">
|
||||
<div class="grid flex-column align-items-center">
|
||||
<span class="text-blue-500 font-bold text-3xl">404</span>
|
||||
<h1 class="text-gray-900 font-bold text-4xl lg:text-5xl mb-2">Looks like you are lost</h1>
|
||||
<span class="text-gray-600">Requested resource is not available.</span>
|
||||
<div class="col-11 lg:col-10 flex align-items-center py-5 mt-6 border-300 border-bottom-1">
|
||||
<div class="flex justify-content-center align-items-center bg-cyan-400 border-round" style="height:3.5rem; width:3.5rem;">
|
||||
<i class="pi pi-fw pi-table text-50 text-2xl"></i>
|
||||
</div>
|
||||
<div class="ml-4">
|
||||
<p class="text-gray-900 lg:text-xl font-medium mb-0">Frequently Asked Questions</p>
|
||||
<span class="text-gray-600 lg:text-xl">Ultricies mi quis hendrerit dolor.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-11 lg:col-10 flex align-items-center py-5 border-300 border-bottom-1">
|
||||
<div class="flex justify-content-center align-items-center bg-orange-400 border-round" style="height:3.5rem; width:3.5rem;">
|
||||
<i class="pi pi-fw pi-question-circle text-50 text-2xl"></i>
|
||||
</div>
|
||||
<div class="ml-4">
|
||||
<p class="text-gray-900 lg:text-xl font-medium mb-0">Solution Center</p>
|
||||
<span class="text-gray-600 lg:text-xl">Phasellus faucibus scelerisque eleifend.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-11 lg:col-10 flex align-items-center py-5 border-300 border-bottom-1">
|
||||
<div class="flex justify-content-center align-items-center bg-indigo-400 border-round" style="height:3.5rem; width:3.5rem;">
|
||||
<i class="pi pi-fw pi-unlock text-50 text-2xl"></i>
|
||||
</div>
|
||||
<div class="ml-4">
|
||||
<p class="text-gray-900 lg:text-xl font-medium mb-0">Permission Manager</p>
|
||||
<span class="text-gray-600 lg:text-xl">Accumsan in nisl nisi scelerisque</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mt-5 text-center">
|
||||
<i class="pi pi-fw pi-arrow-left text-blue-500 mr-2" style="vertical-align:center;"></i><a href="#" class="text-blue-500">Go to Dashboard</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
7
src/app/components/notfound/notfound.component.ts
Normal file
7
src/app/components/notfound/notfound.component.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-notfound',
|
||||
templateUrl: './notfound.component.html',
|
||||
})
|
||||
export class NotfoundComponent { }
|
Loading…
Reference in New Issue
Block a user