diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-31 11:35:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-31 14:24:13 +0200 |
commit | a51bad1accfade25916db0dadaeb879a182cf19b (patch) | |
tree | 128330863a1125be437cf8ba9bc0c6c529068520 /client/src/app/+page-not-found | |
parent | 351d5225d6a4fe6863f760f02454eac88f730607 (diff) | |
download | PeerTube-a51bad1accfade25916db0dadaeb879a182cf19b.tar.gz PeerTube-a51bad1accfade25916db0dadaeb879a182cf19b.tar.zst PeerTube-a51bad1accfade25916db0dadaeb879a182cf19b.zip |
Add 404 page
Diffstat (limited to 'client/src/app/+page-not-found')
5 files changed, 59 insertions, 0 deletions
diff --git a/client/src/app/+page-not-found/page-not-found-routing.module.ts b/client/src/app/+page-not-found/page-not-found-routing.module.ts new file mode 100644 index 000000000..43f7d7337 --- /dev/null +++ b/client/src/app/+page-not-found/page-not-found-routing.module.ts | |||
@@ -0,0 +1,16 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | import { RouterModule, Routes } from '@angular/router' | ||
3 | import { PageNotFoundComponent } from './page-not-found.component' | ||
4 | |||
5 | const pageNotFoundRoutes: Routes = [ | ||
6 | { | ||
7 | path: '', | ||
8 | component: PageNotFoundComponent, | ||
9 | } | ||
10 | ] | ||
11 | |||
12 | @NgModule({ | ||
13 | imports: [ RouterModule.forChild(pageNotFoundRoutes) ], | ||
14 | exports: [ RouterModule ] | ||
15 | }) | ||
16 | export class PageNotFoundRoutingModule {} | ||
diff --git a/client/src/app/+page-not-found/page-not-found.component.html b/client/src/app/+page-not-found/page-not-found.component.html new file mode 100644 index 000000000..66aa2aec7 --- /dev/null +++ b/client/src/app/+page-not-found/page-not-found.component.html | |||
@@ -0,0 +1,3 @@ | |||
1 | <div> | ||
2 | Sorry, but we couldn't find the page you were looking for. | ||
3 | </div> \ No newline at end of file | ||
diff --git a/client/src/app/+page-not-found/page-not-found.component.scss b/client/src/app/+page-not-found/page-not-found.component.scss new file mode 100644 index 000000000..05d45f97f --- /dev/null +++ b/client/src/app/+page-not-found/page-not-found.component.scss | |||
@@ -0,0 +1,8 @@ | |||
1 | div { | ||
2 | height: 100%; | ||
3 | width: 100%; | ||
4 | text-align: center; | ||
5 | margin-top: 50px; | ||
6 | |||
7 | font-size: 32px; | ||
8 | } \ No newline at end of file | ||
diff --git a/client/src/app/+page-not-found/page-not-found.component.ts b/client/src/app/+page-not-found/page-not-found.component.ts new file mode 100644 index 000000000..c91bb8649 --- /dev/null +++ b/client/src/app/+page-not-found/page-not-found.component.ts | |||
@@ -0,0 +1,10 @@ | |||
1 | import { Component } from '@angular/core' | ||
2 | |||
3 | @Component({ | ||
4 | selector: 'my-page-not-found', | ||
5 | templateUrl: './page-not-found.component.html', | ||
6 | styleUrls: [ './page-not-found.component.scss' ] | ||
7 | }) | ||
8 | export class PageNotFoundComponent { | ||
9 | |||
10 | } | ||
diff --git a/client/src/app/+page-not-found/page-not-found.module.ts b/client/src/app/+page-not-found/page-not-found.module.ts new file mode 100644 index 000000000..bc29d17c4 --- /dev/null +++ b/client/src/app/+page-not-found/page-not-found.module.ts | |||
@@ -0,0 +1,22 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | import { SharedModule } from '../shared' | ||
3 | import { PageNotFoundComponent } from '@app/+page-not-found/page-not-found.component' | ||
4 | import { PageNotFoundRoutingModule } from '@app/+page-not-found/page-not-found-routing.module' | ||
5 | |||
6 | @NgModule({ | ||
7 | imports: [ | ||
8 | PageNotFoundRoutingModule, | ||
9 | SharedModule | ||
10 | ], | ||
11 | |||
12 | declarations: [ | ||
13 | PageNotFoundComponent, | ||
14 | ], | ||
15 | |||
16 | exports: [ | ||
17 | PageNotFoundComponent | ||
18 | ], | ||
19 | |||
20 | providers: [] | ||
21 | }) | ||
22 | export class PageNotFoundModule { } | ||