From bcd88af53b1a920d728ec98b45daa9ac2e2c0917 Mon Sep 17 00:00:00 2001 From: transtrike Date: Fri, 12 Feb 2021 19:04:53 +0200 Subject: Moved from DevHive --- .../components/not-found/not-found.component.css | 23 ++++++++++++++++++ .../components/not-found/not-found.component.html | 10 ++++++++ .../components/not-found/not-found.component.ts | 27 ++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 src/app/components/not-found/not-found.component.css create mode 100644 src/app/components/not-found/not-found.component.html create mode 100644 src/app/components/not-found/not-found.component.ts (limited to 'src/app/components/not-found') diff --git a/src/app/components/not-found/not-found.component.css b/src/app/components/not-found/not-found.component.css new file mode 100644 index 0000000..ef6231d --- /dev/null +++ b/src/app/components/not-found/not-found.component.css @@ -0,0 +1,23 @@ +#content { + font-size: 1.3em; +} + +#content hr { + width: 100%; + border: 1px solid black; + box-sizing: border-box; +} + +#back-btns { + width: 100%; + display: flex; +} + +#back-btns > * { + flex: 1; + margin-right: .2em; +} + +#back-btns > *:nth-last-child(1) { + margin-right: 0; +} diff --git a/src/app/components/not-found/not-found.component.html b/src/app/components/not-found/not-found.component.html new file mode 100644 index 0000000..8394810 --- /dev/null +++ b/src/app/components/not-found/not-found.component.html @@ -0,0 +1,10 @@ +
+
+ Page not found! +
+
+
+ + +
+
diff --git a/src/app/components/not-found/not-found.component.ts b/src/app/components/not-found/not-found.component.ts new file mode 100644 index 0000000..b1f8cc1 --- /dev/null +++ b/src/app/components/not-found/not-found.component.ts @@ -0,0 +1,27 @@ +import { Component, OnInit } from '@angular/core'; +import { Title } from '@angular/platform-browser'; +import { Router } from '@angular/router'; + +@Component({ + selector: 'app-not-found', + templateUrl: './not-found.component.html', + styleUrls: ['./not-found.component.css'] +}) +export class NotFoundComponent implements OnInit { + private _title = 'Not Found!'; + + constructor(private _titleService: Title, private _router: Router) { + this._titleService.setTitle(this._title); + } + + ngOnInit(): void { + } + + backToFeed(): void { + this._router.navigate(['/']); + } + + backToLogin(): void { + this._router.navigate(['/login']); + } +} -- cgit v1.2.3