-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): Add "404 - Not found" page
- Loading branch information
1 parent
50e2cf3
commit 1aa3d29
Showing
8 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
Submodule capella-dockerimages
updated
42 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- | ||
~ SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors | ||
~ SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
<div class="collab-card m-2.5 mb-12 !bg-banner text-center text-white"> | ||
<span>404</span> | ||
<h1 class="!text-3xl">Page not found</h1> | ||
<span>{{ router.url }}</span> | ||
</div> | ||
|
||
<div class="text-center text-lg"> | ||
<div> | ||
The requested page does not exist. Perhaps it has been moved. <br /> | ||
If you think this is an error, please contact your system administrator. | ||
</div> | ||
|
||
<div class="mt-5 flex justify-center gap-2"> | ||
<a mat-stroked-button color="primary" routerLink="/"> | ||
Navigate to Home <mat-icon iconPositionEnd>navigate_next</mat-icon> | ||
</a> | ||
<a | ||
mat-stroked-button | ||
color="warn" | ||
href="https://github.com/DSD-DBS/capella-collab-manager/issues" | ||
target="_blank" | ||
rel="noopener" | ||
>Open Issue on Github <mat-icon iconPositionEnd>open_in_new</mat-icon> | ||
</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { CommonModule } from '@angular/common'; | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
import { MatButtonModule } from '@angular/material/button'; | ||
import { MatIconModule } from '@angular/material/icon'; | ||
import { Router, RouterModule } from '@angular/router'; | ||
|
||
@Component({ | ||
selector: 'app-404', | ||
standalone: true, | ||
imports: [CommonModule, RouterModule, MatButtonModule, MatIconModule], | ||
templateUrl: './404.component.html', | ||
styles: '', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class PageNotFoundComponent { | ||
constructor(public router: Router) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { Meta, StoryObj } from '@storybook/angular'; | ||
import { PageNotFoundComponent } from './404.component'; | ||
|
||
const meta: Meta<PageNotFoundComponent> = { | ||
title: 'General components / 404 (Not Found)', | ||
component: PageNotFoundComponent, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<PageNotFoundComponent>; | ||
|
||
export const NotFound: Story = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters