Added 404 page

This commit is contained in:
Zakary Timson 2022-09-24 13:56:53 -04:00
parent ff8974d285
commit 0e76d7c1b1
4 changed files with 26 additions and 1 deletions

View File

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

View File

@ -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({

View 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>

View File

@ -0,0 +1,7 @@
import {Component} from '@angular/core';
@Component({
selector: 'xxx-404',
templateUrl: './404.component.html'
})
export class FourOFourComponent { }