Added 403 page
This commit is contained in:
1 parent
a0ca59f982
commit
3190fa9d3c
4 files changed
+63
No files matched your search
@@ -11,6 +11,7 @@ import {ServicesComponent} from './services/services.component';
|
|||||||
import {TosComponent} from './tos/tos.component';
|
import {TosComponent} from './tos/tos.component';
|
||||||
import {ImprintComponent} from './imprint/imprint.component';
|
import {ImprintComponent} from './imprint/imprint.component';
|
||||||
import {ShortenerComponent} from './shortener/shortener.component';
|
import {ShortenerComponent} from './shortener/shortener.component';
|
||||||
|
import {ForbiddenComponent} from './forbidden/forbidden.component';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{ path: '', component: AboutComponent },
|
{ path: '', component: AboutComponent },
|
||||||
@@ -25,5 +26,6 @@ export const routes: Routes = [
|
|||||||
{ path: 'imprint', component: ImprintComponent },
|
{ path: 'imprint', component: ImprintComponent },
|
||||||
{ path: 'blog/:slug', component: ArticlePageComponent },
|
{ path: 'blog/:slug', component: ArticlePageComponent },
|
||||||
{ path: 'shortener', component: ShortenerComponent },
|
{ path: 'shortener', component: ShortenerComponent },
|
||||||
|
{ path: '403', component: ForbiddenComponent },
|
||||||
{ path: '**', pathMatch: 'full', component: NotFoundComponent }
|
{ path: '**', pathMatch: 'full', component: NotFoundComponent }
|
||||||
];
|
];
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
.height-container {
|
||||||
|
background: #bd3948;
|
||||||
|
display: flex;
|
||||||
|
min-height: 100vh;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message h1 {
|
||||||
|
font-size: 10rem;
|
||||||
|
margin: 0;
|
||||||
|
font-weight: 700;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message p {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
margin: 20px 0;
|
||||||
|
font-weight: 400;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: #000000;
|
||||||
|
border: none;
|
||||||
|
padding: 10px 20px;
|
||||||
|
font-size: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 25px;
|
||||||
|
transition: background-color 0.3s;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
background-color: #b88989;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:active {
|
||||||
|
background-color: #952e2e;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<div class="height-container">
|
||||||
|
<div class="error-message">
|
||||||
|
<h1>403</h1>
|
||||||
|
<p>You shall not pass!</p>
|
||||||
|
<a href="/"><button id="reloadButton">Take me Home!</button></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-forbidden',
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './forbidden.component.html',
|
||||||
|
styleUrl: './forbidden.component.css'
|
||||||
|
})
|
||||||
|
export class ForbiddenComponent {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in new issue
Block a user