Added 404 page
This commit is contained in:
		@@ -7,12 +7,14 @@ import {NavbarComponent} from './components/navbar/navbar.component';
 | 
				
			|||||||
import { AppComponent } from './containers/app/app.component';
 | 
					import { AppComponent } from './containers/app/app.component';
 | 
				
			||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 | 
					import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 | 
				
			||||||
import {MaterialModule} from './material.module';
 | 
					import {MaterialModule} from './material.module';
 | 
				
			||||||
 | 
					import {FourOFourComponent} from './views/404/404.component';
 | 
				
			||||||
import {GalleryComponent} from './views/gallery/gallery.component';
 | 
					import {GalleryComponent} from './views/gallery/gallery.component';
 | 
				
			||||||
import {HomeComponent} from './views/home/home.component';
 | 
					import {HomeComponent} from './views/home/home.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const APP_COMPONENTS = [
 | 
					export const APP_COMPONENTS = [
 | 
				
			||||||
	AppComponent,
 | 
						AppComponent,
 | 
				
			||||||
	BannerComponent,
 | 
						BannerComponent,
 | 
				
			||||||
 | 
						FourOFourComponent,
 | 
				
			||||||
	GalleryComponent,
 | 
						GalleryComponent,
 | 
				
			||||||
	HomeComponent,
 | 
						HomeComponent,
 | 
				
			||||||
	FooterComponent,
 | 
						FooterComponent,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,11 +1,13 @@
 | 
				
			|||||||
import { NgModule } from '@angular/core';
 | 
					import { NgModule } from '@angular/core';
 | 
				
			||||||
import { RouterModule, Routes } from '@angular/router';
 | 
					import { RouterModule, Routes } from '@angular/router';
 | 
				
			||||||
 | 
					import {FourOFourComponent} from './views/404/404.component';
 | 
				
			||||||
import {GalleryComponent} from './views/gallery/gallery.component';
 | 
					import {GalleryComponent} from './views/gallery/gallery.component';
 | 
				
			||||||
import {HomeComponent} from './views/home/home.component';
 | 
					import {HomeComponent} from './views/home/home.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const routes: Routes = [
 | 
					const routes: Routes = [
 | 
				
			||||||
	{path: '', pathMatch: 'full', component: HomeComponent},
 | 
						{path: '', pathMatch: 'full', component: HomeComponent},
 | 
				
			||||||
	{path: 'gallery', component: GalleryComponent}
 | 
						{path: 'gallery', component: GalleryComponent},
 | 
				
			||||||
 | 
						{path: '**', component: FourOFourComponent}
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@NgModule({
 | 
					@NgModule({
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										14
									
								
								src/app/views/404/404.component.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/app/views/404/404.component.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					<section class="p-5 invert">
 | 
				
			||||||
 | 
						<div class="d-flex justify-content-center">
 | 
				
			||||||
 | 
							<div>
 | 
				
			||||||
 | 
								<img src="/assets/img/column.png" alt="" height="300px" width="auto">
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
							<div class="d-flex flex-column align-items-center justify-content-center px-5">
 | 
				
			||||||
 | 
								<h2>404</h2>
 | 
				
			||||||
 | 
								<h3>Page Not Found</h3>
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
							<div>
 | 
				
			||||||
 | 
								<img src="/assets/img/column.png" alt="" height="300px" width="auto">
 | 
				
			||||||
 | 
							</div>
 | 
				
			||||||
 | 
						</div>
 | 
				
			||||||
 | 
					</section>
 | 
				
			||||||
							
								
								
									
										7
									
								
								src/app/views/404/404.component.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								src/app/views/404/404.component.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					import {Component} from '@angular/core';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
						selector: 'xxx-404',
 | 
				
			||||||
 | 
						templateUrl: './404.component.html'
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class FourOFourComponent { }
 | 
				
			||||||
		Reference in New Issue
	
	Block a user