Added 403 page

This commit is contained in:
itzMiney committed 2025-03-16 12:39:17 +01:00
1 parent a0ca59f982
commit 3190fa9d3c
4 files changed
+63

No files matched your search

+2
View File
@@ -11,6 +11,7 @@ import {ServicesComponent} from './services/services.component';
import {TosComponent} from './tos/tos.component';
import {ImprintComponent} from './imprint/imprint.component';
import {ShortenerComponent} from './shortener/shortener.component';
import {ForbiddenComponent} from './forbidden/forbidden.component';
export const routes: Routes = [
{ path: '', component: AboutComponent },
@@ -25,5 +26,6 @@ export const routes: Routes = [
{ path: 'imprint', component: ImprintComponent },
{ path: 'blog/:slug', component: ArticlePageComponent },
{ path: 'shortener', component: ShortenerComponent },
{ path: '403', component: ForbiddenComponent },
{ path: '**', pathMatch: 'full', component: NotFoundComponent }
];
+43
View File
@@ -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>
+11
View File
@@ -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 {
}