Add 404 page
parent
6a85df7208
commit
1a50021c0e
@ -0,0 +1,10 @@
|
||||
<div class="page-wrapper">
|
||||
<div class="text-box">
|
||||
<h1>404 Die angeforderte Seite konnte nicht gefunden werden.</h1>
|
||||
<br />
|
||||
<a mat-button routerLink="">Zur Seitenübersicht</a>
|
||||
</div>
|
||||
<div class="img-box">
|
||||
<img src="../../assets/404.png" />
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,32 @@
|
||||
.page-wrapper {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
.text-box {
|
||||
flex: none;
|
||||
margin: 1em;
|
||||
}
|
||||
.img-box {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
img {
|
||||
align-self: center;
|
||||
animation-name: translate; // Name der Animation
|
||||
animation-duration: 10s; // Dauer der Animation
|
||||
animation-iteration-count: 1; // Anzahl der Wiederholungen
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes translate {
|
||||
0% {
|
||||
transform: translate(200vh, -25vh);
|
||||
}
|
||||
100% {
|
||||
transform: translateX(0px);
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { PageNotFoundComponent } from './page-not-found.component';
|
||||
|
||||
describe('PageNotFoundComponent', () => {
|
||||
let component: PageNotFoundComponent;
|
||||
let fixture: ComponentFixture<PageNotFoundComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ PageNotFoundComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(PageNotFoundComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-page-not-found',
|
||||
templateUrl: './page-not-found.component.html',
|
||||
styleUrls: ['./page-not-found.component.scss']
|
||||
})
|
||||
export class PageNotFoundComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
Loading…
Reference in New Issue